First commit. Add .i3 directory
This commit is contained in:
9
.i3/scripts/vol.sh
Normal file
9
.i3/scripts/vol.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ "$1" == "up" ]] && amixer set Master 5%+
|
||||
[[ "$1" == "down" ]] && amixer set Master 5%-
|
||||
[[ "$1" == "mute" ]] && amixer sset Master toggle
|
||||
|
||||
VOL=$(amixer get Master | grep 'Front Left:' | cut -c 31-33)
|
||||
[[ $(amixer get Master | grep "\[off\]") ]] && sudo -u kuba volnoti-show -m $VOL && exit
|
||||
sudo -u kuba volnoti-show $VOL
|
||||
Reference in New Issue
Block a user