Last active
April 8, 2019 23:50
-
-
Save sewera/0758c9c08320b890af390b179e484f08 to your computer and use it in GitHub Desktop.
A simple bash script using feh and date to enjoy a different background every day!
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 | |
WP_DIR=/home/jazz/Pictures/Wallpapers | |
DESK=desktop | |
BG_LIST=($WP_DIR/$DESK/*) | |
N=${#BG_LIST[@]} | |
((N=RANDOM%N)) | |
RAND_BG=$(basename ${BG_LIST[$N]}) | |
echo $RAND_BG > cur_bg.txt | |
feh --bg-scale $WP_DIR/$DESK/$RAND_BG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment