u
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
# ---
|
||||
|
||||
Reference in New Issue
Block a user