diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index c8c74e3..5c2336a 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -23,9 +23,9 @@ eval "$(jump shell --bind=j)" # miscellaneous aliases # --- -alias aafire="aafire -driver curses" -alias cacafire="DISPLAY= cacafire" -alias cmatrix="cmatrix -a -b -s -u 5" +alias aafire="aafire -driver curses" # terminal idle "screensaver" +alias cacafire="DISPLAY= cacafire" # terminal idle "screensaver" +alias cmatrix="cmatrix -a -b -s -u 5" # terminal idle "screensaver" alias ct="sudo ct" alias dr="dragon-drop --and-exit --all --print-path" alias diskusage="ncdu -x" @@ -49,6 +49,7 @@ alias tp-list="tree ~/.local/share/Trash/" alias tp-restore="trash-restore" alias tp="tp.sh" alias tree="tree --du -h" +alias unimatrix="unimatrix.py" # terminal idle "screensaver" #alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient" alias luna="~/syncDir/quick/swas/installationFiles/lunaModeler/Luna\ Modeler-10.1.0-x86_64.AppImage" @@ -208,6 +209,13 @@ rshift() { redshift -P -O ${temperature} } +# tfun aka. "terminal fun" - run random terminal "fun" command +tfun() { + commands=("aafire" "cacafire" "cmatrix" "unimatrix") + random_command=${commands[ $RANDOM % ${#commands[@]} ]} + $random_command +} + # --- # mounting diff --git a/dots/bin/i3lock_fk.sh b/dots/bin/i3lock_fk.sh index 216a90b..15ca088 100755 --- a/dots/bin/i3lock_fk.sh +++ b/dots/bin/i3lock_fk.sh @@ -5,7 +5,7 @@ # get random image to use # https://stackoverflow.com/questions/61290199/how-do-i-select-a-random-file-from-a-directory -random_image=$(ls -1 /home/${USER}/.local/share/img/*.png | shuf | head -1) +random_image=$(ls -1 /home/${USER}/.local/share/img/*.png | shuf | head -1) random_image_filname="$(basename -- $random_image)" # get random gravity to use for the overlay image, take the number of displays into account