summaryrefslogtreecommitdiff
path: root/.local/bin/desktop/dmenu-sound
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/desktop/dmenu-sound')
-rwxr-xr-x.local/bin/desktop/dmenu-sound6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/desktop/dmenu-sound b/.local/bin/desktop/dmenu-sound
new file mode 100755
index 0000000..967e9fa
--- /dev/null
+++ b/.local/bin/desktop/dmenu-sound
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+node="$(wpctl status | grep vol: | cut -c5- | dmenu -i -l 30 |
+ sed -E "s/^[ *]*([0-9]{2}).*$/\1/")"
+
+[ -n "$node" ] && wpctl set-default "$node"