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:
+1
-1
@@ -9,7 +9,7 @@ source /home/poq/syncDir/secrets/toBeSourced/secretsAsEnvVariables.sh # se
|
|||||||
hypropolkitagent & # authentification
|
hypropolkitagent & # authentification
|
||||||
hypridle & # idle management deamon
|
hypridle & # idle management deamon
|
||||||
hyprpaper & # wallpaper
|
hyprpaper & # wallpaper
|
||||||
nwg-panel & # status bar
|
sleep 1 && nwg-panel & # status bar | sleep to avoid racing condition
|
||||||
|
|
||||||
nm-applet & # network manager applet
|
nm-applet & # network manager applet
|
||||||
nextcloud & # nextcloud file sync
|
nextcloud & # nextcloud file sync
|
||||||
|
|||||||
Reference in New Issue
Block a user