Add scripts
This commit is contained in:
19
scripts/audio.sh
Executable file
19
scripts/audio.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
case $1 in
|
||||
"raise")
|
||||
pactl set-sink-volume 0 +5%
|
||||
notify-send $(pamixer --get-volume)
|
||||
pkill -RTMIN+1 i3blocks
|
||||
;;
|
||||
"lower")
|
||||
pactl set-sink-volume 0 -5%
|
||||
notify-send $(pamixer --get-volume)
|
||||
pkill -RTMIN+1 i3blocks
|
||||
;;
|
||||
"toggle_mute")
|
||||
pactl set-sink-mute 0 toggle
|
||||
notify-send $(pamixer --get-mute)
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user