From 7fb79ca78108a982273aa95f0de4c652e15dd45a Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Sun, 22 Aug 2021 01:54:51 -0300 Subject: [PATCH] qtile/picom: fix bar rounded corner issue for some reason, the picom needs to start after the bar is already there, so added a bit of a delay on startup and restart picom (also delayed) along with qtile --- .config/qtile/autostart.sh | 2 +- .config/qtile/config.py | 4 ++++ .config/qtile/on_restart.sh | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 .config/qtile/on_restart.sh 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