add volume notification

This commit is contained in:
shark 2018-12-02 22:34:17 +00:00
parent 7a89632b41
commit abd0c2e511

View File

@ -26,3 +26,10 @@ function ss
gnome-screenshot -a -f ~/$timesave > /dev/null 2>&1
echo 'Screenshot saved at ~/'$timesave
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,')
notify-send -t 50 'Volume: '$vol'%'
sleep 2
end