aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/sb_set.sh
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/sb_set.sh')
-rwxr-xr-x.local/bin/sb_set.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/.local/bin/sb_set.sh b/.local/bin/sb_set.sh
new file mode 100755
index 0000000..236b856
--- /dev/null
+++ b/.local/bin/sb_set.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case $1 in
+ -i)
+ amixer -q sset Master 5%+
+ pkill -SIGRTMIN+11 dwmblocks
+ ;;
+
+ -d)
+ amixer -q sset Master 5%-
+ pkill -SIGRTMIN+11 dwmblocks
+ ;;
+
+ -t)
+ amixer -q sset Master toggle
+ pkill -SIGRTMIN+11 dwmblocks
+ ;;
+
+ -n)
+ xkb-switch -n
+ pkill -SIGRTMIN+10 dwmblocks
+ ;;
+esac