Moving the background definition to the startup hook.
This commit is contained in:
parent
964ae293d0
commit
53f9a13c44
1 changed files with 7 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
|
||||
from libqtile.config import Key, Screen, Group, Drag, Click
|
||||
from libqtile import layout, bar, widget
|
||||
from libqtile import layout, bar, widget, hook
|
||||
from libqtile.command import lazy
|
||||
from glob import glob
|
||||
import subprocess
|
||||
|
@ -125,9 +125,14 @@ class ConfigWrapper:
|
|||
return mouse
|
||||
|
||||
|
||||
if __name__ in ['config', '__main__']:
|
||||
@hook.subscribe.startup
|
||||
def startup():
|
||||
cnf = ConfigWrapper()
|
||||
cnf.set_wallpaper()
|
||||
|
||||
|
||||
if __name__ in ['config', '__main__']:
|
||||
cnf = ConfigWrapper()
|
||||
groups = cnf.set_groups()
|
||||
layouts = cnf.set_layouts()
|
||||
screens = cnf.set_screens()
|
||||
|
|
Loading…
Reference in a new issue