From 76b3e68c97854d4363f60443ada40aa3b8390327 Mon Sep 17 00:00:00 2001 From: LunarLollipop Date: Wed, 7 Jan 2026 19:52:52 +0200 Subject: [PATCH] Fix hyprctl crash when screensaver is terminated (#4045) Redirect hyprctl output in exit_screensaver() to prevent SIGABRT crash when the screensaver window is closed externally (via keybind or lock screen). The crash occurs because hyprctl's std::println() throws when writing to a broken stdout after the terminal is killed. --- bin/omarchy-cmd-screensaver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-cmd-screensaver b/bin/omarchy-cmd-screensaver index 4266192e..7dd64786 100755 --- a/bin/omarchy-cmd-screensaver +++ b/bin/omarchy-cmd-screensaver @@ -7,7 +7,7 @@ screensaver_in_focus() { } exit_screensaver() { - hyprctl keyword cursor:invisible false + hyprctl keyword cursor:invisible false &>/dev/null || true pkill -x tte 2>/dev/null pkill -f org.omarchy.screensaver 2>/dev/null exit 0