diff options
Diffstat (limited to 'bin/random-wallpaper')
| -rwxr-xr-x | bin/random-wallpaper | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/random-wallpaper b/bin/random-wallpaper new file mode 100755 index 0000000..796d44c --- /dev/null +++ b/bin/random-wallpaper @@ -0,0 +1,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 ~/.everforest-walls/nature/ + +IMAGE=$(find *'1.png' | sort -R | tail -n 1) + +swaymsg output "*" bg ~/.everforest-walls/nature/$IMAGE fill |