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 **/autostart.sh
**/stop.sh
**/bookmarks **/bookmarks
**/lazy-lock.json **/lazy-lock.json
**/.netrwhist **/.netrwhist

View File

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