bin/random-wallpaper (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#!/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) swaymsg output "*" bg ~/.dotfiles/wallpaper/$IMAGE fill |