From f595b592637d5f9dc76b90f97bbcad200f6a0f72 Mon Sep 17 00:00:00 2001 From: ryukamish Date: Wed, 3 Jun 2026 18:17:28 +0530 Subject: add/fix: variable addition and value changes --- scripts/volume-control | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/volume-control') diff --git a/scripts/volume-control b/scripts/volume-control index bf8745d..bd47fea 100755 --- a/scripts/volume-control +++ b/scripts/volume-control @@ -8,13 +8,13 @@ if [[ "$1" == "up" ]]; then && wpctl get-volume @DEFAULT_AUDIO_SINK@ | \ awk '{print int($2*100)}' | xargs -I[] \ notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \ - int:value:[] "󰓃 Volume: []%" + int:value:[] "󰓃 Volume []" elif [[ "$1" == "down" ]]; then wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- \ && wpctl get-volume @DEFAULT_AUDIO_SINK@ | \ awk '{print int($2*100)}' | xargs -I[] \ notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \ - int:value:[] "󰓃 Volume: []%" + int:value:[] "󰓃 Volume []" elif [[ "$1" == "mute" ]]; then wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle \ && (wpctl get-volume @DEFAULT_AUDIO_SINK@ \ @@ -24,5 +24,5 @@ elif [[ "$1" == "mute" ]]; then "󰝟 Muted" || wpctl get-volume @DEFAULT_AUDIO_SINK@ | \ awk '{print int($2*100)}' | xargs -I[] \ notify-send -e -u low -h string:x-canonical-private-synchronous:volume_notif -h \ - int:value:[] "󰓃 Volume: []%") + int:value:[] "󰓃 Volume []") fi -- cgit v1.3