diff --git a/scripts/brightness b/scripts/brightness index 716b072..71715f9 100755 --- a/scripts/brightness +++ b/scripts/brightness @@ -3,13 +3,13 @@ down() { brightnessctl set 5%- brightnessctl=$(brightnessctl | grep -oP "(\d+(\.\d+)?(?=%))") -notify-send -a "Brightness" "Decreasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl +notify-send -a "Brightness" "Decreasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl -u low } up() { brightnessctl set 5%+ brightnessctl=$(brightnessctl | grep -oP "(\d+(\.\d+)?(?=%))") -notify-send -a "Brightness" "Increasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl +notify-send -a "Brightness" "Increasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl -u low } case "$1" in diff --git a/scripts/volume b/scripts/volume index c10739e..5d9381b 100755 --- a/scripts/volume +++ b/scripts/volume @@ -4,7 +4,7 @@ down() { pamixer -d 2 volume=$(pamixer --get-volume) [$volume -gt 0 ] && volume=`expr $volume` -notify-send -a "Volume" "Decreasing to $volume%" -h int:value:"$volume" -i ~/icons/low-volume.png -h string:x-canonical-private-synchronous:volume +notify-send -a "Volume" "Decreasing to $volume%" -h int:value:"$volume" -i ~/icons/low-volume.png -h string:x-canonical-private-synchronous:volume -u low canberra-gtk-play -i audio-volume-change -d "changevolume" } @@ -12,7 +12,7 @@ up() { pamixer -i 2 volume=$(pamixer --get-volume) [ $volume -lt 1000 ] && volume=`expr $volume` -notify-send -a "Volume" "Increasing to $volume%" -h int:value:"$volume" -i ~/icons/high-volume.png -h string:x-canonical-private-synchronous:volume +notify-send -a "Volume" "Increasing to $volume%" -h int:value:"$volume" -i ~/icons/high-volume.png -h string:x-canonical-private-synchronous:volume -u low canberra-gtk-play -i audio-volume-change -d "changevolume" }