Select a random wallpaper at startup
This commit is contained in:
parent
216f9da807
commit
b9489f3159
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue