fix slow starting gtk applications be restructuring xinitrc
authorMart Lubbers <mart@martlubbers.net>
Fri, 11 Jun 2021 07:58:53 +0000 (09:58 +0200)
committerMart Lubbers <mart@martlubbers.net>
Fri, 11 Jun 2021 07:58:53 +0000 (09:58 +0200)
x/.xinitrc
x/.xsession [new file with mode: 0644]

index 34049da..e789b05 100755 (executable)
@@ -16,18 +16,13 @@ if [ $(hostname) != ygdrassil ]; then
        xautolock -locker slock -time 10 &
 fi
 
-# Other system wide xinit files
-if [ -d /etc/X11/xinit/xinitrc.d ]; then
-       for f in /etc/X11/xinit/xinitrc.d/?*.sh; do
-               [ -x "$f" ] && . "$f"
-       done
-fi
-
 # status bar
 slstatus &
 
 # compositor
 xcompmgr -a -c -l0 -t0 -r0 -o.00 &
 
-# window manager
-while true; do dwm 1>/tmp/dwm.log 2>&1; done
+# Other system wide xinit files
+if [ -f /etc/X11/xinit/xinitrc ]; then
+       . /etc/X11/xinit/xinitrc
+fi
diff --git a/x/.xsession b/x/.xsession
new file mode 100644 (file)
index 0000000..de53e21
--- /dev/null
@@ -0,0 +1,2 @@
+# window manager
+while true; do /usr/local/bin/dwm 1>/tmp/dwm.log 2>&1; done