diff options
Diffstat (limited to 'bin/volumectl')
| -rwxr-xr-x | bin/volumectl | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/volumectl b/bin/volumectl new file mode 100755 index 0000000..e48a228 --- /dev/null +++ b/bin/volumectl @@ -0,0 +1,26 @@ +#!/bin/sh +INCREMENT="2" + +case $1 in + "up") + wpctl set-volume @DEFAULT_SINK@ $INCREMENT%+;; + "down") + wpctl set-volume @DEFAULT_SINK@ $INCREMENT%-;; + "mute") + wpctl set-mute @DEFAULT_SINK@ toggle;; +esac + +kill -RTMIN+1 $(pidof dwmblocks) + +# freebsd +#case $1 in +# "up") +# mixer vol.volume=+$INCREMENT% > /dev/null;; +# "down") +# mixer vol.volume=-$INCREMENT% > /dev/null;; +# "mute") +# mixer vol.mute=toggle > /dev/null;; +#esac +# +#PID=$(pgrep dwmblocks) +#kill -RTMIN+1 $PID |
