From cf7a89afde8a0e0f23dfd86157fc1520c890b7a5 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 8 Feb 2025 14:36:07 +0100 Subject: [PATCH] game mode toggle: run hyprctl directly instead of relying on ags moar consistency --- .config/ags/modules/sideright/quicktoggles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/modules/sideright/quicktoggles.js b/.config/ags/modules/sideright/quicktoggles.js index 99671907..cf806ee1 100644 --- a/.config/ags/modules/sideright/quicktoggles.js +++ b/.config/ags/modules/sideright/quicktoggles.js @@ -210,7 +210,7 @@ export const ModuleGameMode = async (props = {}) => { className: 'txt-small sidebar-iconbutton', tooltipText: getString('Hyprland Game Mode'), onClicked: (button) => { - Hyprland.messageAsync('j/getoption animations:enabled') + Utils.execAsync(`hyprctl -j getoption animations:enabled`) .then((output) => { const enabled = JSON.parse(output)["int"] === 1; if (enabled) {