bin/random-wallpaper (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/sh # # This script takes a random wallpaper out of the folder it cd's into # In the repo there are duplicates of the backgrounds with different colorgrading, # I'm "limiting" myself to one colorgrading cd ~/.dotfiles/wallpaper IMAGE=$(find *'.png' | sort -R | tail -n 1) killall swaybg swaybg -m fill -i ~/.dotfiles/wallpaper/$IMAGE |