# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/x11/xfree86/stone_mod_xfree86.sh # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- # # [MAIN] 50 xfree86 X11/XFree86 (Graphical User Interface) set_wm() { echo "export WINDOWMANAGER=\"$1\"" > /etc/profile.d/windowmanager } set_xdm() { echo "export XDM=\"$1\"" > /etc/conf/xdm } main() { while WINDOWMANAGER="" if [ -f /etc/profile.d/windowmanager ]; then . /etc/profile.d/windowmanager fi XDM="" if [ -f /etc/conf/xdm ]; then . /etc/conf/xdm fi cmd="gui_menu xfree86 'XFree86 Configuration Menu' 'Run xf86cfg (recommended, new interactve config)' 'gui_cmd xf86ccfg xf86cfg -xf86config /etc/X11/XF86Config' 'Run X -configure (automated config)' 'gui_cmd XFree86 XFree86 -configure ; mv /root/XF86Config.new /etc/X11/XF86Config' 'Run xf86config (old textual config)' 'gui_cmd xf86config xf86config'" cmd="$cmd '' ''" for x in /usr/share/rock-registry/xdm/* ; do if [ -f $x ] ; then . $x if [ "$XDM" = "$exec" ]; then pre='[*]' ; else pre='[ ]' ; fi cmd="$cmd '$pre Use $name in runlevel 5' 'set_xdm \"$exec\"'" fi done cmd="$cmd '' ''" for x in /usr/share/rock-registry/wm/* ; do if [ -f $x ] ; then . $x if [ "$WINDOWMANAGER" = "$exec" ]; then pre='[*]' ; else pre='[ ]' ; fi cmd="$cmd '$pre Use $name as default Windowmanager' 'set_wm \"$exec\"'" fi done cmd="$cmd '' ''" cmd="$cmd 'Edit/View /etc/X11/XF86Config' 'gui_edit XF86config /etc/X11/XF86Config' 'Edit/View /etc/profile.d/windowmanager' 'gui_edit WINDOWMANAGER /etc/profile.d/windowmanager'" eval $cmd do : ; done }