minor changes/touch ups

This commit is contained in:
downhill 2019-04-12 23:47:18 +02:00
parent 79f09ed75b
commit e9ee0ab197
2 changed files with 4 additions and 4 deletions

View file

@ -42,7 +42,7 @@ bindsym Mod4+b border toggle
bindsym Mod4+Return exec --no-startup-id urxvt bindsym Mod4+Return exec --no-startup-id urxvt
bindsym Mod4+i exec firefox 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 borders for windows if not necessary (only one window)
hide_edge_borders smart 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 XF86AudioRaiseVolume exec --no-startup-id /home/downhill/bin/sound.sh -u
bindsym XF86AudioLowerVolume exec --no-startup-id /home/downhill/bin/sound.sh -d bindsym XF86AudioLowerVolume exec --no-startup-id /home/downhill/bin/sound.sh -d
# sleep # suspend
# uses the cog key on the e480 (F9) # uses the cog key on the e480 (F9)
# -r is to ram, -d is to disk # -r is to ram, -d is to disk

View file

@ -13,10 +13,10 @@ if [ $1 = '-m' ]; then
fi fi
elif [ $1 = "-d" ]; then elif [ $1 = "-d" ]; then
amixer set Master 10%- 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" notify-send "Sound lowered to $volume"
elif [ $1 = "-u" ]; then elif [ $1 = "-u" ]; then
amixer set Master 10%+ 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" notify-send "Sound raised to $volume"
fi fi