Select a random wallpaper at startup

This commit is contained in:
Tom Willemse 2015-11-21 23:37:29 +01:00
parent 216f9da807
commit b9489f3159

View file

@ -6,9 +6,15 @@ function hc() {
herbstclient "$@" herbstclient "$@"
} }
function random-wallpaper() {
ls -1d ~/pictures/wallpapers/3840x1080/* \
~/pictures/wallpapers/patterns/* \
| shuf -n 1
}
hc emit_hook reload hc emit_hook reload
feh --bg-tile ~/pictures/wallpapers/footer_lodyas.png feh --bg-tile "$(random-wallpaper)"
# remove all existing keybindings # remove all existing keybindings
hc keyunbind --all hc keyunbind --all