Merge branch 'master' of github.com:dopefishh/dotfiles
[dotfiles.git] / x / .xinitrc
index 5007142..2822f41 100755 (executable)
@@ -1,20 +1,31 @@
 #!/bin/bash
-PATH=$PATH:~/.local/bin
-
 #To fix java applications in tiling (e.g. arduino)
 export _JAVA_AWT_WM_NONREPARENTING=1
-xautolock -locker ~/.local/bin/lock.sh &
+
+# notifications
 dunst &
 
+# gpg agent
 eval "$(gpg-agent --daemon)"
+
+# XResources
 xrdb -merge ~/.Xresources
 
-if [ -d /etc/X11/xinit/xinitrc.d ] ; then
-       for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
+# auto locking but only on laptop
+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
-       unset f
 fi
 
+# status bar
 while true; do xsetroot -name "$(bar)"; sleep 1m; done &
-while true; do dwm >dwm.log 2>&1; done
+
+#xrandr --setmonitor Presentation 3840/1040x1080/640+0+0 eDP1,HDMI1
+#xrandr --output eDP1 --mode 1920x1080 --output HDMI1 --mode 1920x1080 --right-of=eDP1
+while true; do dwm 1>/tmp/dwm.log 2>&1; done