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

30 lines
750 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,
},
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"