mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
game mode: also disable gtk anims
This commit is contained in:
parent
904d6d653b
commit
c406fc5c71
1 changed files with 2 additions and 0 deletions
|
|
@ -215,8 +215,10 @@ export const ModuleGameMode = async (props = {}) => {
|
|||
const enabled = JSON.parse(output)["int"] === 1;
|
||||
if (enabled) {
|
||||
execAsync(['bash', '-c', `hyprctl --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"`]).catch(print);
|
||||
execAsync(['gsettings', 'set', 'org.gnome.desktop.interface', 'enable-animations', 'false'])
|
||||
} else {
|
||||
execAsync(['bash', '-c', `hyprctl reload`]).catch(print);
|
||||
execAsync(['gsettings', 'set', 'org.gnome.desktop.interface', 'enable-animations', 'true'])
|
||||
}
|
||||
button.toggleClassName('sidebar-button-active', enabled);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue