From eb98ad94b73c2fd65c88fbf8029699ad8e4b2677 Mon Sep 17 00:00:00 2001 From: Michael Kantor Date: Sat, 8 Jun 2024 11:15:01 -0400 Subject: Qtile writes it's pid to /tmp/qtile.pid. --- config.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.py') 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(): -- cgit v1.2.1