flacfix script, cpm completion update, newsboat urls, new install_clean patch
[dotfiles.git] / x / .xinitrc
old mode 100644 (file)
new mode 100755 (executable)
index 53c756f..2d7271d
@@ -1,14 +1,30 @@
+#!/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)"
+
+# XResources
 xrdb -merge ~/.Xresources
-urxvtd -q -o -f
-
-envfile="$HOME/.gnupg/gpg-agent.env"
-if [[ -e "$envfile" ]] && kill -0 $(grep GPG_AGENT_INFO "$envfile" | cut -d: -f 2) 2>/dev/null
-then
-       eval "$(cat "$envfile")"
-else
-       eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "$envfile")"
+
+# auto locking but not on laptop
+if [ $(hostname) != "ygdrassil" ]; then
+       xautolock -locker slock -time 10 &
 fi
-export GPG_AGENT_INFO
-export SSH_AUTH_SOCK
 
-exec i3
+# 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
+while true; do xsetroot -name "$(bar)"; sleep 1m; done &
+
+# wm
+while true; do dwm 1>/tmp/dwm.log 2>&1; done