#!/bin/sh sysmodmap=/usr/local/etc/X11/xinit/.Xmodmap sysresources=/usr/local/etc/X11/xinit/.Xresources usermodmap="$HOME/.Xmodmap" userresources="$HOME/.Xresources" if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f "$userresources" ]; then xrdb -merge "$userresources" fi if [ -f "$usermodmap" ]; then xmodmap "$usermodmap" fi xset r rate 290 26 xset m 1/1 0 redon & dunst & tint2 & xautolock -time 10 -locker "$HOME/bin/l" & xbanish & if [ -x /usr/local/bin/urxvtd ]; then for i in 1 2; do # try to start client twice, once before checking for daemon and # another after trying to start it urxvtc if [ $? -eq 2 ]; then # daemon not started, attempt to start once if [ $i -eq 1 ]; then urxvtd -q -o -f fi else TERMINAL=/usr/local/bin/urxvtc export TERMINAL break fi done unset i fi # try to wait for session to start, but not critical #XXX: may not be applicable to sessions other than i3 (sleep 0.2 && [ -x "$HOME/bin/acpi_ac" ] && "$HOME/bin/acpi_ac" "0x0`sysctl -n hw.acpi.acline`" ) & (sleep 1 && "$HOME/.fehbg") & (sleep 1.5 && [ -x /usr/local/bin/conky ] && conky -c "$HOME/.conkyrc.d/dock" ) & if [ -d /usr/local/etc/X11/xinit/xinitrc.d ]; then for f in /usr/local/etc/X11/xinit/xinitrc.d/?*.sh; do [ -x "$f" ] && . "$f" done unset f fi if [ ! -n "$1" ]; then session=i3 else session=$1 fi exec $session