Poor man's screensaver without tte
This commit is contained in:
parent
3f895969c7
commit
b094557a97
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if command -v tte &>/dev/null; then
|
||||
if ! command -v tte &>/dev/null; then
|
||||
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 \
|
||||
@ -17,6 +17,14 @@ if command -v tte &>/dev/null; then
|
||||
done
|
||||
else
|
||||
# Poor man's screensaver in case we don't have tte
|
||||
omarchy-show-logo
|
||||
read -n 1 -s
|
||||
clear
|
||||
while true; do
|
||||
echo -e "\033[32m"
|
||||
cat ~/.config/omarchy/screensaver.txt
|
||||
echo -e "\033[0m"
|
||||
echo
|
||||
|
||||
# Wait up to 2 seconds, quit if any key is pressed
|
||||
read -t 2 -n 1 key && break
|
||||
done
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user