[herbstluftwm] Track the wallpaper used in herbstluftwm
This commit is contained in:
parent
286f8d1b06
commit
8e798ea24f
1 changed files with 8 additions and 1 deletions
|
@ -41,7 +41,14 @@ hc emit_hook reload
|
|||
## Background image:
|
||||
|
||||
# Set a random image as the desktop wallpaper.
|
||||
feh --bg-tile $(random-wallpaper)
|
||||
wallpaper=$(random-wallpaper)
|
||||
|
||||
if ! hc attr my_wallpaper
|
||||
then
|
||||
hc new_attr string my_wallpaper
|
||||
fi
|
||||
|
||||
feh --bg-tile "$wallpaper" && hc set_attr my_wallpaper "$wallpaper"
|
||||
|
||||
## Keybindings:
|
||||
# Remove all existing keybindings so that when herbstluftwm is
|
||||
|
|
Loading…
Reference in a new issue