Script for stopping stuff when qtile exits.

This commit is contained in:
Bartek Stalewski 2023-07-29 23:50:17 +02:00
parent 1694f157ea
commit aa145d5130
2 changed files with 8 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
**/autostart.sh
**/stop.sh
**/bookmarks
**/lazy-lock.json
**/.netrwhist

View File

@ -16,8 +16,13 @@ wl_input_rules = {
@hook.subscribe.startup_once
def autostart():
home = os.path.expanduser('~/.config/qtile/autostart.sh')
subprocess.Popen([home])
autostart = os.path.expanduser('~/.config/qtile/autostart.sh')
subprocess.Popen([autostart])
@hook.subscribe.shutdown
def autostop():
autostop = os.path.expanduser('~/.config/qtile/stop.sh')
subprocess.Popen([autostop])
mod = "mod4"
groups = [