mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 20:31:57 +00:00
game mode toggle: run hyprctl directly instead of relying on ags
moar consistency
This commit is contained in:
parent
9aefc98201
commit
cf7a89afde
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue