summaryrefslogtreecommitdiffstats
path: root/.local/bin/dmenu-pavols
diff options
context:
space:
mode:
authorAmin Bandali <bandali@kelar.org>2024-08-30 17:54:01 -0400
committerAmin Bandali <bandali@kelar.org>2024-08-30 17:54:01 -0400
commit63879fc37e2b7e7f4d6069dfc287a85ee758b1f8 (patch)
tree8451cb5c68db1ce7c548325578a44d1a7a236f4f /.local/bin/dmenu-pavols
parentdcb96b515fa65eee556df976375692cef48db21d (diff)
downloadconfigs-63879fc37e2b7e7f4d6069dfc287a85ee758b1f8.tar.gz
configs-63879fc37e2b7e7f4d6069dfc287a85ee758b1f8.tar.xz
configs-63879fc37e2b7e7f4d6069dfc287a85ee758b1f8.zip
Various updates from anahita
Diffstat (limited to '')
-rwxr-xr-x.local/bin/dmenu-pavols4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/dmenu-pavols b/.local/bin/dmenu-pavols
new file mode 100755
index 0000000..0b840ad
--- /dev/null
+++ b/.local/bin/dmenu-pavols
@@ -0,0 +1,4 @@
+#!/bin/sh
+cur=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -n1)
+val=$(dmenu -fn 'Source Code Pro Medium-10.5' -p "volume ($cur):" < /dev/null)
+[ -n "$val" ] && pactl set-sink-volume @DEFAULT_SINK@ "${val}%"