X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=x%2F.xinitrc;h=685a75a0f58de8ca2e55b413d71080b8767e2c2c;hb=3a92354af22bbdab45045d2acfe095d52a4eb59b;hp=53c756fc9d92367872c1f142335671be606b622e;hpb=7c0c395e57530a31d96410759e5f65b12d2aaea2;p=dotfiles.git diff --git a/x/.xinitrc b/x/.xinitrc old mode 100644 new mode 100755 index 53c756f..685a75a --- a/x/.xinitrc +++ b/x/.xinitrc @@ -1,14 +1,32 @@ +#!/bin/bash +#To fix java applications in tiling (e.g. arduino) +export _JAVA_AWT_WM_NONREPARENTING=1 + +# notifications +dunst & + +# tray icons +# trayer --align right --widthtype request --SetPartialStrut false --height 22 & + +# 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 +xautolock -locker slock -time 10 & + +# 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 -export GPG_AGENT_INFO -export SSH_AUTH_SOCK -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