From e7eeb03a7d65670e8c5b3d50e23314fdae840549 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Mon, 30 Oct 2023 07:46:32 +0200 Subject: qtile: Fix autostart hook --- .config/qtile/config.py | 5 +++++ .xinitrc | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 9729b8b..be3b9b8 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -32,6 +32,11 @@ def init_layout_theme(): "border_normal": dracula["bg"], } +@hook.subscribe.startup_once +def autostart(): + autostart_script = os.path.expanduser('~/.config/autostart/autostart.sh') + subprocess.Popen([autostart_script]) + layout_theme = init_layout_theme() layouts = [ diff --git a/.xinitrc b/.xinitrc index 18ac912..a2369e5 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,4 +1,3 @@ #!/bin/sh /usr/bin/qtile start -~/.config/autostart/autostart.sh -- cgit v1.2.3