This commit is contained in:
committer@tuxwarrior
2025-05-03 16:24:25 -05:00
parent a283c2e28f
commit 60834a3c7e

View File

@@ -211,9 +211,13 @@ rshift() {
# tss aka terminal screen saver
tss() {
commands=("aafire -driver curses" "DISPLAY= cacafire" "cmatrix -a -b -s -u 5" "unimatrix.py")
# https://unix.stackexchange.com/questions/118714/how-can-i-get-cacafire-to-show-up-in-the-original-gnome-terminal-instead-of-a
OLD_DISPAY=$(echo $DISPLAY)
export DISPLAY=
commands=("aafire -driver curses" "cacafire" "cmatrix -a -b -s -u 5" "unimatrix.py")
random_command="${commands[ $RANDOM % ${#commands[@]} ]}"
$random_command
export DISPLAY=${OLD_DISPAY}
}
# ---