From b9489f315973dbf8b191aac0be7fd61a39dc95eb Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 21 Nov 2015 23:37:29 +0100 Subject: Select a random wallpaper at startup --- herbstluftwm/.config/herbstluftwm/autostart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart index 36a05c9..6177f91 100755 --- a/herbstluftwm/.config/herbstluftwm/autostart +++ b/herbstluftwm/.config/herbstluftwm/autostart @@ -6,9 +6,15 @@ function hc() { herbstclient "$@" } +function random-wallpaper() { + ls -1d ~/pictures/wallpapers/3840x1080/* \ + ~/pictures/wallpapers/patterns/* \ + | shuf -n 1 +} + hc emit_hook reload -feh --bg-tile ~/pictures/wallpapers/footer_lodyas.png +feh --bg-tile "$(random-wallpaper)" # remove all existing keybindings hc keyunbind --all -- cgit v1.2.3-54-g00ecf