summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2021-08-13 13:38:05 +0100
committerrafa_99 <raroma09@gmail.com>2021-08-13 13:38:05 +0100
commitf5c5607cc9963fec70d627b87b0d516edf400c68 (patch)
treee4da8b371c0b88918e52f00c19962e2db9027059
parentfb71a89759d131a60eaeaa93770e48e74516985c (diff)
Some Xorg Checks
-rwxr-xr-xshell/.config/shell/env9
1 files changed, 7 insertions, 2 deletions
diff --git a/shell/.config/shell/env b/shell/.config/shell/env
index 9a3b957..1eb0222 100755
--- a/shell/.config/shell/env
+++ b/shell/.config/shell/env
@@ -37,6 +37,11 @@ export WALLPAPER="$XDG_CONFIG_HOME"/wallpaper/wallpaper.png
export QT_QPA_PLATFORMTHEME=qt5ct
export "$(dbus-launch)"
-# Initializing Session
+# Initializing Session if Xorg not Running Already
export SESSION=dwm
-exec startx "$XINITRC"
+
+if ! pgrep Xorg > /dev/null
+then
+ exec startx "$XINITRC"
+fi
+