atlas-desktop/config/.config/hypr/scripts/game-mode.sh

35 lines
869 B
Bash
Executable file

#!/usr/bin/env sh
# Disables animations accros the desktop (as well as some other tweaks)
# Similar to game mode but with the goal to cure motion sickness
if [[ "$(hyprctl getoption animations:enabled)" =~ "bool: true" ]] ; then
hyprctl eval "
hl.config({
general = {
gaps_in = 0,
gaps_out = 0,
border_size = 0,
},
decoration = {
rounding = 0,
drop_shadow = false,
blur = {
enabled = false,
},
},
animations = {
enabled = false,
},
})
"
hyprctl notify 1 2000 0 "Enabled Sharp mode"
exit
fi
hyprctl reload
# ~/.config/hypr/scripts/restore-waybar.sh
hyprctl notify 1 2000 0 "Disabled Sharp mode"