diff options
author | Michael Kantor <michael@mikekantor.xyz> | 2024-06-08 11:15:01 -0400 |
---|---|---|
committer | Michael Kantor <michael@mikekantor.xyz> | 2024-06-08 11:15:01 -0400 |
commit | eb98ad94b73c2fd65c88fbf8029699ad8e4b2677 (patch) | |
tree | 4641d51fa6f44986cdaa49c335bdb6efa42ee85c /config.py | |
parent | 1cb735dd499258b4879cdd79dd7a1504f29b6f52 (diff) |
Qtile writes it's pid to /tmp/qtile.pid.
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -27,6 +27,10 @@ def autostart(): holiday = cusmodules.holiday.main() os.system(f'{home}/.config/qtile/cusmodules/wallpaper.py {holiday}') subprocess.Popen(f'{home}/.config/qtile/autostart.sh') + qtile_pid = os.getpid() + + with open('/tmp/qtile.pid', 'w') as f: + f.write(str(qtile_pid)) @hook.subscribe.shutdown def shutdown(): |