mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-04 07:39:24 +00:00
Prevent screensaver shifting up (#450)
Co-authored-by: David Heinemeier Hansson <david@hey.com>
This commit is contained in:
@ -6,7 +6,7 @@ screensaver() {
|
|||||||
while true; do
|
while true; do
|
||||||
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
|
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 \
|
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"
|
"$effect"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
pkill -f "alacritty --class Screensaver" ||
|
pkill -f "alacritty --class Screensaver" ||
|
||||||
alacritty --class Screensaver --title Screensaver -o 'colors.primary.background="#000000"' \
|
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
|
||||||
|
Reference in New Issue
Block a user