forked from Shinonome/dots-hyprland
game mode: also disable gtk anims
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user