legacy-dotfiles/.xinitrc
2012-04-06 13:40:41 +02:00

38 lines
951 B
Text

#_ Modify keys
xmodmap ~/.Xmodmap
#_ Start some programs
xsetroot -solid "#002b36"
numlockx &
emacs --daemon &
xbindkeys &
#_. mpdscribble
pidof mpdscribble >& /dev/null
if [ $? -ne 0 ]
then
mpdscribble &
fi
#_. mpdnotify
mpc idleloop player | { while read; do notify-send "`mpc current`"; done } &
#_. rootname
while true; do
xsetroot -name "`/home/slash/.rootname.scm`"
sleep 1m
done &
#_ Start notifier
geometry=($(herbstclient monitor_rect 0))
x=${geometry[0]}
width=${geometry[2]}
height=12
y=0
/usr/bin/dunst \
-fn "-misc-tamsyn-medium-r-normal-*-14-*-*-*-*-*-iso8859-*" \
-nb "#002b36" -nf "#657b83" -geometry "${width}x${height}+${x}+${y}" &
#_ Start session
exec ck-launch-session /usr/bin/herbstluftwm 2>&1 >> ~/.xsession_errors
exec ck-launch-session /usr/local/bin/dwm 2>&1 >> ~/.xsession_errors
#_ Local Variables
# Local Variables:
# mode: shell-script
# eval: (git-auto-commit-mode 1)
# eval: (allout-mode 1)
# End: