aboutsummaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'config.py')
-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():