pkg-config is needed to build wmiirc-lua (thanks hsuh)
[wmiirc-lua.git] / wmii-lua
blobe48d173333fd67d62cacde4e09986f41c44ae7d3
1 #!/bin/sh
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
8 POSSIBLE_WMIIRC="
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
16 WMIIRC=
17 for wmiirc in ${POSSIBLE_WMIIRC} ; do
18 if ( test -r "${wmiirc}" ) && ( head -n1 "${wmiirc}" | grep -q lua ) ; then
19 exec wmii -r "${wmiirc}"
21 done
23 # default to the base one
24 exec wmii