From f9cf7aded460cc9042b06343ff4a13d1ad42a62e Mon Sep 17 00:00:00 2001 From: shark Date: Sun, 2 Dec 2018 22:47:15 +0000 Subject: [PATCH] max out volume at 100% --- .config/fish/config.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 98c7e17..b5915ae 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -30,6 +30,9 @@ end function getvol killall notify-osd set vol (pactl list sinks | grep '^[[:space:]]Volume:' | head -n 1 | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,') + if [ $vol -gt '100' ] + set vol 100 + pactl set-sink-volume 0 100% + end notify-send -t 50 'Volume: '$vol'%' - sleep 2 end \ No newline at end of file