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

36 lines
869 B
Bash
Raw Normal View History

2025-04-04 16:51:00 +02:00
#!/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
2025-04-04 16:51:00 +02:00
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"
2025-04-04 16:51:00 +02:00
exit
fi
hyprctl reload
# ~/.config/hypr/scripts/restore-waybar.sh
hyprctl notify 1 2000 0 "Disabled Sharp mode"