Remove various scripts
[grml-scripts.git] / usr_bin / wm-ng
1 #!/bin/sh
2 # Filename:      wm-ng
3 # Purpose:       a wrapper script to call fluxbox with some additional features activated
4 # Authors:       grml-team (grml.org)
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 ################################################################################
8
9 # start Grml's fluxbox setup only if fluxbox is present
10 if [ -x "$(which fluxbox 2>/dev/null)" ] ; then
11   gkrellm -g -1+26 &
12   (sleep 2; idesk &) &
13   fluxbox
14 elif [ "$(basename $(readlink -f $(which x-window-manager 2>/dev/null)))" != "fluxbox" ] && \
15      [ "$(basename $(readlink -f $(which x-window-manager 2>/dev/null)))" != "$(basename $0)" ] ; then
16     # fall back unless it's set to fluxbox or points back to wm-ng
17     x-window-manager
18 else
19   echo "Error: fluxbox not present + x-window-manager is not an alternative neither." >&2
20   exit 1
21 fi
22
23 exit $?
24
25 ## END OF FILE #################################################################