From 8aa8d99d8d7f2658e27226d835cdeb55edf71a35 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sat, 2 Aug 2025 07:06:09 -0400 Subject: [PATCH] Prevent screensaver shifting up (#450) Co-authored-by: David Heinemeier Hansson --- bin/omarchy-cmd-screensaver | 4 ++-- bin/omarchy-launch-screensaver | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/omarchy-cmd-screensaver b/bin/omarchy-cmd-screensaver index 8240023..0689c6a 100755 --- a/bin/omarchy-cmd-screensaver +++ b/bin/omarchy-cmd-screensaver @@ -6,7 +6,7 @@ screensaver() { while true; do effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1) tte -i ~/.local/share/omarchy/logo.txt \ - --frame-rate 240 --canvas-width 0 --canvas-height 0 --anchor-canvas c --anchor-text c \ + --frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \ "$effect" done } @@ -20,4 +20,4 @@ else else gum spin --title "Can't find tte or pip. Install pip, then try: pip install terminaltexteffects" -- sleep 2 fi -fi +fi \ No newline at end of file diff --git a/bin/omarchy-launch-screensaver b/bin/omarchy-launch-screensaver index f81c44e..a5736c3 100755 --- a/bin/omarchy-launch-screensaver +++ b/bin/omarchy-launch-screensaver @@ -2,4 +2,4 @@ pkill -f "alacritty --class Screensaver" || alacritty --class Screensaver --title Screensaver -o 'colors.primary.background="#000000"' \ - -e ~/.local/share/omarchy/bin/omarchy-cmd-screensaver + -o 'colors.cursor.cursor="#000000"' -e ~/.local/share/omarchy/bin/omarchy-cmd-screensaver