summary refs log tree commit diff stats
path: root/bin/random-wallpaper
blob: cb4aa1aa8d80b5fa9021a91c13902a5955bb295f (plain) (blame)
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