Hide cursor during screensaver

Closes #1644
Co-authored-by: @alexperreault
This commit is contained in:
David Heinemeier Hansson
2025-09-13 08:04:18 +02:00
parent 5157932947
commit 87469f5f43

View File

@@ -1,6 +1,7 @@
#!/bin/bash
function exit_screensaver {
hyprctl keyword cursor:invisible false
pkill -x tte 2>/dev/null
pkill -f "alacritty --class Screensaver" 2>/dev/null
exit 0
@@ -8,6 +9,8 @@ function exit_screensaver {
trap exit_screensaver SIGINT SIGTERM SIGHUP SIGQUIT
hyprctl keyword cursor:invisible true
while true; do
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
tte -i ~/.config/omarchy/branding/screensaver.txt \