From e9ee0ab1976b697c012ce743a380d17316a3e14e Mon Sep 17 00:00:00 2001 From: downhill Date: Fri, 12 Apr 2019 23:47:18 +0200 Subject: [PATCH] minor changes/touch ups --- .i3/config | 4 ++-- bin/sound.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.i3/config b/.i3/config index 76dfc60..2475aea 100644 --- a/.i3/config +++ b/.i3/config @@ -42,7 +42,7 @@ bindsym Mod4+b border toggle bindsym Mod4+Return exec --no-startup-id urxvt bindsym Mod4+i exec firefox -bindsym Mod4+Delete exec /home/downhill/bin/lock.sh +bindsym Mod4+Delete exec --no-startup-id /home/downhill/bin/lock.sh # Hide borders for windows if not necessary (only one window) hide_edge_borders smart @@ -65,7 +65,7 @@ bindsym XF86AudioMute exec --no-startup-id /home/downhill/bin/sound.sh -m bindsym XF86AudioRaiseVolume exec --no-startup-id /home/downhill/bin/sound.sh -u bindsym XF86AudioLowerVolume exec --no-startup-id /home/downhill/bin/sound.sh -d -# sleep +# suspend # uses the cog key on the e480 (F9) # -r is to ram, -d is to disk diff --git a/bin/sound.sh b/bin/sound.sh index 071ec87..8bfead4 100755 --- a/bin/sound.sh +++ b/bin/sound.sh @@ -13,10 +13,10 @@ if [ $1 = '-m' ]; then fi elif [ $1 = "-d" ]; then amixer set Master 10%- - volume=$(amixer get Master |grep 'Front Left:' |awk '{ print $5 }' |sed -e 's/\[//' |sed -e 's/\]//') + volume=$(amixer get Master |grep 'Front Left:' |awk '{ print $5 }' |sed -e 's/\[\(.*\)\]/\1/') notify-send "Sound lowered to $volume" elif [ $1 = "-u" ]; then amixer set Master 10%+ - volume=$(amixer get Master |grep 'Front Left:' |awk '{ print $5 }' |sed -e 's/\[//' |sed -e 's/\]//') + volume=$(amixer get Master |grep 'Front Left:' |awk '{ print $5 }' |sed -e 's/\[\(.*\)\]/\1/') notify-send "Sound raised to $volume" fi