1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xorg-server/stone_mod_xorg.sh
3 # Copyright (C) 2004 - 2022 The T2 SDE Project
4 # Copyright (C) 1998 - 2004 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 # [MAIN] 50 xorg X11 Configuration
16 echo "export WINDOWMANAGER=\"$*\"" > /etc
/profile.d
/windowmanager
20 echo "export XDM=\"$*\"" > /etc
/conf
/xdm
26 if [ -f /etc
/profile.d
/windowmanager
]; then
27 .
/etc
/profile.d
/windowmanager
31 if [ -f /etc
/conf
/xdm
]; then
35 cmd
="gui_menu x 'X11 Configuration Menu'
36 'Run XcfgT2 (the T2 LiveCD auto configuration)'
37 'gui_cmd XcfgT2 xcfgt2'
39 'Run X -configure (automated config)'
40 'gui_cmd Xorg Xorg -configure ; mv -v /root/xorg.conf.new /etc/X11/xorg.conf'"
44 for x
in /usr
/share
/registry
/xdm
/* ; do
48 if [ "$XDM" = "$exec" ]; then
53 '$pre Use $name in runlevel 5'
60 for x
in /usr
/share
/registry
/wm
/* ; do
64 if [ "$WINDOWMANAGER" = "$exec" ]; then
69 '$pre Use $name as default Windowmanager'
77 'Edit/View /etc/X11/xorg.conf'
78 'gui_edit xorg.conf /etc/X11/xorg.conf'
79 'Edit/View /etc/profile.d/windowmanager'
80 'gui_edit WINDOWMANAGER /etc/profile.d/windowmanager'"