Last active
September 10, 2017 20:13
-
-
Save ob-ivan/9ac677d13ca40c8a151c0229328295a3 to your computer and use it in GitHub Desktop.
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 | |
# Your wallpapers folder | |
picturesPath=/home/ivan/Wallpapers | |
# needed to be run from cron | |
export DISPLAY=:0 | |
# change `username` with your user name | |
export XAUTHORITY=/home/ivan/.Xauthority | |
pcmanfm -w "$(find "$picturesPath" -type f | shuf -n1)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment