diff --git a/.config/qtile/autostart.sh b/.config/qtile/autostart.sh index caddd8c..45aa0df 100755 --- a/.config/qtile/autostart.sh +++ b/.config/qtile/autostart.sh @@ -7,7 +7,7 @@ /usr/bin/numlockx # Start compositor -picom --experimental-backends & +(sleep 1 && picom --experimental-backends) & # Start notification server dunst & diff --git a/.config/qtile/config.py b/.config/qtile/config.py index 0efb362..60167c5 100644 --- a/.config/qtile/config.py +++ b/.config/qtile/config.py @@ -395,6 +395,10 @@ def autostart(): autostart_script = os.path.expanduser("~/.config/qtile/autostart.sh") subprocess.call([autostart_script]) +@hook.subscribe.restart +def restart_hook(): + os.system(os.path.expanduser("~/.config/qtile/on_restart.sh")) + @hook.subscribe.client_new def try_swallow(window): diff --git a/.config/qtile/on_restart.sh b/.config/qtile/on_restart.sh new file mode 100755 index 0000000..c7dcf98 --- /dev/null +++ b/.config/qtile/on_restart.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Restart picom so qtile bar does not get round corners +killall picom ; sleep 1 && picom --experimental-backends & \ No newline at end of file