Need to keep this alacritty until we have it fully working for other terminals

This commit is contained in:
David Heinemeier Hansson
2025-09-16 21:13:31 +02:00
parent ce7b22967a
commit f62086f76d
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ screensaver_in_focus() {
exit_screensaver() { exit_screensaver() {
hyprctl keyword cursor:invisible false hyprctl keyword cursor:invisible false
pkill -x tte 2>/dev/null pkill -x tte 2>/dev/null
pkill -f "$TERMINAL --class Screensaver" 2>/dev/null pkill -f "alacritty --class Screensaver" 2>/dev/null
exit 0 exit 0
} }

View File

@@ -6,7 +6,7 @@ if ! command -v tte &>/dev/null; then
fi fi
# Exit early if screensave is already running # Exit early if screensave is already running
pgrep -f "$TERMINAL --class Screensaver" && exit 0 pgrep -f "alacritty --class Screensaver" && exit 0
# Allow screensaver to be turned off but also force started # Allow screensaver to be turned off but also force started
if [[ -f ~/.local/state/omarchy/toggles/screensaver-off ]] && [[ $1 != "force" ]]; then if [[ -f ~/.local/state/omarchy/toggles/screensaver-off ]] && [[ $1 != "force" ]]; then