aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kantor <michael@mikekantor.xyz>2024-06-08 11:15:01 -0400
committerMichael Kantor <michael@mikekantor.xyz>2024-06-08 11:15:01 -0400
commiteb98ad94b73c2fd65c88fbf8029699ad8e4b2677 (patch)
tree4641d51fa6f44986cdaa49c335bdb6efa42ee85c
parent1cb735dd499258b4879cdd79dd7a1504f29b6f52 (diff)
Qtile writes it's pid to /tmp/qtile.pid.
-rw-r--r--config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.py b/config.py
index b7761c2..db4a870 100644
--- a/config.py
+++ b/config.py
@@ -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():