diff options
author | Tom Willemse | 2015-11-21 23:37:29 +0100 |
---|---|---|
committer | Tom Willemse | 2015-11-21 23:37:29 +0100 |
commit | b9489f315973dbf8b191aac0be7fd61a39dc95eb (patch) | |
tree | e0a4ddfaaa74d7717ea2c6df43197bb809a029a6 /herbstluftwm | |
parent | 216f9da8077628633eb36ad4c9979633a8577e04 (diff) | |
download | dotfiles-b9489f315973dbf8b191aac0be7fd61a39dc95eb.tar.gz dotfiles-b9489f315973dbf8b191aac0be7fd61a39dc95eb.zip |
Select a random wallpaper at startup
Diffstat (limited to 'herbstluftwm')
-rwxr-xr-x | herbstluftwm/.config/herbstluftwm/autostart | 8 |
1 files changed, 7 insertions, 1 deletions
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 |