-
-
Save turbo1000/3890367 to your computer and use it in GitHub Desktop.
Animated Matrix 'wallpaper'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# toggle animating Matrix 'rain' desktop background | |
# requires xscreensaver and pidof | |
CMD="/usr/lib/xscreensaver/glmatrix" #adjust as needed for your install of xscreensaver | |
CMDOPS="-root" | |
RESTORE=". ~/.fehbg" | |
PID=$(pidof $CMD) | |
if [ -n "$PID" ] ; then | |
kill $PID | |
RESTORE ; | |
else | |
$CMD $CMDOPS & | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment