sleep to prevent racing condition

i also have some problem with my statusbar. whenever i start up, the background of the statusbar is flashing, with tiny tiny printed letters. it looks like some terminal output in the top statusbar. when i press print screen, this behaviour ends, and all is well. happens on every reboot.
4:51 pm

This is a classic race condition — waybar (or whatever bar you use) is starting before hyprpaper or your wallpaper tool has fully initialized, so for a brief moment the bar renders against a transparent/unset background, and what you're seeing is the raw compositor output or a terminal behind it.

The print screen bind triggering a screenshot likely forces a compositor repaint which "fixes" the render state — confirming it's a rendering/timing issue, not a config bug.

Since your startup.sh handles autostart, the fix is simply to add a short sleep before launching the bar. Something like:
This commit is contained in:
committer@tuxwarrior
2026-05-25 16:55:03 -05:00
parent d3aa306b30
commit fafee91c05
+3 -3
View File
@@ -9,11 +9,11 @@ source /home/poq/syncDir/secrets/toBeSourced/secretsAsEnvVariables.sh # se
hypropolkitagent & # authentification
hypridle & # idle management deamon
hyprpaper & # wallpaper
nwg-panel & # status bar
sleep 1 && nwg-panel & # status bar | sleep to avoid racing condition
nm-applet & # network manager applet
nextcloud & # nextcloud file sync
pcloud & # pcloud service
nextcloud & # nextcloud file sync
pcloud & # pcloud service
if [[ "${HOSTNAME}" == "tuxwarrior" ]] ; then
hyprmon --profile office &