Examples of autostart/stop for qtile.

This commit is contained in:
Bartek Stalewski 2023-11-15 15:45:37 +01:00
parent 41d357206a
commit f8e32f4fc7
3 changed files with 7 additions and 0 deletions

View file

@ -114,11 +114,13 @@ else:
@hook.subscribe.startup_once
def autostart():
# see examples/autostart.sh
autostart=os.getenv('XDG_CONFIG_HOME') + '/qtile/autostart.sh'
subprocess.run([autostart])
@hook.subscribe.shutdown
def autostop():
# see examples/autostop.sh
autostop=os.getenv('XDG_CONFIG_HOME') + '/qtile/autostop.sh'
subprocess.run([autostop])