change to better notifications

master
shark 6 years ago
parent 55879e3ed9
commit 59ce8fdd72

@ -28,11 +28,11 @@ function ss
end end
function getvol 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,') 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' ] if [ $vol -gt '100' ]
set vol 100 set vol 100
pactl set-sink-volume 0 100% pactl set-sink-volume 0 100%
end end
notify-send -t 50 'Volume: '$vol'%' twmnc --remote hide
twmnc -t "Volume: $vol"
end end
Loading…
Cancel
Save