add volume notification
This commit is contained in:
1 parent
7a89632b41
commit
abd0c2e511
1 file changed
+7
@@ -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
|
||||
Reference in new issue
Block a user