From a7919d8f181bbe670ee114f38a081824e64aa883 Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Sun, 5 Oct 2025 15:33:21 +0300 Subject: [PATCH] feat: swaync toggles for wallpaper switching & wallpaper freezing; refactor: notifications for cpufreq and powermode are no longer saved; --- swaync/config.json | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/swaync/config.json b/swaync/config.json index 4d7c2be..129f6ed 100644 --- a/swaync/config.json +++ b/swaync/config.json @@ -93,8 +93,8 @@ "cmd_getter": "exec ~/.config/hypr/scripts/cpufreq.sh g", "min": 1, "min_limit": 1, - "max": 5, - "max_limit": 5 + "max": 6, + "max_limit": 6 }, "dnd": { "text": "Don't bother" @@ -154,6 +154,12 @@ "type": "toggle", "command": "sh -c 'exec ~/.config/hypr/scripts/toggle_mirror_display.sh'", "update-command": "sh -c 'exec ~/.config/hypr/scripts/toggle_mirror_display.sh g'" + }, + { + "label": "", + "type": "toggle", + "command": "sh -c '[[ $SWAYNC_TOGGLE_STATE == true ]] && (echo 1 > $HOME/.config/hypr/conditions/autofreeze_swww) || (echo 0 > $HOME/.config/hypr/conditions/autofreeze_swww)'", + "update-command": "sh -c '[ \$(cat $HOME/.config/hypr/conditions/autofreeze_swww) -eq 1 ] && echo true || echo false'" } ] }, @@ -186,15 +192,15 @@ "actions": [ { "label": "Razgonnnn", - "command": "notify-send -t 2000 ' Power-Profile Performance' && powerprofilesctl set performance" + "command": "sh -c 'notify-send --hint int:transient:1 Power-Profile Performance && powerprofilesctl set performance'" }, { "label": "Balanced", - "command": "notify-send -t 2000 'Power-Profile Balanced' && powerprofilesctl set balanced" + "command": "sh -c 'notify-send --hint int:transient:1 Power-Profile Balanced && powerprofilesctl set balanced'" }, { "label": "Survival", - "command": "notify-send -t 2000 'Power-Profile Power-saver' && powerprofilesctl set power-saver" + "command": "sh -c 'notify-send --hint int:transient:1 Power-Profile Power-saver && powerprofilesctl set power-saver'" } ] }