Examples of autostart/stop for qtile.
This commit is contained in:
parent
41d357206a
commit
f8e32f4fc7
3 changed files with 7 additions and 0 deletions
|
@ -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])
|
||||
|
||||
|
|
2
_gui/_configs/qtile/examples/autostart.sh
Executable file
2
_gui/_configs/qtile/examples/autostart.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
firefox &
|
3
_gui/_configs/qtile/examples/autostop.sh
Executable file
3
_gui/_configs/qtile/examples/autostop.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
# be sure that processes quit with qtile
|
||||
killall -9 firefox
|
Loading…
Add table
Add a link
Reference in a new issue