Source

etc / X11 / xinitrc

Full commit
#!/bin/bash
. /etc/profile
. "$HOME/etc/bash/bash_profile"

#defaultserverargs="-dpi 75"

xmodmap "$HOME/etc/X11/Xmodmap"
xbindkeys -f "$HOME/etc/X11/xbindkeysrc"
xset r rate 200 100

urxvtd -q -o -f
urxvtc &
#sleep 2 && xrandr | grep -q "DVI-D-1 connected" && xrandr -s 1920x1200 && xrandr --output DVI-D-1 --auto --right-of LVDS-1 &
sleep 1 && [ $(disper -l | wc -l) -gt 2 ] && disper -e &
echo 200 | sudo tee /sys/devices/platform/i8042/serio1/serio2/sensitivity
echo 200 | sudo tee /sys/devices/platform/i8042/serio1/serio2/speed

i=0
[ -f $HOME/.mail_check ] && rm $HOME/.mail_check
while pidof X &> /dev/null; do

	if [ $i -ge 5 ] && ! [ -f "$HOME/.mail_check" ]; then
		{
			touch "$HOME/.mail_check"
			unset mail
			if echo q | mail -A gmail | grep -q unread; then
				mail="G"
			fi
			if echo q | mail -A xirrus | grep -q unread; then
				mail="${mail}X"
			fi
			if echo q | mail -A icancelli | grep -q unread; then
				mail="${mail}I"
			fi
			if [ -n "$mail" ]; then
				mail=" $mail"
			fi
			echo -n "$mail" > "$HOME/.mail_status"
			rm "$HOME/.mail_check"
		} &
		i=0
	fi

	bat="$(acpi | cut -d ',' -f 2)"
	vol="$(amixer get Master | grep "Mono:" | sed 's/.*\[\(.*%\)\] .*/\1/')"
	xsetroot -name "[m$(cat "$HOME/.mail_status")] [b$bat] [v $vol] [$(date "+%a %b %d %R %Z %Y")]"
	((i++))
	sleep 30
done &

while pidof X &> /dev/null; do
	dwm &> "$HOME/.dwm.log"
done