summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenu-pamixer
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/dmenu-pamixer')
-rwxr-xr-x.local/bin/dmenu-pamixer4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/dmenu-pamixer b/.local/bin/dmenu-pamixer
new file mode 100755
index 0000000..c830e9d
--- /dev/null
+++ b/.local/bin/dmenu-pamixer
@@ -0,0 +1,4 @@
+#!/bin/sh
+cur=$(pamixer --get-volume)
+val=$(dmenu -p "volume ($cur):" < /dev/null)
+[ -n "$val" ] && pamixer --set-volume "$val"