feat: swaync toggles for wallpaper switching & wallpaper freezing;

refactor: notifications for cpufreq and powermode are no longer saved;
This commit is contained in:
2025-10-05 15:33:21 +03:00
parent c389bcf371
commit a7919d8f18

View File

@@ -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'"
}
]
}