summaryrefslogtreecommitdiff
path: root/home/xyz/.xinitrc
diff options
context:
space:
mode:
authorXiao Pan <gky44px1999@gmail.com>2023-04-15 21:07:56 -0700
committerXiao Pan <gky44px1999@gmail.com>2023-04-15 21:07:56 -0700
commitd18d0055525edbc1992367bdb34bd3a131f871ce (patch)
treeb69294a434cb9afac57f51657d9399380939d46b /home/xyz/.xinitrc
parent15c456a7bde807e0e29e8e47199cc2bc0ffcb312 (diff)
ugly code to kinda fix sbar not autostart issue
Diffstat (limited to 'home/xyz/.xinitrc')
-rw-r--r--home/xyz/.xinitrc9
1 files changed, 8 insertions, 1 deletions
diff --git a/home/xyz/.xinitrc b/home/xyz/.xinitrc
index 910e742f..cfe86e88 100644
--- a/home/xyz/.xinitrc
+++ b/home/xyz/.xinitrc
@@ -55,5 +55,12 @@ if [ "$(envycontrol -q)" = 'nvidia' ]; then
# but nvidia driver need it now
xrandr --dpi 96
fi
-sbar &
+{
+ # `pidof -q dwm` does not work sometimes
+ while ! pidof -q Xorg; do
+ sleep 1
+ done
+ sleep 1
+ sbar
+} &
exec dwm