dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

.xsession (453B)


      1 #!/bin/sh
      2 #
      3 # ~/.xsession
      4 #
      5 echo "Running $HOME/.xsession as PID $$" >&2
      6 [ -r "$HOME/.Xresources.local" ] && xrdb -merge "$HOME/.Xresources.local"
      7 date +'%m/%d/%Y %H:%M:%S' >&2
      8 env >&2
      9 
     10 if [ $# -eq 0 ]
     11 then
     12 	for wm in $wm rio dwm awesome i3 twm
     13 	do
     14 		if type $wm > /dev/null 2>&1
     15 		then
     16 			echo "Setting window manager to $wm" >&2
     17 			set -- $wm
     18 			break
     19 		fi
     20 	done
     21 fi
     22 
     23 for file in "$HOME"/etc/xsession.d/*.sh
     24 do
     25 	[ -r $file ] && . $file
     26 done
     27 
     28 exec "$@"