Make screensaver capable of running in any of the terminal options

This commit is contained in:
David Heinemeier Hansson
2025-11-10 10:02:02 +01:00
parent 6f334868d6
commit c6918e637b
3 changed files with 28 additions and 9 deletions

View File

@@ -1,13 +1,13 @@
#!/bin/bash
screensaver_in_focus() {
hyprctl activewindow -j | jq -e '.class == "Screensaver"' >/dev/null 2>&1
hyprctl activewindow -j | jq -e '.class == "com.omarchy.Screensaver"' >/dev/null 2>&1
}
exit_screensaver() {
hyprctl keyword cursor:invisible false
pkill -x tte 2>/dev/null
pkill -f "alacritty --class Screensaver" 2>/dev/null
pkill -f com.omarchy.Screensaver 2>/dev/null
exit 0
}