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

31 lines
750 B
Bash
Raw Normal View History

2025-04-04 16:51:00 +02:00
#!/usr/bin/env sh
2026-04-27 20:12:34 +02:00
# 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,
},
animations = {
enabled = false,
},
})
"
2025-04-04 16:51:00 +02:00
2026-04-27 20:12:34 +02:00
hyprctl notify 1 2000 0 "Enabled Sharp mode"
2025-04-04 16:51:00 +02:00
exit
fi
hyprctl reload
2026-04-27 20:12:34 +02:00
# ~/.config/hypr/scripts/restore-waybar.sh
hyprctl notify 1 2000 0 "Disabled Sharp mode"