fix slow starting gtk applications be restructuring xinitrc
[dotfiles.git] / x / .xinitrc
old mode 100644 (file)
new mode 100755 (executable)
index 558b4cf..e789b05
@@ -1,5 +1,28 @@
-fbgrab /tmp/bg.png
+#!/bin/bash
+#To fix java applications in tiling (e.g. arduino)
+export _JAVA_AWT_WM_NONREPARENTING=1
 
+# notifications
+dunst &
+
+# gpg agent
 eval "$(gpg-agent --daemon)"
 
-exec i3
+# XResources
+xrdb -merge ~/.Xresources
+
+# auto locking but only on laptop
+if [ $(hostname) != ygdrassil ]; then
+       xautolock -locker slock -time 10 &
+fi
+
+# status bar
+slstatus &
+
+# compositor
+xcompmgr -a -c -l0 -t0 -r0 -o.00 &
+
+# Other system wide xinit files
+if [ -f /etc/X11/xinit/xinitrc ]; then
+       . /etc/X11/xinit/xinitrc
+fi