From 7b21727285e50b0b050c4ddd70d07542229c5366 Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Sep 2026 14:17:03 -0700 Subject: init --- bin/volumectl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 bin/volumectl (limited to 'bin/volumectl') 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 -- cgit v1.2.3