diff options
| author | Christian Krinitsin <christian@krinitsin.xyz> | 2024-03-16 21:16:28 +0100 |
|---|---|---|
| committer | Christian Krinitsin <christian@krinitsin.xyz> | 2024-03-16 21:16:28 +0100 |
| commit | e992c3c164e9bf8869fb8b20eaa17ca595d92aac (patch) | |
| tree | 849e0f16837e5aa269fc136512e153ec3b889de6 /bin/random-wallpaper | |
| parent | b8a4392c8754a56265701f97f4833b447efff29a (diff) | |
| download | dotfiles-e992c3c164e9bf8869fb8b20eaa17ca595d92aac.tar.gz dotfiles-e992c3c164e9bf8869fb8b20eaa17ca595d92aac.zip | |
custom bins
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 |