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
This commit is contained in:
Guilherme Rugai Freire 2021-08-22 01:54:51 -03:00
parent 626033c750
commit 7fb79ca781
No known key found for this signature in database
GPG Key ID: 0F9FE41723A8A297
3 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,7 @@
/usr/bin/numlockx
# Start compositor
picom --experimental-backends &
(sleep 1 && picom --experimental-backends) &
# Start notification server
dunst &

View File

@ -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):

4
.config/qtile/on_restart.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# Restart picom so qtile bar does not get round corners
killall picom ; sleep 1 && picom --experimental-backends &