3 # Copyright (c) 2007, Bart Trojanowski <bart@jukie.net>
5 # This script launches the wmii window manager with the wmiirc.lua script.
7 # we will look for wmiirc in these directories
9 ${HOME}/.wmii-3.5/wmiirc.lua
10 ${HOME}/.wmii-3.5/wmiirc
11 /etc/X11/wmii-3.5/wmiirc.lua
12 /etc/X11/wmii-3.5/wmiirc
15 # try to find the best wmiirc written in lua
17 for wmiirc
in ${POSSIBLE_WMIIRC} ; do
18 if ( test -r "${wmiirc}" ) && ( head -n1 "${wmiirc}" |
grep -q lua
) ; then
19 exec wmii
-r "${wmiirc}"
23 # default to the base one