From 63879fc37e2b7e7f4d6069dfc287a85ee758b1f8 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 30 Aug 2024 17:54:01 -0400 Subject: Various updates from anahita --- .local/bin/dmenu-pavols | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .local/bin/dmenu-pavols (limited to '.local/bin/dmenu-pavols') 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}%" -- cgit v1.2.3-60-g2f50