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/brightness-control | 4 ++-- scripts/nightlight-toggle | 8 ++++---- scripts/volume-control | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'scripts') diff --git a/scripts/brightness-control b/scripts/brightness-control index 1c6b02c..7049089 100755 --- a/scripts/brightness-control +++ b/scripts/brightness-control @@ -8,11 +8,11 @@ if [[ "$1" == "up" ]]; then | awk -F ',' '{print $4+0}' \ | xargs -I[] notify-send -e -u low -h \ string:x-canonical-private-synchronous:brightness_notif -h \ - int:value:[] "☀ Brightness: []%" + int:value:[] "☀ Brightness []" elif [[ "$1" == "down" ]]; then brightnessctl set -e1 -n2 5%- -m \ | awk -F ',' '{print $4+0}' \ | xargs -I[] notify-send -e -u low -h \ string:x-canonical-private-synchronous:brightness_notif -h \ - int:value:[] "☀ Brightness: []%" + int:value:[] "☀ Brightness []" fi diff --git a/scripts/nightlight-toggle b/scripts/nightlight-toggle index 7e09303..e1c6b6c 100755 --- a/scripts/nightlight-toggle +++ b/scripts/nightlight-toggle @@ -13,20 +13,20 @@ hyprland_nightlight_toggle() { CURRENT_TEMP=$(hyprctl hyprsunset temperature 2>/dev/null | grep -oE '[0-9]+') if [[ "$CURRENT_TEMP" == "$OFF_TEMP" ]]; then hyprctl hyprsunset temperature $ON_TEMP - notify-send " Nightlight screen temperature" + notify-send "Nightlight screen temperature" else hyprctl hyprsunset temperature $OFF_TEMP - notify-send " Daylight screen temperature" + notify-send "Daylight screen temperature" fi } niri_nightlight_toggle() { if pgrep -x wlsunset; then killall wlsunset - notify-send " Daylight screen temperature" + notify-send "Daylight screen temperature" else setsid -f wlsunset -T 4500 - notify-send " Nightlight screen temperature" + notify-send "Nightlight screen temperature" fi } 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