Skip to content

Instantly share code, notes, and snippets.

@mcnaveen
Created January 7, 2023 18:42
Show Gist options
  • Save mcnaveen/ec639eacf4c84f3324c8b90704bf9365 to your computer and use it in GitHub Desktop.
Save mcnaveen/ec639eacf4c84f3324c8b90704bf9365 to your computer and use it in GitHub Desktop.
feh & pywal random wallpaper with Dynamic color scheme
#!/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