From 60834a3c7e513b1c594d4e31ea56c1edac5abaf1 Mon Sep 17 00:00:00 2001 From: "committer@tuxwarrior" Date: Sat, 3 May 2025 16:24:25 -0500 Subject: [PATCH] u --- dots/bash/.bashrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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} } # ---