add rofi-pamixer convenience scripts for changing volume
[~bandali/configs] / .local / bin / rofi-pamixer
diff --git a/.local/bin/rofi-pamixer b/.local/bin/rofi-pamixer
new file mode 100755 (executable)
index 0000000..da06a6d
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+cur=$(pamixer --get-volume)
+val=$(rofi -dmenu -mesg "pamixer --get-volume $cur" -p "pamixer --set-volume " -l 0 -width 12)
+[ -n "$val" ] && pamixer --set-volume "$val"