Created
January 7, 2023 18:42
-
-
Save mcnaveen/ec639eacf4c84f3324c8b90704bf9365 to your computer and use it in GitHub Desktop.
feh & pywal random wallpaper with Dynamic color scheme
This file contains hidden or 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 | |
while true; do | |
# Set a random wallpaper from the specified folder | |
feh --randomize --bg-fill ~/Pictures/Wallpapers/* | |
# Get the current wallpaper from .fehbg | |
wallpaper="$(cat "${HOME}/.fehbg" | awk -F "'" '{print $2}')" | |
# Apply pywal color scheme to desktop | |
wal -i $wallpaper | |
# Sleep for one minute before setting a new wallpaper | |
sleep 60 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment