X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.xinitrc;h=2d7271dd3a992c5c68afff5493d651f9ff214d21;hb=8a098d0edf56fcbcd680ce68329afb1f707f2243;hp=763a2b5b38a20e0c5dea47f680c7eacc5e29a5cf;hpb=ca4e74b1c8d81761eb0d5d8dc4a996928fae2745;p=dotfiles.git diff --git a/x/.xinitrc b/x/.xinitrc index 763a2b5..2d7271d 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -1,17 +1,30 @@ #!/bin/bash -PATH=$PATH:~/.local/bin -xautolock -locker ~/.local/bin/lock.sh & +#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 -if [ -d /etc/X11/xinit/xinitrc.d ] ; then - for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do +# auto locking but not 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 + +# wm +while true; do dwm 1>/tmp/dwm.log 2>&1; done