diff --git a/scripts/brightness b/scripts/brightness index 9d49394..2ce1418 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 -r 2593 -u normal +notify-send -a "Brightness" "Decreasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightness } 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 -r 2593 -u normal +notify-send -a "BRightness" "Increasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightness } case "$1" in diff --git a/scripts/volume b/scripts/volume index d00f4b8..c10739e 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 -r 2593 -u normal +notify-send -a "Volume" "Decreasing to $volume%" -h int:value:"$volume" -i ~/icons/low-volume.png -h string:x-canonical-private-synchronous:volume 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 -r 2593 -u normal +notify-send -a "Volume" "Increasing to $volume%" -h int:value:"$volume" -i ~/icons/high-volume.png -h string:x-canonical-private-synchronous:volume canberra-gtk-play -i audio-volume-change -d "changevolume" } @@ -20,10 +20,10 @@ mute() { muted="$(pamixer --get-mute)" if $muted; then pamixer -u - notify-send -a "VOLUME" "UNMUTED" -i ~/.config/dunst/assets/ui/volume_high.svg -r 2593 -u normal + notify-send -a "VOLUME" "UNMUTED" -i ~/.config/dunst/assets/ui/volume_high.svg -h string:x-canonical-private-synchronous:volume else pamixer -m - notify-send -a "VOLUME" "MUTED" -i ~/.config/dunst/assets/ui/volume_muted.svg -r 2593 -u normal + notify-send -a "VOLUME" "MUTED" -i ~/.config/dunst/assets/ui/volume_muted.svg -h string:x-canonical-private-synchronous:volume fi } diff --git a/scripts/wg-toggle.sh b/scripts/wg-toggle.sh index a00a76b..5297ef6 100755 --- a/scripts/wg-toggle.sh +++ b/scripts/wg-toggle.sh @@ -9,9 +9,9 @@ handshake=$(ip a show "$interface" | grep 'link') if [[ -n "$handshake" ]]; then # If it's up, bring it down pkexec wg-quick down "$interface" - notify-send -a "WireGuard" "Disconnected from $interface" + notify-send -a "WireGuard" "Disconnected from $interface" -h string:x-canonical-private-synchronous:vpn else # Otherwise, bring it up pkexec wg-quick up "$interface" - notify-send -a "WireGuard" "Connected to $interface" + notify-send -a "WireGuard" "Connected to $interface" -h string:x-canonical-private-synchronous:vpn fi