diff options
| author | Kumar Damani <damani.kumar@gmail.com> | 2019-05-25 18:49:53 +0000 |
|---|---|---|
| committer | Kumar Damani <damani.kumar@gmail.com> | 2019-05-25 18:49:53 +0000 |
| commit | efb1e27e7d86b9d544c91eae7ec08bfa77819864 (patch) | |
| tree | 7a2fffc544a732370a25e19cf3827b13bcb9be07 /Scripts | |
| parent | 23c83773c9030ce83000d1f5d995be25d089bad9 (diff) | |
outsource dwm app cmds to sxhkd
Diffstat (limited to 'Scripts')
| -rwxr-xr-x | Scripts/.config/Scripts/autostart.sh | 2 | ||||
| -rwxr-xr-x | Scripts/.config/Scripts/startdwm | 19 |
2 files changed, 10 insertions, 11 deletions
diff --git a/Scripts/.config/Scripts/autostart.sh b/Scripts/.config/Scripts/autostart.sh index 9987401..41d1414 100755 --- a/Scripts/.config/Scripts/autostart.sh +++ b/Scripts/.config/Scripts/autostart.sh @@ -10,7 +10,7 @@ function run { } # Common programs -~/.config/Scripts/screen.sh d +~/.config/Scripts/screen.sh d && sleep 2s setxkbmap -layout us -variant altgr-intl -option caps:escape xmodmap -e "keycode 135 = Super_R" run mpd diff --git a/Scripts/.config/Scripts/startdwm b/Scripts/.config/Scripts/startdwm index 226ba0e..1db7aeb 100755 --- a/Scripts/.config/Scripts/startdwm +++ b/Scripts/.config/Scripts/startdwm @@ -1,16 +1,11 @@ #!/bin/sh -disk_used=$(df -hl --total / | awk '{print $5}' | sed -n 2p) - while true; do disk_used=$(df -hl --total / | awk '{print $5}' | sed -n 2p) - sleep 60s -done & -while true; do - vol=$(pamixer --get-volume) - xsetroot -name "/: ${disk_used} || V:${vol} || $(date)" - sleep 3 + xsetroot -name "/: ${disk_used} || 🗓 $(date)" + sleep 1m done & + #while true; do # Log stderror to a file # dwm 2> ~/.dwm.log @@ -18,5 +13,9 @@ done & #dwm >/dev/null 2>&1 #done -$HOME/.config/Scripts/autostart.sh -exec dwm +#dwm && $HOME/.config/Scripts/autostart.sh && sxhkd -c $HOME/.config/sxhkd/sxhkdrc_dwm & + +sxhkd & +$HOME/.config/Scripts/autostart.sh & +dwm >/dev/null 2>&1 + |
