From 22525d623e8da514b6d92a6f88e975eaba97d919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Dorrestijn?= Date: Mon, 9 Nov 2026 15:14:28 +0100 Subject: [PATCH] Keep the terminal screensaver from scrolling (4.5) Draw it on the alternate screen, which has no scrollback, and turn off alternate scroll so the wheel isn't sent as arrow keys. Restore both on exit, after ttfx is stopped so no frame lands on the normal screen. --- bin/omarchy-screensaver | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/omarchy-screensaver b/bin/omarchy-screensaver index 44cbfad2c367..665c2339f51c 100755 --- a/bin/omarchy-screensaver +++ b/bin/omarchy-screensaver @@ -9,6 +9,7 @@ screensaver_in_focus() { exit_screensaver() { hyprctl eval 'hl.config({ cursor = { invisible = false } })' &>/dev/null || hyprctl keyword cursor:invisible false &>/dev/null || true pkill -x ttfx 2>/dev/null + printf '\033[?1007h\033[?1049l' # Restore wheel scrolling and the normal screen pkill -f '[o]rg.omarchy.screensaver' 2>/dev/null exit 0 } @@ -16,6 +17,8 @@ exit_screensaver() { # Exit the screensaver on signals and input from keyboard and mouse trap exit_screensaver SIGINT SIGTERM SIGHUP SIGQUIT +printf '\033[?1049h' # Draw on the alternate screen, which has no scrollback to scroll +printf '\033[?1007l' # Don't turn mouse wheel scrolls into arrow keys printf '\033]11;rgb:00/00/00\007' # Set background color to black stty -echo 2>/dev/null # Don't echo the key that stops the screensaver into the corner