diff options
Diffstat (limited to 'services')
| -rw-r--r-- | services/GameMode.qml | 13 | ||||
| -rw-r--r-- | services/Hypr.qml | 6 |
2 files changed, 12 insertions, 7 deletions
diff --git a/services/GameMode.qml b/services/GameMode.qml index edd741c..83770b7 100644 --- a/services/GameMode.qml +++ b/services/GameMode.qml @@ -13,7 +13,16 @@ Singleton { property alias enabled: props.enabled function setDynamicConfs(): void { - Hypr.message("[[BATCH]]keyword animations:enabled 0;keyword decoration:shadow:enabled 0;keyword decoration:blur:enabled 0;keyword general:gaps_in 0;keyword general:gaps_out 0;keyword general:border_size 1;keyword decoration:rounding 0;keyword general:allow_tearing 1"); + Hypr.extras.applyOptions({ + "animations:enabled": 0, + "decoration:shadow:enabled": 0, + "decoration:blur:enabled": 0, + "general:gaps_in": 0, + "general:gaps_out": 0, + "general:border_size": 1, + "decoration:rounding": 0, + "general:allow_tearing": 1 + }); } onEnabledChanged: { @@ -22,7 +31,7 @@ Singleton { if (Config.utilities.toasts.gameModeChanged) Toaster.toast(qsTr("Game mode enabled"), qsTr("Disabled Hyprland animations, blur, gaps and shadows"), "gamepad"); } else { - Hypr.message("reload"); + Hypr.extras.message("reload"); if (Config.utilities.toasts.gameModeChanged) Toaster.toast(qsTr("Game mode disabled"), qsTr("Hyprland settings restored"), "gamepad"); } diff --git a/services/Hypr.qml b/services/Hypr.qml index 7a17212..c141a9b 100644 --- a/services/Hypr.qml +++ b/services/Hypr.qml @@ -35,10 +35,6 @@ Singleton { signal configReloaded - function message(message: string): void { - extras.message(message); - } - function dispatch(request: string): void { Hyprland.dispatch(request); } @@ -77,7 +73,7 @@ Singleton { if (n === "configreloaded") { root.configReloaded(); - extras.message("[[BATCH]]keyword bindln ,Caps_Lock,global,caelestia:refreshDevices;keyword bindln ,Num_Lock,global,caelestia:refreshDevices"); + extras.batchMessage(["keyword bindln ,Caps_Lock,global,caelestia:refreshDevices", "keyword bindln ,Num_Lock,global,caelestia:refreshDevices"]); } else if (["workspace", "moveworkspace", "activespecial", "focusedmon"].includes(n)) { Hyprland.refreshWorkspaces(); Hyprland.refreshMonitors(); |