dotfiles

my dotfiles
Log | Files | Refs

commit 2ab3ac2a321ad8e83f9fb32174bd69b9a46da16d
parent 6ae8fefb4a1a9befc18642a1c2a10e56b7988141
Author: tin <ichtinnotl@gmail.com>
Date:   Tue, 30 Oct 2018 01:02:10 +0100

update

Diffstat:
.config/i3/config | 8+++-----
.gitignore | 1+
.scripts/BAT1.sh | 19+++++++++++++++++++
.scripts/checkupdates.sh | 2+-
.scripts/rainy-paris-cafe-jazz-stream.sh | 6+-----
.xinitrc | 3++-
i3blocks.conf | 8+++++++-
samwise.py | 23++++++-----------------
8 files changed, 40 insertions(+), 30 deletions(-)

diff --git a/.config/i3/config b/.config/i3/config @@ -45,8 +45,6 @@ bindsym $mod+d exec --no-startup-id rofi -show run # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop -exec --no-startup-id ~/.scripts/batt.sh - # change focus bindsym $mod+j focus left bindsym $mod+k focus down @@ -74,8 +72,8 @@ bindsym $mod+Shift+Right move right # split in horizontal orientation bindsym $mod+h split h -# i3lock -bindsym $mod+shift+l exec --no-startup-id i3lock +# slock +bindsym --release $mod+shift+l exec --no-startup-id slock # split in vertical orientation bindsym $mod+v split v @@ -167,7 +165,7 @@ bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 20 # decrease # Screenshots -bindsym --release Print exec --no-startup-id scrot -s '%Y-%m-%d_%T_$wx$h.png' -e 'mv $f /home/tin/disk/Pictures/Screenshot/' +bindsym --release Print exec --no-startup-id scrot -s '%Y-%m-%d_%T_$wx$h.png' -e 'mv $f /home/teen/Pictures/Screenshot/' bindsym Shift+Print exec --no-startup-id scrot '%Y-%m-%d_%T_$wx$h.png' -e 'mv $f ~/Pictures/Screenshot/' diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +.config diff --git a/.scripts/BAT1.sh b/.scripts/BAT1.sh @@ -0,0 +1,19 @@ +#!/bin/bash +status=`acpi -b | awk '{print $3}' | tr -d , | sed 1d` +percent=`acpi -b | acpi -b | awk '{print $4}' | cut -d % -f 1 | sed 1d` +if [ $status == "Full" ] +then + echo "Full $percent %" +elif [ $status == "Charging" ] +then + echo "charging: $percent %"; +else + if [ $percent -lt 20 ] + then + echo "critical: $percent %"; + else + echo "$percent %"; + fi + +fi + diff --git a/.scripts/checkupdates.sh b/.scripts/checkupdates.sh @@ -1,5 +1,5 @@ #!/bin/bash -checkupdate=`checkupdates | wc -l` +checkupdate=`checkupdates-aur | wc -l` if [ $checkupdate == "0" ] then diff --git a/.scripts/rainy-paris-cafe-jazz-stream.sh b/.scripts/rainy-paris-cafe-jazz-stream.sh @@ -4,8 +4,4 @@ mplayer ~/.dotfiles/.sounds/RainyMood.mp3 -loop 0 -volume 45 & mplayer ~/.dotfiles/.sounds/ParisCafe.mp3 -loop 0 -volume 40 & -# Play appropriate radio station -# mplayer ~/.dotfiles/.sounds/Jazz.mp3 -volume 35 - -# Stop all mplayer streams when aborting -killall mplayer +# killall mplayer diff --git a/.xinitrc b/.xinitrc @@ -48,12 +48,13 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then unset f fi +pamixer --get-mute & pulseaudio --start & pasystray & nm-applet & compton & emacs --daemon & setxkbmap -model pc105 -layout us,mk -option grp:caps_toggle & -feh --bg-scale /home/tin/.dotfiles/.config/wp.png & +feh --bg-fill /home/teen/.config/i3/wp.jpg & exec i3 diff --git a/i3blocks.conf b/i3blocks.conf @@ -22,8 +22,14 @@ interval=1 separator=true # Battery +[battery1] +label=bat1: +command=$HOME/.scripts/BAT1.sh +interval=30 +separator=true + [battery2] -label=bat: +label=bat2: command=$HOME/.scripts/BAT2.sh interval=30 separator=true diff --git a/samwise.py b/samwise.py @@ -6,7 +6,7 @@ import argparse soft = [ # Surfing the Internet - "chromium", + "firefox", # Download and watch movies/shows "qbittorrent", @@ -21,18 +21,7 @@ soft = [ # Mail "thunderbird", - # Emacs - "emacs", - "vim", - - # Password Manager - "pass", - - # IRC - "weechat", - - # Music - "cmus", + # mplayer "mplayer", # Terminal @@ -52,12 +41,14 @@ soft = [ # Other "unzip", + "slock", "sl" # :) "dnsutils", "notify-osd", "compton", "scrot", "youtube-dl", + "rofi", "wget", "openssl", "curl", @@ -68,7 +59,6 @@ soft = [ "arandr", "libreoffice", "gvfs", - "virtualbox", "unrar", ] @@ -100,7 +90,6 @@ system = [ "network-manager-applet", "xdg-user-dirs", "i3-wm", - "i3lock", "i3blocks", "acpi", "pavucontrol", @@ -118,7 +107,7 @@ def softFunc(): # Install every item of the list "aur" def aurFunc(): for a in aur: - subprocess.run(["yaourt", "--noconfirm", "-S", a]) + subprocess.run(["yay", "--noconfirm", "-S", a]) return None @@ -156,7 +145,7 @@ def main(): if args.install == 'system': sysFunc() - if args.install == 'soft': + if args.install == 'software': softFunc() if args.install == 'aur': aurFunc()