X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.xinitrc;h=f910dadbd2040132d165ea2068957180fd33300e;hb=2af830db3b1ea626eb2ea62cdca48813bd726e94;hp=3b7197f885eb1289060afadb9d73c5ea7ce30ad3;hpb=d59e32339d512e4655b250563080e2507b58c698;p=dotfiles.git diff --git a/x/.xinitrc b/x/.xinitrc index 3b7197f..f910dad 100755 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -1,19 +1,30 @@ #!/bin/bash #To fix java applications in tiling (e.g. arduino) export _JAVA_AWT_WM_NONREPARENTING=1 + +# notifications dunst & -trayer --align right --widthtype request --SetPartialStrut false --height 22 & -/usr/sbin/wpa_gui -t & +# 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 -while true; do xsetroot -name "$(bar)"; sleep 1m; done & +# status bar +slstatus & + +# window manager while true; do dwm 1>/tmp/dwm.log 2>&1; done