add volume notification
This commit is contained in:
parent
7a89632b41
commit
abd0c2e511
@ -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
|
Loading…
x
Reference in New Issue
Block a user