#!/bin/zsh -l session=$1 # xdotool needs this set by setxkbmap # as a fallback this should also be set in the X11 config if (( $+commands[setxkbmap] )); then setxkbmap \ -layout us,de \ -variant altgr-intl,deadgraveacute \ -option \ -option terminate:ctrl_alt_bksp,grp:menu_toggle,compose:rwin,caps:escape fi # set IM to XIM, so it reads .XCompose export GTK_IM_MODULE=xim export QT_IM_MODULE=xim [ x$GPG_AGENT_INFO = "x" ] && eval $(gpg-agent --daemon) eval $(ssh-agent) # start urxvt daemon urxvtd -f -o -q [[ $session == session ]] && exit if [ -d /etc/X11/xinit/xinitrc.d ]; then for i in /etc/X11/xinit/xinitrc.d/* ; do if [ -x "$i" ]; then . "$i" fi done fi xrdb -DHOME=$HOME -merge $HOME/.Xresources case $session in [xX]fce|[xX]fce4) exec startxfce4;; *) . $HOME/.fehbg exec i3 -V > $HOME/.i3/i3.log 2>&1 ;; esac