repositories
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scr
[dotfiles.git]
/
x
/
.xinitrc
diff --git
a/x/.xinitrc
b/x/.xinitrc
index
dfabfa3
..
0132dab
100755
(executable)
--- a/
x/.xinitrc
+++ b/
x/.xinitrc
@@
-1,15
+1,30
@@
#!/bin/bash
#!/bin/bash
-xautolock -locker ~/.local/bin/lock.sh &
+#To fix java applications in tiling (e.g. arduino)
+export _JAVA_AWT_WM_NONREPARENTING=1
+
+# notifications
dunst &
dunst &
+# gpg agent
eval "$(gpg-agent --daemon)"
eval "$(gpg-agent --daemon)"
+
+# XResources
xrdb -merge ~/.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
[ -x "$f" ] && . "$f"
done
- unset f
fi
fi
-exec i3
+# status bar
+while true; do xsetroot -name "$(bar)"; sleep 1m; done &
+
+# wm
+while true; do dwm 1>/tmp/dwm.log 2>&1; done