summaryrefslogtreecommitdiffstats
path: root/.local/bin/rofi-pamixer
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2021-05-18 18:52:50 -0400
committerAmin Bandali <bandali@gnu.org>2021-05-18 18:52:50 -0400
commite064bdbfecc18b5cd11a913fec47a682dcb3b5f6 (patch)
tree66ad8a4c013292087c2b0d7a5cdacce836d08867 /.local/bin/rofi-pamixer
parent0a3bd9dc1cdc233d702100b62639df78a4a65091 (diff)
downloadconfigs-e064bdbfecc18b5cd11a913fec47a682dcb3b5f6.tar.gz
configs-e064bdbfecc18b5cd11a913fec47a682dcb3b5f6.tar.xz
configs-e064bdbfecc18b5cd11a913fec47a682dcb3b5f6.zip
add rofi-pamixer convenience scripts for changing volume
Diffstat (limited to '.local/bin/rofi-pamixer')
-rwxr-xr-x.local/bin/rofi-pamixer4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/rofi-pamixer b/.local/bin/rofi-pamixer
new file mode 100755
index 0000000..da06a6d
--- /dev/null
+++ b/.local/bin/rofi-pamixer
@@ -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"