summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/set_windowmanager.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2011-11-25 17:47:19 (GMT)
committerJames Meyer <james.meyer@operamail.com>2011-11-25 17:47:19 (GMT)
commitfaebb898f76cac802cfc247e5544a6138e24cf95 (patch)
tree98fe025a40c7bf52e6e6fa4da909589e3f102f98 /abs/core/LinHES-system/set_windowmanager.sh
parent3fbd37b0c0d92c2fd1431ed293bd8f82c0f6ed85 (diff)
downloadlinhes_pkgbuild-faebb898f76cac802cfc247e5544a6138e24cf95.zip
linhes_pkgbuild-faebb898f76cac802cfc247e5544a6138e24cf95.tar.gz
linhes_pkgbuild-faebb898f76cac802cfc247e5544a6138e24cf95.tar.bz2
linhes-session: add the ability to switch windowmangers using the set_windowmanger.sh script.
"set_windowmanger.sh enlightenment" will set the default windowmanger to our sepecial instance of enlightenment Current valid values for the windowmanager are: default enlightement windowmaker $any_thing_else if /etc/X11/WINDOWMANGER is not present, or the script is never run then fluxbox is used by default. This script will also set the style of startup. Normally the startup is set so that the windowmanager is the last thing to keep X running. When the optional style of mythvantage is given, then the windowmanger is started in the BG and mythfrontend is put in a looping state. Exiting the windowmanger will not restart the session. to restart the session "sv restart frontend" must be issued. Current state of style is functional but incomplete.
Diffstat (limited to 'abs/core/LinHES-system/set_windowmanager.sh')
-rw-r--r--abs/core/LinHES-system/set_windowmanager.sh100
1 files changed, 100 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/set_windowmanager.sh b/abs/core/LinHES-system/set_windowmanager.sh
new file mode 100644
index 0000000..5c1150d
--- /dev/null
+++ b/abs/core/LinHES-system/set_windowmanager.sh
@@ -0,0 +1,100 @@
+#!/bin/bash
+# Script to change the windowmanger used when starting the frontend.
+# If a style is given, it will change which & how programs will start.
+#
+#
+windowmanager="$1"
+style="$2"
+
+
+function outmsg(){
+ echo
+ echo "Changing windowmanger to $1"
+ }
+
+function stylemsg(){
+ echo "Startup path will use $1 style"
+ }
+
+if [ x$windowmanager = x ]
+then
+ echo
+ echo "Usage: "
+ echo " set_windowmanger.sh WINDOWMANAGER STARTUP_STYLE"
+ echo
+ echo "Valid WINDOWMANAGER options are:"
+ echo " default"
+ echo " enlightenment"
+ echo " fluxbox"
+ echo " windowmaker"
+ echo " place_custom_startup_here"
+ echo
+ echo "Valid STARTUP_STYLE options are:"
+ echo " default"
+ echo " mythvantage"
+ echo
+ echo "If STARTUP_STYLE is not given, then the default will be used."
+ echo
+ echo "Example: "
+ echo " set_windowmanger.sh enlightenment mythvantage"
+ echo
+
+
+ exit 0
+fi
+
+
+case ${windowmanager} in
+
+ default)
+ outmsg "default/fluxbox"
+ outline="fluxbox"
+ echo "" > /etc/X11/WINDOWMANAGER
+ exit 0
+ ;;
+
+ enlightenment)
+ outmsg "enlightenment"
+ outline="e16 -P /data/e16_config_dir/"
+ ;;
+
+ windowmaker)
+ outmsg "window maker"
+ outline_2="export GNUSTEP_USER_ROOT=/data/GNUstep"
+
+ outline="wmaker"
+ ;;
+
+ *)
+ outline=$windowmanager
+ outmsg "$outline"
+ ;;
+
+esac
+
+
+
+case ${style} in
+
+ mythvantage)
+
+ STYLE="mythvantage"
+ stylemsg MythVantage
+ ;;
+ *)
+ STYLE="$style"
+ stylemsg "Default"
+ ;;
+
+esac
+
+
+echo WM=\"${outline}\" > /etc/X11/WINDOWMANAGER
+echo "STARTUP_STYLE=$STYLE" >> /etc/X11/WINDOWMANAGER
+echo ${outline_2} >> /etc/X11/WINDOWMANAGER
+
+
+
+
+
+