summaryrefslogtreecommitdiff
path: root/home/xyz/.xinitrc
diff options
context:
space:
mode:
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