diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index 728f89d..da29127 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -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} } # ---