slitaz-arm rev 78

Rename base flavor to arm-base to have slitaz-arm-flavor.tar.xz rel tarball name, add configs for slitaz-config package
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 29 13:25:11 2014 +0100 (2014-03-29)
parents 89635aaf5b4b
children f17cd81ab593
files flavors/arm-base/flavor.conf flavors/arm-base/packages.list flavors/base/flavor.conf flavors/base/packages.list rootfs/etc/skel/.Xdefaults rootfs/etc/skel/.xinitrc rootfs/etc/skel/.xsession rootfs/etc/xdg/openbox/autostart rootfs/etc/xdg/openbox/environment rootfs/etc/xdg/openbox/menu.xml rootfs/etc/xdg/openbox/rc.xml rootfs/root/.Xdefaults rootfs/usr/bin/slitaz-config rootfs/usr/bin/tazx
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/flavors/arm-base/flavor.conf	Sat Mar 29 13:25:11 2014 +0100
     1.3 @@ -0,0 +1,8 @@
     1.4 +# SliTaz ARM Flavor configuration file.
     1.5 +#
     1.6 +
     1.7 +FLAVOR="base"
     1.8 +VERSION="20140303"
     1.9 +MAINTAINER="pankso@slitaz.org"
    1.10 +SHORT_DESC="SliTaz ARM text mode base system"
    1.11 +WEB_SITE="http://arm.slitaz.org"
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/flavors/arm-base/packages.list	Sat Mar 29 13:25:11 2014 +0100
     2.3 @@ -0,0 +1,22 @@
     2.4 +busybox
     2.5 +gcc-lib-base
     2.6 +gettext-base
     2.7 +glibc-base
     2.8 +kbd-base
     2.9 +linux
    2.10 +slitaz-base-files
    2.11 +slitaz-boot-scripts
    2.12 +slitaz-configs-base
    2.13 +slitaz-tools
    2.14 +spk
    2.15 +tazirc
    2.16 +util-linux-blkid
    2.17 +util-linux-uuid
    2.18 +ncurses-common
    2.19 +ncursesw
    2.20 +libcomerr
    2.21 +e2fsprogs
    2.22 +dialog
    2.23 +zlib
    2.24 +dropbear
    2.25 +joe
     3.1 --- a/flavors/base/flavor.conf	Sun Mar 23 21:52:11 2014 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,8 +0,0 @@
     3.4 -# SliTaz ARM Flavor configuration file.
     3.5 -#
     3.6 -
     3.7 -FLAVOR="base"
     3.8 -VERSION="20140303"
     3.9 -MAINTAINER="pankso@slitaz.org"
    3.10 -SHORT_DESC="SliTaz ARM text mode base system"
    3.11 -WEB_SITE="http://arm.slitaz.org"
     4.1 --- a/flavors/base/packages.list	Sun Mar 23 21:52:11 2014 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,22 +0,0 @@
     4.4 -busybox
     4.5 -gcc-lib-base
     4.6 -gettext-base
     4.7 -glibc-base
     4.8 -kbd-base
     4.9 -linux
    4.10 -slitaz-base-files
    4.11 -slitaz-boot-scripts
    4.12 -slitaz-configs-base
    4.13 -slitaz-tools
    4.14 -spk
    4.15 -tazirc
    4.16 -util-linux-blkid
    4.17 -util-linux-uuid
    4.18 -ncurses-common
    4.19 -ncursesw
    4.20 -libcomerr
    4.21 -e2fsprogs
    4.22 -dialog
    4.23 -zlib
    4.24 -dropbear
    4.25 -joe
     5.1 --- a/rootfs/etc/skel/.Xdefaults	Sun Mar 23 21:52:11 2014 +0100
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,23 +0,0 @@
     5.4 -!~/.Xdefault: Control the behavior of x-clients.
     5.5 -!
     5.6 -
     5.7 -! Xcursor theme (~/.icons).
     5.8 -!
     5.9 -Xcursor.theme:		slitaz-polar
    5.10 -
    5.11 -! XTerm settings.
    5.12 -!
    5.13 -xterm*background:	#000000
    5.14 -xterm*foreground:	#ffffff
    5.15 -xterm*cursorColor:	#d66018
    5.16 -xterm*scrollBar:	off
    5.17 -xterm*faceName:		DejaVu Sans Mono
    5.18 -xterm*faceNameDoublesize:WenQuanYi WenQuanYi Micro Hei Mono-12
    5.19 -xterm*faceSize:		12
    5.20 -xterm*utf8:		    2
    5.21 -xterm*eightBitInput:	true
    5.22 -
    5.23 -! Xload settings.
    5.24 -!
    5.25 -!xload*background:	black
    5.26 -!xload*foreground:	lightblue
     6.1 --- a/rootfs/etc/skel/.xinitrc	Sun Mar 23 21:52:11 2014 +0100
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,18 +0,0 @@
     6.4 -# ~/.xinitrc: Executed by Slim/LXDM login manager to startx X session.
     6.5 -# You can use F1 with Slim to change your window manager or configure
     6.6 -# it permanently with your personal applications.conf file.
     6.7 -#
     6.8 -. $HOME/.config/slitaz/applications.conf
     6.9 -
    6.10 -[ "$1" ] && WINDOW_MANAGER="$1"
    6.11 -
    6.12 -case "$WINDOW_MANAGER" in
    6.13 -	openbox|lxde*|xfce4|compiz|karmen|dwm|fluxbox*)
    6.14 -		exec ${WINDOW_MANAGER%-session}-session ;;
    6.15 -	razor*)
    6.16 -		exec razor-session ;;
    6.17 -	enlightenment)
    6.18 -		exec enlightenment_start ;;
    6.19 -	*)
    6.20 -		exec $WINDOW_MANAGER ;;
    6.21 -esac
     7.1 --- a/rootfs/etc/skel/.xsession	Sun Mar 23 21:52:11 2014 +0100
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,5 +0,0 @@
     7.4 -# ~/.xsession: Start X window session manually on your system (startx).
     7.5 -#
     7.6 -Xorg &
     7.7 -#xterm &
     7.8 -exec jwm
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/rootfs/etc/xdg/openbox/autostart	Sat Mar 29 13:25:11 2014 +0100
     8.3 @@ -0,0 +1,34 @@
     8.4 +# This shell script is run before Openbox launches.
     8.5 +# Environment variables set here are passed to the Openbox session.
     8.6 +
     8.7 +# Start DBUS session.
     8.8 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
     8.9 +	dbus-launch --sh-syntax --exit-with-session &
    8.10 +fi
    8.11 +
    8.12 +# Start PCmanFM as daemon for Wallpaper and desktop icons.
    8.13 +#pcmanfm -d &
    8.14 +
    8.15 +# Start the Freedesktop panel standard menu.
    8.16 +#lxpanel --profile slitaz &
    8.17 +
    8.18 +# Packages update notification.
    8.19 +#tazpkg-notify &
    8.20 +
    8.21 +# Start Parcellite clipboard manager.
    8.22 +#parcellite &
    8.23 +
    8.24 +# Launch Xpad desktop notes utility.
    8.25 +#xpad &
    8.26 +
    8.27 +# Desktop effects composer.
    8.28 +#xcompmgr -c -r 10 &
    8.29 +
    8.30 +# Set a background image using hsetroot (depends on imlib2).
    8.31 +#hsetroot -fill /usr/share/images/slitaz-background.png &
    8.32 +
    8.33 +# Background color with xsetroot.
    8.34 +#xsetroot -solid "#222222" &
    8.35 +
    8.36 +# Wbar2 icon bar.
    8.37 +#$(sleep 3 && wbar) &
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/rootfs/etc/xdg/openbox/environment	Sat Mar 29 13:25:11 2014 +0100
     9.3 @@ -0,0 +1,22 @@
     9.4 +#
     9.5 +# Set system-wide environment variables here for Openbox
     9.6 +# User-specific variables should be placed in $HOME/.config/openbox/environment
     9.7 +#
     9.8 +
     9.9 +# Export XDG standard directories
    9.10 +export XDG_CONFIG_HOME="$HOME/.config"
    9.11 +export XDG_CACHE_HOME="$HOME/.cache"
    9.12 +export XDG_CURRENT_DESKTOP=openbox
    9.13 +
    9.14 +# /etc/xdg/menus/${XDG_MENU_PREFIX}applications.menu
    9.15 +export XDG_MENU_PREFIX=''
    9.16 +
    9.17 +
    9.18 +# Less Colors for Man Pages in SliTaz
    9.19 +export LESS_TERMCAP_mb=$(echo -en "\e[01;31m")       # begin blinking
    9.20 +export LESS_TERMCAP_md=$(echo -en "\e[01;38;5;74m")  # begin bold
    9.21 +export LESS_TERMCAP_me=$(echo -en "\e[0m")           # end mode
    9.22 +export LESS_TERMCAP_se=$(echo -en "\e[0m")           # end standout-mode
    9.23 +export LESS_TERMCAP_so=$(echo -en "\e[38;5;246m")    # begin standout-mode - info box
    9.24 +export LESS_TERMCAP_ue=$(echo -en "\e[0m")           # end underline
    9.25 +export LESS_TERMCAP_us=$(echo -en "\e[04;38;5;146m") # begin underline
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/rootfs/etc/xdg/openbox/menu.xml	Sat Mar 29 13:25:11 2014 +0100
    10.3 @@ -0,0 +1,134 @@
    10.4 +<?xml version="1.0" encoding="UTF-8"?>
    10.5 +
    10.6 +<openbox_menu xmlns="http://openbox.org/3.4/menu">
    10.7 +
    10.8 +<!-- Favorite applications -->
    10.9 +<menu id="favorites-menu" label="Favorite Applications">
   10.10 +  <item label="File Manager">
   10.11 +    <action name="Execute"><command>file-manager</command></action>
   10.12 +  </item>
   10.13 +  <item label="Terminal">
   10.14 +    <action name="Execute"><command>terminal</command></action>
   10.15 +  </item>
   10.16 +  <item label="Web Browser">
   10.17 +    <action name="Execute"><command>browser</command></action>
   10.18 +  </item>
   10.19 +  <item label="Text Editor">
   10.20 +    <action name="Execute"><command>editor</command></action>
   10.21 +  </item>
   10.22 +  <separator />
   10.23 +  <item label="Configure favorites">
   10.24 +    <action name="Execute"><command>tazbox tazapps</command></action>
   10.25 +  </item>
   10.26 +</menu>
   10.27 +
   10.28 +<!-- Desktop effects -->
   10.29 +<menu id="desktop-effects" label="Desktop Effects">
   10.30 +  <item label="Activate composite">
   10.31 +    <action name="Execute"><command>xcompmgr</command></action>
   10.32 +  </item>
   10.33 +  <item label="Activate shadows">
   10.34 +    <action name="Execute"><command>xcompmgr -c -r 10 -o 0.5</command></action>
   10.35 +  </item>
   10.36 +  <item label="Activate shadows/fade">
   10.37 +    <action name="Execute"><command>xcompmgr -c -f -r 10 -o 0.5</command></action>
   10.38 +  </item>
   10.39 +  <separator />
   10.40 +  <item label="Set opacity (actual)">
   10.41 +    <action name="Execute">
   10.42 +      <command>transset-df --actual --max 60</command>
   10.43 +    </action>
   10.44 +  </item>
   10.45 +  <item label="Set opacity (click)">
   10.46 +    <action name="Execute">
   10.47 +      <command>transset-df --click --max 60</command>
   10.48 +    </action>
   10.49 +  </item>
   10.50 +  <separator />
   10.51 +  <item label="Stop effects">
   10.52 +    <action name="Execute"><command>killall xcompmgr</command></action>
   10.53 +  </item>
   10.54 +</menu>
   10.55 +
   10.56 +<!-- SliTaz Live (TazLiTo and TazUSB) -->
   10.57 +<menu id="slitaz-live-menu" label="SliTaz Live">
   10.58 +  <item label="TazLiTo LiveCD Tool">
   10.59 +    <action name="Execute"><command>tazbox su tazlito-wiz</command></action>
   10.60 +  </item>
   10.61 +  <item label="TazUSB LiveUSB Tool">
   10.62 +    <action name="Execute"><command>tazbox su tazusb-box</command></action>
   10.63 +  </item>
   10.64 +  <separator />
   10.65 +  <item label="TazUSB Writefs (gzip)">
   10.66 +    <action name="Execute">
   10.67 +      <command>tazbox su "terminal -e tazusb writefs gzip"</command>
   10.68 +    </action>
   10.69 +  </item>
   10.70 +  <item label="TazUSB Writefs (lzma)">
   10.71 +    <action name="Execute">
   10.72 +      <command>tazbox su "terminal -e tazusb writefs lzma"</command>
   10.73 +    </action>
   10.74 +  </item>
   10.75 +  <item label="TazUSB Writefs (none)">
   10.76 +    <action name="Execute">
   10.77 +      <command>tazbox su "terminal -e tazusb writefs none"</command>
   10.78 +    </action>
   10.79 +  </item>
   10.80 +</menu>
   10.81 +
   10.82 +<!-- Openbox configuration -->
   10.83 +<menu id="openbox-menu" label="Openbox">
   10.84 +  <item label="ObConf">
   10.85 +    <action name="Execute"><command>obconf</command></action>
   10.86 +  </item>
   10.87 +  <item label="Autostart Script">
   10.88 +    <action name="Execute">
   10.89 +      <command>editor ~/.config/openbox/autostart</command>
   10.90 +    </action>
   10.91 +  </item>
   10.92 +  <item label="Openbox Menu">
   10.93 +    <action name="Execute">
   10.94 +      <command>editor ~/.config/openbox/menu.xml</command>
   10.95 +    </action>
   10.96 +  </item>
   10.97 +  <separator />
   10.98 +  <item label="Reconfigure">
   10.99 +    <action name="Reconfigure" />
  10.100 +  </item>
  10.101 +  <item label="Restart">
  10.102 +    <action name="Restart" />
  10.103 +  </item>
  10.104 +</menu>
  10.105 +
  10.106 +<menu id="root-menu" label="Openbox 3">
  10.107 +  <!-- <separator label="SliTaz Openbox" /> -->
  10.108 +  <item icon="/usr/share/icons/SliTaz/mimetypes/32/empty.png"
  10.109 +    label="Create a new file or folder">
  10.110 +    <action name="Execute"><command>tazbox new-file</command></action>
  10.111 +  </item>
  10.112 +  <item icon="/usr/share/icons/SliTaz/mimetypes/32/exec.png"
  10.113 +    label="Run application">
  10.114 +    <action name="Execute"><command>lxpanelctl run</command></action>
  10.115 +  </item>
  10.116 +  <separator />
  10.117 +  <menu icon="/usr/share/icons/SliTaz/places/32/user-bookmarks.png"
  10.118 +    id="favorites-menu" />
  10.119 +  <!-- Pipe menu to open folder using GTK bookmarks -->
  10.120 +  <menu icon="/usr/share/icons/SliTaz/places/32/folder-open.png"
  10.121 +    id="open-folder-menu" execute="/usr/lib/openbox/open-folder-menu.sh"
  10.122 +    label="Open Folder" />
  10.123 +  <menu icon="/usr/share/icons/SliTaz/apps/22/desktop-effects.png"
  10.124 +    id="desktop-effects" />
  10.125 +  <menu icon="/usr/share/pixmaps/slitaz-icon.png"
  10.126 +    id="slitaz-live-menu" />
  10.127 +  <menu icon="/usr/share/pixmaps/openbox.png"
  10.128 +    id="openbox-menu" />
  10.129 +  <menu icon="/usr/share/icons/SliTaz/places/32/desktop.png"
  10.130 +    id="client-list-menu" />
  10.131 +  <separator />
  10.132 +  <item icon="/usr/share/pixmaps/slitaz-logout.png" label="Logout">
  10.133 +    <action name="Execute"><command>tazbox logout</command></action>
  10.134 +  </item>
  10.135 +</menu>
  10.136 +
  10.137 +</openbox_menu>
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/rootfs/etc/xdg/openbox/rc.xml	Sat Mar 29 13:25:11 2014 +0100
    11.3 @@ -0,0 +1,711 @@
    11.4 +<?xml version="1.0" encoding="UTF-8"?>
    11.5 +<!-- Do not edit this file, it will be overwritten on install.
    11.6 +        Copy the file to $HOME/.config/openbox/ instead. -->
    11.7 +<openbox_config xmlns="http://openbox.org/3.4/rc">
    11.8 +  <resistance>
    11.9 +    <strength>10</strength>
   11.10 +    <screen_edge_strength>20</screen_edge_strength>
   11.11 +  </resistance>
   11.12 +  <focus>
   11.13 +    <focusNew>yes</focusNew>
   11.14 +    <!-- always try to focus new windows when they appear. other rules do
   11.15 +       apply -->
   11.16 +    <followMouse>no</followMouse>
   11.17 +    <!-- move focus to a window when you move the mouse into it -->
   11.18 +    <focusLast>yes</focusLast>
   11.19 +    <!-- focus the last used window when changing desktops, instead of the one
   11.20 +       under the mouse pointer. when followMouse is enabled -->
   11.21 +    <underMouse>no</underMouse>
   11.22 +    <!-- move focus under the mouse, even when the mouse is not moving -->
   11.23 +    <focusDelay>200</focusDelay>
   11.24 +    <!-- when followMouse is enabled, the mouse must be inside the window for
   11.25 +       this many milliseconds (1000 = 1 sec) before moving focus to it -->
   11.26 +    <raiseOnFocus>no</raiseOnFocus>
   11.27 +    <!-- when followMouse is enabled, and a window is given focus by moving the
   11.28 +       mouse into it, also raise the window -->
   11.29 +  </focus>
   11.30 +  <placement>
   11.31 +    <policy>Smart</policy>
   11.32 +    <!-- 'Smart' or 'UnderMouse' -->
   11.33 +    <center>yes</center>
   11.34 +    <!-- whether to place windows in the center of the free area found or
   11.35 +       the top left corner -->
   11.36 +    <monitor>Any</monitor>
   11.37 +    <!-- with Smart placement on a multi-monitor system, try to place new windows
   11.38 +       on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
   11.39 +       the active window is -->
   11.40 +  </placement>
   11.41 +  <theme>
   11.42 +    <name>SliTaz</name>
   11.43 +    <titleLayout>NLIMC</titleLayout>
   11.44 +    <!--
   11.45 +      available characters are NDSLIMC, each can occur at most once.
   11.46 +      N: window icon
   11.47 +      L: window label (AKA title).
   11.48 +      I: iconify
   11.49 +      M: maximize
   11.50 +      C: close
   11.51 +      S: shade (roll up/down)
   11.52 +      D: omnipresent (on all desktops).
   11.53 +  -->
   11.54 +    <keepBorder>yes</keepBorder>
   11.55 +    <animateIconify>yes</animateIconify>
   11.56 +    <font place="ActiveWindow">
   11.57 +      <name>Sans</name>
   11.58 +      <size>8</size>
   11.59 +      <!-- font size in points -->
   11.60 +      <weight>Bold</weight>
   11.61 +      <!-- 'bold' or 'normal' -->
   11.62 +      <slant>Normal</slant>
   11.63 +      <!-- 'italic' or 'normal' -->
   11.64 +    </font>
   11.65 +    <font place="InactiveWindow">
   11.66 +      <name>Sans</name>
   11.67 +      <size>8</size>
   11.68 +      <!-- font size in points -->
   11.69 +      <weight>Bold</weight>
   11.70 +      <!-- 'bold' or 'normal' -->
   11.71 +      <slant>Normal</slant>
   11.72 +      <!-- 'italic' or 'normal' -->
   11.73 +    </font>
   11.74 +    <font place="MenuHeader">
   11.75 +      <name>Sans</name>
   11.76 +      <size>10</size>
   11.77 +      <!-- font size in points -->
   11.78 +      <weight>Normal</weight>
   11.79 +      <!-- 'bold' or 'normal' -->
   11.80 +      <slant>Normal</slant>
   11.81 +      <!-- 'italic' or 'normal' -->
   11.82 +    </font>
   11.83 +    <font place="MenuItem">
   11.84 +      <name>Sans</name>
   11.85 +      <size>10</size>
   11.86 +      <!-- font size in points -->
   11.87 +      <weight>Normal</weight>
   11.88 +      <!-- 'bold' or 'normal' -->
   11.89 +      <slant>Normal</slant>
   11.90 +      <!-- 'italic' or 'normal' -->
   11.91 +    </font>
   11.92 +    <font place="OnScreenDisplay">
   11.93 +      <name>sans</name>
   11.94 +      <size>14</size>
   11.95 +      <!-- font size in points -->
   11.96 +      <weight>bold</weight>
   11.97 +      <!-- 'bold' or 'normal' -->
   11.98 +      <slant>normal</slant>
   11.99 +      <!-- 'italic' or 'normal' -->
  11.100 +    </font>
  11.101 +    <font place="ActiveOnScreenDisplay">
  11.102 +      <name>Sans</name>
  11.103 +      <size>16</size>
  11.104 +      <weight>Normal</weight>
  11.105 +      <slant>Normal</slant>
  11.106 +    </font>
  11.107 +    <font place="InactiveOnScreenDisplay">
  11.108 +      <name>Sans</name>
  11.109 +      <size>8</size>
  11.110 +      <weight/>
  11.111 +      <slant/>
  11.112 +    </font>
  11.113 +  </theme>
  11.114 +  <desktops>
  11.115 +    <!-- this stuff is only used at startup, pagers allow you to change them
  11.116 +       during a session
  11.117 +
  11.118 +       these are default values to use when other ones are not already set
  11.119 +       by other applications, or saved in your session
  11.120 +
  11.121 +       use obconf if you want to change these without having to log out
  11.122 +       and back in -->
  11.123 +    <number>2</number>
  11.124 +    <firstdesk>1</firstdesk>
  11.125 +    <names>
  11.126 +      <!-- set names up here if you want to, like this:
  11.127 +    <name>desktop 1</name>
  11.128 +    <name>desktop 2</name>
  11.129 +    -->
  11.130 +    </names>
  11.131 +    <popupTime>875</popupTime>
  11.132 +    <!-- The number of milliseconds to show the popup for when switching
  11.133 +       desktops.  Set this to 0 to disable the popup. -->
  11.134 +  </desktops>
  11.135 +  <resize>
  11.136 +    <drawContents>yes</drawContents>
  11.137 +    <popupShow>Nonpixel</popupShow>
  11.138 +    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
  11.139 +    <popupPosition>Center</popupPosition>
  11.140 +    <!-- 'Center', 'Top', or 'Fixed' -->
  11.141 +    <popupFixedPosition>
  11.142 +      <!-- these are used if popupPosition is set to 'Fixed' -->
  11.143 +      <x>10</x>
  11.144 +      <!-- positive number for distance from left edge, negative number for
  11.145 +         distance from right edge, or 'Center' -->
  11.146 +      <y>10</y>
  11.147 +      <!-- positive number for distance from top edge, negative number for
  11.148 +         distance from bottom edge, or 'Center' -->
  11.149 +    </popupFixedPosition>
  11.150 +  </resize>
  11.151 +  <!-- You can reserve a portion of your screen where windows will not cover when
  11.152 +     they are maximized, or when they are initially placed.
  11.153 +     Many programs reserve space automatically, but you can use this in other
  11.154 +     cases. -->
  11.155 +  <margins>
  11.156 +    <top>0</top>
  11.157 +    <bottom>0</bottom>
  11.158 +    <left>0</left>
  11.159 +    <right>0</right>
  11.160 +  </margins>
  11.161 +  <dock>
  11.162 +    <position>TopLeft</position>
  11.163 +    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
  11.164 +    <floatingX>0</floatingX>
  11.165 +    <floatingY>0</floatingY>
  11.166 +    <noStrut>no</noStrut>
  11.167 +    <stacking>Above</stacking>
  11.168 +    <!-- 'Above', 'Normal', or 'Below' -->
  11.169 +    <direction>Vertical</direction>
  11.170 +    <!-- 'Vertical' or 'Horizontal' -->
  11.171 +    <autoHide>no</autoHide>
  11.172 +    <hideDelay>300</hideDelay>
  11.173 +    <!-- in milliseconds (1000 = 1 second) -->
  11.174 +    <showDelay>300</showDelay>
  11.175 +    <!-- in milliseconds (1000 = 1 second) -->
  11.176 +    <moveButton>Middle</moveButton>
  11.177 +    <!-- 'Left', 'Middle', 'Right' -->
  11.178 +  </dock>
  11.179 +  <keyboard>
  11.180 +    <chainQuitKey>C-g</chainQuitKey>
  11.181 +    <!-- Keybindings for desktop switching -->
  11.182 +    <keybind key="C-A-Left">
  11.183 +      <action name="DesktopLeft">
  11.184 +        <dialog>no</dialog>
  11.185 +        <wrap>no</wrap>
  11.186 +      </action>
  11.187 +    </keybind>
  11.188 +    <keybind key="C-A-Right">
  11.189 +      <action name="DesktopRight">
  11.190 +        <dialog>no</dialog>
  11.191 +        <wrap>no</wrap>
  11.192 +      </action>
  11.193 +    </keybind>
  11.194 +    <keybind key="C-A-Up">
  11.195 +      <action name="DesktopUp">
  11.196 +        <dialog>no</dialog>
  11.197 +        <wrap>no</wrap>
  11.198 +      </action>
  11.199 +    </keybind>
  11.200 +    <keybind key="C-A-Down">
  11.201 +      <action name="DesktopDown">
  11.202 +        <dialog>no</dialog>
  11.203 +        <wrap>no</wrap>
  11.204 +      </action>
  11.205 +    </keybind>
  11.206 +    <keybind key="S-A-Left">
  11.207 +      <action name="SendToDesktopLeft">
  11.208 +        <dialog>no</dialog>
  11.209 +        <wrap>no</wrap>
  11.210 +      </action>
  11.211 +    </keybind>
  11.212 +    <keybind key="S-A-Right">
  11.213 +      <action name="SendToDesktopRight">
  11.214 +        <dialog>no</dialog>
  11.215 +        <wrap>no</wrap>
  11.216 +      </action>
  11.217 +    </keybind>
  11.218 +    <keybind key="S-A-Up">
  11.219 +      <action name="SendToDesktopUp">
  11.220 +        <dialog>no</dialog>
  11.221 +        <wrap>no</wrap>
  11.222 +      </action>
  11.223 +    </keybind>
  11.224 +    <keybind key="S-A-Down">
  11.225 +      <action name="SendToDesktopDown">
  11.226 +        <dialog>no</dialog>
  11.227 +        <wrap>no</wrap>
  11.228 +      </action>
  11.229 +    </keybind>
  11.230 +    <keybind key="W-F1">
  11.231 +      <action name="Desktop">
  11.232 +        <desktop>1</desktop>
  11.233 +      </action>
  11.234 +    </keybind>
  11.235 +    <keybind key="W-F2">
  11.236 +      <action name="Desktop">
  11.237 +        <desktop>2</desktop>
  11.238 +      </action>
  11.239 +    </keybind>
  11.240 +    <keybind key="W-F3">
  11.241 +      <action name="Desktop">
  11.242 +        <desktop>3</desktop>
  11.243 +      </action>
  11.244 +    </keybind>
  11.245 +    <keybind key="W-F4">
  11.246 +      <action name="Desktop">
  11.247 +        <desktop>4</desktop>
  11.248 +      </action>
  11.249 +    </keybind>
  11.250 +    <keybind key="W-d">
  11.251 +      <action name="ToggleShowDesktop"/>
  11.252 +    </keybind>
  11.253 +    <!-- Keybindings for windows -->
  11.254 +    <keybind key="A-F4">
  11.255 +      <action name="Close"/>
  11.256 +    </keybind>
  11.257 +    <keybind key="A-Escape">
  11.258 +      <action name="Lower"/>
  11.259 +      <action name="FocusToBottom"/>
  11.260 +      <action name="Unfocus"/>
  11.261 +    </keybind>
  11.262 +    <keybind key="A-space">
  11.263 +      <action name="ShowMenu">
  11.264 +        <menu>client-menu</menu>
  11.265 +      </action>
  11.266 +    </keybind>
  11.267 +    <!-- Keybindings for window switching -->
  11.268 +    <keybind key="A-Tab">
  11.269 +      <action name="NextWindow"/>
  11.270 +    </keybind>
  11.271 +    <keybind key="A-S-Tab">
  11.272 +      <action name="PreviousWindow"/>
  11.273 +    </keybind>
  11.274 +    <keybind key="C-A-Tab">
  11.275 +      <action name="NextWindow">
  11.276 +        <panels>yes</panels>
  11.277 +        <desktop>yes</desktop>
  11.278 +      </action>
  11.279 +    </keybind>
  11.280 +    <!-- Keybindings for running applications -->
  11.281 +    <keybind key="W-e">
  11.282 +      <action name="Execute">
  11.283 +        <startupnotify>
  11.284 +          <enabled>true</enabled>
  11.285 +          <name>App Launcher</name>
  11.286 +        </startupnotify>
  11.287 +        <command>lxpanelctl run</command>
  11.288 +      </action>
  11.289 +    </keybind>
  11.290 +  </keyboard>
  11.291 +  <mouse>
  11.292 +    <dragThreshold>8</dragThreshold>
  11.293 +    <!-- number of pixels the mouse must move before a drag begins -->
  11.294 +    <doubleClickTime>200</doubleClickTime>
  11.295 +    <!-- in milliseconds (1000 = 1 second) -->
  11.296 +    <screenEdgeWarpTime>400</screenEdgeWarpTime>
  11.297 +    <!-- Time before changing desktops when the pointer touches the edge of the
  11.298 +       screen while moving a window, in milliseconds (1000 = 1 second).
  11.299 +       Set this to 0 to disable warping -->
  11.300 +    <context name="Frame">
  11.301 +      <mousebind button="A-Left" action="Press">
  11.302 +        <action name="Focus"/>
  11.303 +        <action name="Raise"/>
  11.304 +      </mousebind>
  11.305 +      <mousebind button="A-Left" action="Click">
  11.306 +        <action name="Unshade"/>
  11.307 +      </mousebind>
  11.308 +      <mousebind button="A-Left" action="Drag">
  11.309 +        <action name="Move"/>
  11.310 +      </mousebind>
  11.311 +      <mousebind button="A-Right" action="Press">
  11.312 +        <action name="Focus"/>
  11.313 +        <action name="Raise"/>
  11.314 +        <action name="Unshade"/>
  11.315 +      </mousebind>
  11.316 +      <mousebind button="A-Right" action="Drag">
  11.317 +        <action name="Resize"/>
  11.318 +      </mousebind>
  11.319 +      <mousebind button="A-Middle" action="Press">
  11.320 +        <action name="Lower"/>
  11.321 +        <action name="FocusToBottom"/>
  11.322 +        <action name="Unfocus"/>
  11.323 +      </mousebind>
  11.324 +      <mousebind button="A-Up" action="Click">
  11.325 +        <action name="DesktopPrevious"/>
  11.326 +      </mousebind>
  11.327 +      <mousebind button="A-Down" action="Click">
  11.328 +        <action name="DesktopNext"/>
  11.329 +      </mousebind>
  11.330 +      <mousebind button="C-A-Up" action="Click">
  11.331 +        <action name="DesktopPrevious"/>
  11.332 +      </mousebind>
  11.333 +      <mousebind button="C-A-Down" action="Click">
  11.334 +        <action name="DesktopNext"/>
  11.335 +      </mousebind>
  11.336 +      <mousebind button="A-S-Up" action="Click">
  11.337 +        <action name="SendToDesktopPrevious"/>
  11.338 +      </mousebind>
  11.339 +      <mousebind button="A-S-Down" action="Click">
  11.340 +        <action name="SendToDesktopNext"/>
  11.341 +      </mousebind>
  11.342 +    </context>
  11.343 +    <context name="Titlebar">
  11.344 +      <mousebind button="Left" action="Press">
  11.345 +        <action name="Focus"/>
  11.346 +        <action name="Raise"/>
  11.347 +      </mousebind>
  11.348 +      <mousebind button="Left" action="Drag">
  11.349 +        <action name="Move"/>
  11.350 +      </mousebind>
  11.351 +      <mousebind button="Left" action="DoubleClick">
  11.352 +        <action name="ToggleMaximizeFull"/>
  11.353 +      </mousebind>
  11.354 +      <mousebind button="Middle" action="Press">
  11.355 +        <action name="Lower"/>
  11.356 +        <action name="FocusToBottom"/>
  11.357 +        <action name="Unfocus"/>
  11.358 +      </mousebind>
  11.359 +      <mousebind button="Up" action="Click">
  11.360 +        <action name="Shade"/>
  11.361 +        <action name="FocusToBottom"/>
  11.362 +        <action name="Unfocus"/>
  11.363 +        <action name="Lower"/>
  11.364 +      </mousebind>
  11.365 +      <mousebind button="Down" action="Click">
  11.366 +        <action name="Unshade"/>
  11.367 +        <action name="Raise"/>
  11.368 +      </mousebind>
  11.369 +      <mousebind button="Right" action="Press">
  11.370 +        <action name="Focus"/>
  11.371 +        <action name="Raise"/>
  11.372 +        <action name="ShowMenu">
  11.373 +          <menu>client-menu</menu>
  11.374 +        </action>
  11.375 +      </mousebind>
  11.376 +    </context>
  11.377 +    <context name="Top">
  11.378 +      <mousebind button="Left" action="Press">
  11.379 +        <action name="Focus"/>
  11.380 +        <action name="Raise"/>
  11.381 +        <action name="Unshade"/>
  11.382 +      </mousebind>
  11.383 +      <mousebind button="Left" action="Drag">
  11.384 +        <action name="Resize">
  11.385 +          <edge>top</edge>
  11.386 +        </action>
  11.387 +      </mousebind>
  11.388 +    </context>
  11.389 +    <context name="Left">
  11.390 +      <mousebind button="Left" action="Press">
  11.391 +        <action name="Focus"/>
  11.392 +        <action name="Raise"/>
  11.393 +      </mousebind>
  11.394 +      <mousebind button="Left" action="Drag">
  11.395 +        <action name="Resize">
  11.396 +          <edge>left</edge>
  11.397 +        </action>
  11.398 +      </mousebind>
  11.399 +    </context>
  11.400 +    <context name="Right">
  11.401 +      <mousebind button="Left" action="Press">
  11.402 +        <action name="Focus"/>
  11.403 +        <action name="Raise"/>
  11.404 +      </mousebind>
  11.405 +      <mousebind button="Left" action="Drag">
  11.406 +        <action name="Resize">
  11.407 +          <edge>right</edge>
  11.408 +        </action>
  11.409 +      </mousebind>
  11.410 +    </context>
  11.411 +    <context name="Bottom">
  11.412 +      <mousebind button="Left" action="Press">
  11.413 +        <action name="Focus"/>
  11.414 +        <action name="Raise"/>
  11.415 +      </mousebind>
  11.416 +      <mousebind button="Left" action="Drag">
  11.417 +        <action name="Resize">
  11.418 +          <edge>bottom</edge>
  11.419 +        </action>
  11.420 +      </mousebind>
  11.421 +      <mousebind button="Middle" action="Press">
  11.422 +        <action name="Lower"/>
  11.423 +        <action name="FocusToBottom"/>
  11.424 +        <action name="Unfocus"/>
  11.425 +      </mousebind>
  11.426 +      <mousebind button="Right" action="Press">
  11.427 +        <action name="Focus"/>
  11.428 +        <action name="Raise"/>
  11.429 +        <action name="ShowMenu">
  11.430 +          <menu>client-menu</menu>
  11.431 +        </action>
  11.432 +      </mousebind>
  11.433 +    </context>
  11.434 +    <context name="BLCorner">
  11.435 +      <mousebind button="Left" action="Press">
  11.436 +        <action name="Focus"/>
  11.437 +        <action name="Raise"/>
  11.438 +      </mousebind>
  11.439 +      <mousebind button="Left" action="Drag">
  11.440 +        <action name="Resize"/>
  11.441 +      </mousebind>
  11.442 +    </context>
  11.443 +    <context name="BRCorner">
  11.444 +      <mousebind button="Left" action="Press">
  11.445 +        <action name="Focus"/>
  11.446 +        <action name="Raise"/>
  11.447 +      </mousebind>
  11.448 +      <mousebind button="Left" action="Drag">
  11.449 +        <action name="Resize"/>
  11.450 +      </mousebind>
  11.451 +    </context>
  11.452 +    <context name="TLCorner">
  11.453 +      <mousebind button="Left" action="Press">
  11.454 +        <action name="Focus"/>
  11.455 +        <action name="Raise"/>
  11.456 +        <action name="Unshade"/>
  11.457 +      </mousebind>
  11.458 +      <mousebind button="Left" action="Drag">
  11.459 +        <action name="Resize"/>
  11.460 +      </mousebind>
  11.461 +    </context>
  11.462 +    <context name="TRCorner">
  11.463 +      <mousebind button="Left" action="Press">
  11.464 +        <action name="Focus"/>
  11.465 +        <action name="Raise"/>
  11.466 +        <action name="Unshade"/>
  11.467 +      </mousebind>
  11.468 +      <mousebind button="Left" action="Drag">
  11.469 +        <action name="Resize"/>
  11.470 +      </mousebind>
  11.471 +    </context>
  11.472 +    <context name="Client">
  11.473 +      <mousebind button="Left" action="Press">
  11.474 +        <action name="Focus"/>
  11.475 +        <action name="Raise"/>
  11.476 +      </mousebind>
  11.477 +      <mousebind button="Middle" action="Press">
  11.478 +        <action name="Focus"/>
  11.479 +        <action name="Raise"/>
  11.480 +      </mousebind>
  11.481 +      <mousebind button="Right" action="Press">
  11.482 +        <action name="Focus"/>
  11.483 +        <action name="Raise"/>
  11.484 +      </mousebind>
  11.485 +    </context>
  11.486 +    <context name="Icon">
  11.487 +      <mousebind button="Left" action="Press">
  11.488 +        <action name="Focus"/>
  11.489 +        <action name="Raise"/>
  11.490 +        <action name="Unshade"/>
  11.491 +        <action name="ShowMenu">
  11.492 +          <menu>client-menu</menu>
  11.493 +        </action>
  11.494 +      </mousebind>
  11.495 +      <mousebind button="Right" action="Press">
  11.496 +        <action name="Focus"/>
  11.497 +        <action name="Raise"/>
  11.498 +        <action name="ShowMenu">
  11.499 +          <menu>client-menu</menu>
  11.500 +        </action>
  11.501 +      </mousebind>
  11.502 +    </context>
  11.503 +    <context name="AllDesktops">
  11.504 +      <mousebind button="Left" action="Press">
  11.505 +        <action name="Focus"/>
  11.506 +        <action name="Raise"/>
  11.507 +        <action name="Unshade"/>
  11.508 +      </mousebind>
  11.509 +      <mousebind button="Left" action="Click">
  11.510 +        <action name="ToggleOmnipresent"/>
  11.511 +      </mousebind>
  11.512 +    </context>
  11.513 +    <context name="Shade">
  11.514 +      <mousebind button="Left" action="Press">
  11.515 +        <action name="Focus"/>
  11.516 +        <action name="Raise"/>
  11.517 +      </mousebind>
  11.518 +      <mousebind button="Left" action="Click">
  11.519 +        <action name="ToggleShade"/>
  11.520 +      </mousebind>
  11.521 +    </context>
  11.522 +    <context name="Iconify">
  11.523 +      <mousebind button="Left" action="Press">
  11.524 +        <action name="Focus"/>
  11.525 +        <action name="Raise"/>
  11.526 +      </mousebind>
  11.527 +      <mousebind button="Left" action="Click">
  11.528 +        <action name="Iconify"/>
  11.529 +      </mousebind>
  11.530 +    </context>
  11.531 +    <context name="Maximize">
  11.532 +      <mousebind button="Left" action="Press">
  11.533 +        <action name="Focus"/>
  11.534 +        <action name="Raise"/>
  11.535 +        <action name="Unshade"/>
  11.536 +      </mousebind>
  11.537 +      <mousebind button="Middle" action="Press">
  11.538 +        <action name="Focus"/>
  11.539 +        <action name="Raise"/>
  11.540 +        <action name="Unshade"/>
  11.541 +      </mousebind>
  11.542 +      <mousebind button="Right" action="Press">
  11.543 +        <action name="Focus"/>
  11.544 +        <action name="Raise"/>
  11.545 +        <action name="Unshade"/>
  11.546 +      </mousebind>
  11.547 +      <mousebind button="Left" action="Click">
  11.548 +        <action name="ToggleMaximizeFull"/>
  11.549 +      </mousebind>
  11.550 +      <mousebind button="Middle" action="Click">
  11.551 +        <action name="ToggleMaximizeVert"/>
  11.552 +      </mousebind>
  11.553 +      <mousebind button="Right" action="Click">
  11.554 +        <action name="ToggleMaximizeHorz"/>
  11.555 +      </mousebind>
  11.556 +    </context>
  11.557 +    <context name="Close">
  11.558 +      <mousebind button="Left" action="Press">
  11.559 +        <action name="Focus"/>
  11.560 +        <action name="Raise"/>
  11.561 +        <action name="Unshade"/>
  11.562 +      </mousebind>
  11.563 +      <mousebind button="Left" action="Click">
  11.564 +        <action name="Close"/>
  11.565 +      </mousebind>
  11.566 +    </context>
  11.567 +    <context name="Desktop">
  11.568 +      <mousebind button="Up" action="Click">
  11.569 +        <action name="DesktopPrevious"/>
  11.570 +      </mousebind>
  11.571 +      <mousebind button="Down" action="Click">
  11.572 +        <action name="DesktopNext"/>
  11.573 +      </mousebind>
  11.574 +      <mousebind button="A-Up" action="Click">
  11.575 +        <action name="DesktopPrevious"/>
  11.576 +      </mousebind>
  11.577 +      <mousebind button="A-Down" action="Click">
  11.578 +        <action name="DesktopNext"/>
  11.579 +      </mousebind>
  11.580 +      <mousebind button="C-A-Up" action="Click">
  11.581 +        <action name="DesktopPrevious"/>
  11.582 +      </mousebind>
  11.583 +      <mousebind button="C-A-Down" action="Click">
  11.584 +        <action name="DesktopNext"/>
  11.585 +      </mousebind>
  11.586 +      <mousebind button="Left" action="Press">
  11.587 +        <action name="Focus"/>
  11.588 +        <action name="Raise"/>
  11.589 +      </mousebind>
  11.590 +      <mousebind button="Right" action="Press">
  11.591 +        <action name="Focus"/>
  11.592 +        <action name="Raise"/>
  11.593 +      </mousebind>
  11.594 +    </context>
  11.595 +    <context name="Root">
  11.596 +      <!-- Menus -->
  11.597 +      <mousebind button="Middle" action="Press">
  11.598 +        <action name="ShowMenu">
  11.599 +          <menu>client-list-combined-menu</menu>
  11.600 +        </action>
  11.601 +      </mousebind>
  11.602 +      <mousebind button="Right" action="Press">
  11.603 +        <action name="ShowMenu">
  11.604 +          <menu>root-menu</menu>
  11.605 +        </action>
  11.606 +      </mousebind>
  11.607 +    </context>
  11.608 +    <context name="MoveResize">
  11.609 +      <mousebind button="Up" action="Click">
  11.610 +        <action name="DesktopPrevious"/>
  11.611 +      </mousebind>
  11.612 +      <mousebind button="Down" action="Click">
  11.613 +        <action name="DesktopNext"/>
  11.614 +      </mousebind>
  11.615 +      <mousebind button="A-Up" action="Click">
  11.616 +        <action name="DesktopPrevious"/>
  11.617 +      </mousebind>
  11.618 +      <mousebind button="A-Down" action="Click">
  11.619 +        <action name="DesktopNext"/>
  11.620 +      </mousebind>
  11.621 +    </context>
  11.622 +  </mouse>
  11.623 +  <menu>
  11.624 +    <!-- You can specify more than one menu file in here and they are all loaded,
  11.625 +       just don't make menu ids clash or, well, it'll be kind of pointless -->
  11.626 +    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
  11.627 +    <file>menu.xml</file>
  11.628 +    <hideDelay>200</hideDelay>
  11.629 +    <!-- if a press-release lasts longer than this setting (in milliseconds), the
  11.630 +       menu is hidden again -->
  11.631 +    <middle>no</middle>
  11.632 +    <!-- center submenus vertically about the parent entry -->
  11.633 +    <submenuShowDelay>100</submenuShowDelay>
  11.634 +    <!-- this one is easy, time to delay before showing a submenu after hovering
  11.635 +       over the parent entry -->
  11.636 +    <applicationIcons>yes</applicationIcons>
  11.637 +    <!-- controls if icons appear in the client-list-(combined-)menu -->
  11.638 +    <manageDesktops>yes</manageDesktops>
  11.639 +    <!-- show the manage desktops section in the client-list-(combined-)menu -->
  11.640 +  </menu>
  11.641 +  <applications>
  11.642 +    <!--
  11.643 +  # this is an example with comments through out. use these to make your
  11.644 +  # own rules, but without the comments of course.
  11.645 +
  11.646 +  <application name="first element of window's WM_CLASS property (see xprop)"
  11.647 +              class="second element of window's WM_CLASS property (see xprop)"
  11.648 +               role="the window's WM_WINDOW_ROLE property (see xprop)">
  11.649 +  # the name or the class can be set, or both. this is used to match
  11.650 +  # windows when they appear. role can optionally be set as well, to
  11.651 +  # further restrict your matches.
  11.652 +
  11.653 +  # the name, class, and role use simple wildcard matching such as those
  11.654 +  # used by a shell. you can use * to match any characters and ? to match
  11.655 +  # any single character.
  11.656 +
  11.657 +  # when multiple rules match a window, they will all be applied, in the
  11.658 +  # order that they appear in this list
  11.659 +
  11.660 +
  11.661 +    # each element can be left out or set to 'default' to specify to not 
  11.662 +    # change that attribute of the window
  11.663 +
  11.664 +    <decor>yes</decor>
  11.665 +    # enable or disable window decorations
  11.666 +
  11.667 +    <shade>no</shade>
  11.668 +    # make the window shaded when it appears, or not
  11.669 +
  11.670 +    <position>
  11.671 +      # the position is only used if both an x and y coordinate are provided
  11.672 +      # (and not set to 'default')
  11.673 +      <x>center</x>
  11.674 +      # a number like 50, or 'center' to center on screen. use a negative number
  11.675 +      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
  11.676 +      # right edge (or bottom).
  11.677 +      <y>200</y>
  11.678 +      <monitor>1</monitor>
  11.679 +      # specifies the monitor in a xinerama setup.
  11.680 +      # 1 is the first head, or 'mouse' for wherever the mouse is
  11.681 +    </position>
  11.682 +
  11.683 +    <focus>yes</focus>
  11.684 +    # if the window should try be given focus when it appears. if this is set
  11.685 +    # to yes it doesn't guarantee the window will be given focus. some
  11.686 +    # restrictions may apply, but Openbox will try to
  11.687 +
  11.688 +    <desktop>1</desktop>
  11.689 +    # 1 is the first desktop, 'all' for all desktops
  11.690 +
  11.691 +    <layer>normal</layer>
  11.692 +    # 'above', 'normal', or 'below'
  11.693 +
  11.694 +    <iconic>no</iconic>
  11.695 +    # make the window iconified when it appears, or not
  11.696 +
  11.697 +    <skip_pager>no</skip_pager>
  11.698 +    # asks to not be shown in pagers
  11.699 +
  11.700 +    <skip_taskbar>no</skip_taskbar>
  11.701 +    # asks to not be shown in taskbars. window cycling actions will also
  11.702 +    # skip past such windows
  11.703 +
  11.704 +    <fullscreen>yes</fullscreen>
  11.705 +    # make the window in fullscreen mode when it appears
  11.706 +
  11.707 +    <maximized>true</maximized>
  11.708 +    # 'Horizontal', 'Vertical' or boolean (yes/no)
  11.709 +  </application>
  11.710 +
  11.711 +  # end of the example
  11.712 +-->
  11.713 +  </applications>
  11.714 +</openbox_config>
    12.1 --- a/rootfs/root/.Xdefaults	Sun Mar 23 21:52:11 2014 +0100
    12.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.3 @@ -1,23 +0,0 @@
    12.4 -!~/.Xdefault: Control the behavior of x-clients.
    12.5 -!
    12.6 -
    12.7 -! Xcursor theme (~/.icons).
    12.8 -!
    12.9 -Xcursor.theme:		slitaz-polar
   12.10 -
   12.11 -! XTerm settings.
   12.12 -!
   12.13 -xterm*background:	#000000
   12.14 -xterm*foreground:	#ffffff
   12.15 -xterm*cursorColor:	#d66018
   12.16 -xterm*scrollBar:	off
   12.17 -xterm*faceName:		DejaVu Sans Mono
   12.18 -xterm*faceNameDoublesize:WenQuanYi WenQuanYi Micro Hei Mono-12
   12.19 -xterm*faceSize:		12
   12.20 -xterm*utf8:		    2
   12.21 -xterm*eightBitInput:	true
   12.22 -
   12.23 -! Xload settings.
   12.24 -!
   12.25 -!xload*background:	black
   12.26 -!xload*foreground:	lightblue
    13.1 --- a/rootfs/usr/bin/slitaz-config	Sun Mar 23 21:52:11 2014 +0100
    13.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.3 @@ -1,88 +0,0 @@
    13.4 -#!/bin/sh
    13.5 -#
    13.6 -# SliTaz Config - A tool with all SliTaz Ncurses configs in one place for
    13.7 -# text mode systems (server, ARM devices)
    13.8 -#
    13.9 -# Copyright (C) 2014 SliTaz ARM - BSD License
   13.10 -# Author: Christophe Lincoln <pankso@slitaz.org>
   13.11 -#
   13.12 -. /lib/libtaz.sh
   13.13 -check_root
   13.14 -
   13.15 -title="{ SliTaz Config }"
   13.16 -tmpdir="/tmp/$(basename $0)"
   13.17 -tmp="$tmpdir/$$"
   13.18 -height="20"
   13.19 -width="72"
   13.20 -
   13.21 -# Use a tmp directory
   13.22 -mkdir -p ${tmpdir}
   13.23 -
   13.24 -#
   13.25 -# GUI Functions
   13.26 -#
   13.27 -
   13.28 -# Set root passwd
   13.29 -root_passwd() {
   13.30 -	dialog \
   13.31 -		--inputbox "Enter new root password:" \
   13.32 -		10 ${width} 2>${tmp}
   13.33 -    passwd=$(cat $tmp)
   13.34 -    [ "$passwd" == "" ] && return 0
   13.35 -    echo "root:$passwd" | chpasswd --md5
   13.36 -}
   13.37 -
   13.38 -set_date() {
   13.39 -	clear && newline
   13.40 -	echo -n "Old date:"; date
   13.41 -	rdate -s 203.129.68.14 2>/dev/null
   13.42 -	echo -n "New date:"; date
   13.43 -	sleep 4
   13.44 -}
   13.45 -
   13.46 -# Main Dialog menu
   13.47 -main_box() {
   13.48 -	dialog \
   13.49 -		--clear --title "$title" \
   13.50 -		--ok-label "Exec" --cancel-label "Quit" \
   13.51 -		--menu "" ${height} ${width} 14 \
   13.52 -"keyboard"       "$(gettext 'System keyboard setting')" \
   13.53 -"locale"         "$(gettext 'System language setting')" \
   13.54 -"root-passwd"    "$(gettext 'Change root password')" \
   13.55 -"set-date"       "$(gettext 'Set system date from the web')" \
   13.56 -"quit"           "$(gettext 'Exit from SliTaz Config')" 2>${tmp}
   13.57 -	
   13.58 -	# Handle options
   13.59 -	opt=${?}
   13.60 -	case "$opt" in
   13.61 -		1|255) rm -rf ${tmpdir} && exit 0 ;;
   13.62 -	esac
   13.63 -	
   13.64 -	# Handle actions
   13.65 -	action=$(cat $tmp)
   13.66 -	case "$action" in
   13.67 -		keyboard) tazkeymap ;;
   13.68 -		locale) tazlocale ;;
   13.69 -		root-passwd) root_passwd ;;
   13.70 -		set-date) set_date ;;
   13.71 -		quit) rm -rf ${tmpdir} && exit 0 ;;
   13.72 -	esac
   13.73 -}
   13.74 -
   13.75 -#
   13.76 -# Handle commands
   13.77 -#
   13.78 -
   13.79 -case "$1" in
   13.80 -	*_*) 
   13.81 -		# Execute functions 
   13.82 -		$@ ;;
   13.83 -	*)
   13.84 -		while true; do
   13.85 -			main_box
   13.86 -		done ;;
   13.87 -esac
   13.88 -
   13.89 -# Clean exit
   13.90 -rm -rf ${tmpdir}
   13.91 -exit 0
    14.1 --- a/rootfs/usr/bin/tazx	Sun Mar 23 21:52:11 2014 +0100
    14.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.3 @@ -1,272 +0,0 @@
    14.4 -#!/bin/sh
    14.5 -#
    14.6 -# Tazx - Ncurses X configuration for SliTaz GNU/Linux using Dialog boxes.
    14.7 -# This tinyutil is part of slitaz-tools. Tazx can configure Xorg with 
    14.8 -# several Window Managers. The GTK interface to configure X is in tazbox.
    14.9 -#
   14.10 -# (c) 2011-2014 SliTaz GNU/Linux - GNU GPL v3.
   14.11 -# Authors: Christophe Lincoln <pankso@slitaz.org>
   14.12 -#          Pascal Bellard <pascal.bellard@slitaz.org>
   14.13 -#
   14.14 -
   14.15 -# 20140317: most xsession, xinitrc are obsolete, provided system files
   14.16 -# are in /etc/skel and WM config files should no longer be copied by
   14.17 -# tazx to user home. If some configs are needed by WMs they should
   14.18 -# be set by a /usr/bin/wmname-session script I guess. - Pankso
   14.19 -
   14.20 -. /lib/libtaz.sh
   14.21 -. /etc/slitaz/slitaz.conf
   14.22 -. /etc/slitaz/applications.conf
   14.23 -
   14.24 -installed="$PKGS_DB/installed"
   14.25 -
   14.26 -export TEXTDOMAIN='slitaz-tools' #i18n
   14.27 -: ${DIALOG=dialog}
   14.28 -
   14.29 -# Default value.
   14.30 -WM=${WINDOW_MANAGER}
   14.31 -
   14.32 -# Default user for config files in Live mode, id is 1000 since it is
   14.33 -# created by /etc/init.d/bootopts.sh.
   14.34 -USER=$(cat /etc/passwd | grep 1000 | cut -d ":" -f 1)
   14.35 -
   14.36 -#
   14.37 -# Functions
   14.38 -#
   14.39 -
   14.40 -# Save chunk of xorg.conf into specified file
   14.41 -save_chunk() {
   14.42 -	sed -e '/Section "'${1#*-}'"/,/EndSection/!d' \
   14.43 -		-e "s/EndSection/EndSection\n/" $xorg_template > \
   14.44 -		$xorg_config/$1.conf
   14.45 -}
   14.46 -
   14.47 -# Populate xorg.conf.d.
   14.48 -xorg_conf_d() {
   14.49 -	# Define the xorg.conf.d (can be /etc/X11/xorg.conf.d or /usr/share/X11/xorg.conf.d)
   14.50 -	xorg_config=/etc/X11/xorg.conf.d
   14.51 -
   14.52 -	# Define the xorg.conf.new place.
   14.53 -	xorg_template=/root/xorg.conf.new
   14.54 -
   14.55 -	# Obtain a default configuration file from Xorg.
   14.56 -	Xorg -configure :2
   14.57 -
   14.58 -	# Backup existing config.
   14.59 -	tar -cf $xorg_config/../Previous_xorg.conf.d.tar $xorg_config/ &> /dev/null 
   14.60 -
   14.61 -	# Put the different sections in separate files in the config directory.
   14.62 -	save_chunk 10-ServerLayout
   14.63 -	sed -i '/Core/d' $xorg_config/10-ServerLayout.conf
   14.64 -	save_chunk 20-Files
   14.65 -	save_chunk 30-Module
   14.66 -	save_chunk 50-Monitor
   14.67 -	save_chunk 60-Device
   14.68 -	save_chunk 70-Screen
   14.69 -
   14.70 -	# Remove the template.
   14.71 -	rm $xorg_template
   14.72 -
   14.73 -	# Configure the keyboard with the right keymap.
   14.74 -	keymap=$(cat /etc/keymap.conf)
   14.75 -	keyboard_config=$xorg_config/40-Keyboard.conf
   14.76 -	variant=""
   14.77 -	# this XkbOption moved from 40-evdev.conf (xorg-xf86-input-evdev)
   14.78 -	options="terminate:ctrl_alt_bksp"
   14.79 -	case $keymap in
   14.80 -		fr_CH-latin1)
   14.81 -			# Swiss FrenCH
   14.82 -			layout="ch"; variant="fr" ;;
   14.83 -		uk)
   14.84 -			# English UK
   14.85 -			layout="gb" ;;
   14.86 -		ru)
   14.87 -			# Russian
   14.88 -			layout="us,ru"
   14.89 -			options="grp:ctrl_shift_toggle, grp_led:scroll, $options" ;;
   14.90 -		ua)
   14.91 -			# Ukrainian
   14.92 -			layout="us,ua,ru"
   14.93 -			options="grp:ctrl_shift_toggle, $options" ;;
   14.94 -		slovene)
   14.95 -			# Slovenian
   14.96 -			layout="si"; options="grp:alt_shift_toggle, $options" ;;
   14.97 -		us-acentos)
   14.98 -			layout="us"; variant="intl" ;;
   14.99 -		*)
  14.100 -			# Use clean /etc/keymap.conf value.
  14.101 -			keymap=${keymap%-latin1}
  14.102 -			keymap=${keymap%-lat2}
  14.103 -			keymap=${keymap%-lat6}
  14.104 -			layout=${keymap%-abnt2}
  14.105 -	esac
  14.106 -
  14.107 -	cat > $keyboard_config << EOC
  14.108 -Section "InputClass"
  14.109 -	Identifier "Keyboard Defaults"
  14.110 -	MatchIsKeyboard "yes"
  14.111 -	Option "XkbLayout" "$layout"
  14.112 -	Option "XkbVariant" "$variant"
  14.113 -	Option "XkbOptions" "$options"
  14.114 -EndSection
  14.115 -EOC
  14.116 -	[ x$variant == x ] && sed -i '/XkbVariant/d' $keyboard_config
  14.117 -
  14.118 -	# Create a xorg.conf if needed.
  14.119 -	if [ ! -f /etc/X11/xorg.conf ]; then
  14.120 -	cat > /etc/X11/xorg.conf << EOT
  14.121 -# You can put here your own Xorg configurations. This config file is read
  14.122 -# before all files in /etc/X11/xorg.conf.d and will NOT be erased by any
  14.123 -# updates.
  14.124 -EOT
  14.125 -	fi
  14.126 -}
  14.127 -
  14.128 -# Install xorg server.
  14.129 -install_xorg() {
  14.130 -	[ -f "/var/lib/tazpkg/packages.list" ] || tazpkg recharge
  14.131 -	exec 3>&1
  14.132 -	value=$($DIALOG \
  14.133 -		--clear --colors \
  14.134 -		--title " $(_n 'Install Xorg') " \
  14.135 -		--menu "$(_n 'Tazx helps you to select your X driver.')" 16 70 8 \
  14.136 -	$(fgrep xorg-xf86-video /var/lib/tazpkg/packages.list | cut -d- -f4 | \
  14.137 -		while read x; do echo $x; _ 'driver'; done) \
  14.138 -	"quit" "$(_n 'Quit')" \
  14.139 -	2>&1 1>&3)
  14.140 -	retval=$?
  14.141 -	exec 3>&-
  14.142 -
  14.143 -	# Continue or exit.
  14.144 -	case $retval in
  14.145 -		0) continue ;;
  14.146 -		1|255) exit 0 ;;
  14.147 -	esac
  14.148 -
  14.149 -	# Set selected value.
  14.150 -	case $value in
  14.151 -		quit) exit 0 ;;
  14.152 -		*)
  14.153 -			[ -d "$installed/xorg-server" ] || tazpkg -gi xorg-server
  14.154 -			[ -d "$installed/xorg-xf86-video-$value" ] || \
  14.155 -				tazpkg -gi xorg-xf86-video-$value
  14.156 -			xorg_conf_d ;;
  14.157 -	esac
  14.158 -}
  14.159 -
  14.160 -# Screen configuration dialog. TODO: menus items to enable/disable X on boot
  14.161 -# and sed /etc/rcS.conf to remove slim from RUN_DAEMONS.
  14.162 -config_dialog() {
  14.163 -	exec 3>&1
  14.164 -	value=$($DIALOG \
  14.165 -		--clear --colors \
  14.166 -		--title "{ $(_n 'SliTaz Xorg config') }" \
  14.167 -		--menu "" 16 72 10 \
  14.168 -	"xorg"        "$(_n 'Install or reconfigure Xorg')" \
  14.169 -	"xorg-light"  "$(_n 'Install Xorg server (light version)')" \
  14.170 -	"quit"        "$(_n 'Quit Tazx utility')" \
  14.171 -	2>&1 1>&3)
  14.172 -	retval=$?
  14.173 -	exec 3>&-
  14.174 -
  14.175 -	# Continue or exit.
  14.176 -	case $retval in
  14.177 -		0) continue ;;
  14.178 -		1|255) exit 0 ;;
  14.179 -	esac
  14.180 -
  14.181 -	# Set selected value.
  14.182 -	case "$value" in
  14.183 -		xorg) 
  14.184 -			install_xorg ;;
  14.185 -		xorg-light)
  14.186 -			[ -d "$installed/xorg-server-light" ] || \
  14.187 -				tazpkg -gi xorg-server-light
  14.188 -			[ -d "$installed/xorg-xf86-video-fbdev" ] || \
  14.189 -				tazpkg -gi xorg-xf86-video-fbdev
  14.190 -			xorg_conf_d ;;
  14.191 -		*)
  14.192 -			exit 0 ;;
  14.193 -	esac
  14.194 -}
  14.195 -
  14.196 -# ~/.xinitrc for X login from a DM.
  14.197 -creat_xinitrc() {
  14.198 -	apps_conf=/etc/slitaz/applications.conf
  14.199 -	user_conf="$HOME/.config/slitaz/applications.conf"
  14.200 -	xinitrc="$HOME/.xinitrc"
  14.201 -	if [ ! -f "$user_conf" ]; then
  14.202 -		mkdir -p $(dirname $user_conf); cp ${apps_conf} ${user_conf}
  14.203 -	fi
  14.204 -	if [ ! -f "$xinitrc" ]; then
  14.205 -		cp /etc/skel/.xinitrc ${xinitrc}
  14.206 -	fi
  14.207 -
  14.208 -	# Make .xinitrc and config for /etc/skel so new added user will get
  14.209 -	# a working X session.
  14.210 -	if test $(id -u) = 0; then
  14.211 -		user_conf="/etc/skel/.config/slitaz/applications.conf"
  14.212 -		mkdir -p $(dirname $user_conf); cp -f ${apps_conf} ${user_conf}
  14.213 -	fi
  14.214 -
  14.215 -	# In Live mode default user needs a xinitrc, since tazx is executed
  14.216 -	# only by root.
  14.217 -	user_conf="/home/$USER/.config/slitaz/applications.conf"
  14.218 -	xinitrc="/home/$USER/.xinitrc"
  14.219 -	if [ ! -f "$user_conf" ]; then
  14.220 -		mkdir -p $(dirname $user_conf); cp ${apps_conf} ${user_conf}
  14.221 -		chown -R $USER.users $(dirname $user_conf)
  14.222 -	fi
  14.223 -	if [ ! -f "$xinitrc" ]; then
  14.224 -		cp -f /etc/skel/.xinitrc ${xinitrc}
  14.225 -		chown $USER.users ${xinitrc}
  14.226 -	fi
  14.227 -}
  14.228 -
  14.229 -# Create ~/.xsession to keep the configuration selected (used
  14.230 -# only by startx, Slim login manager uses .xinitrc).
  14.231 -creat_xsession() {
  14.232 -	local xsession=$HOME/.xsession
  14.233 -	[ -f "$xsession" ] && cp -f ${xsession} ${xsession}.bak
  14.234 -	cat > ${xsession} << EOT
  14.235 -# ~/.xsession: Start X session manually on your system with: startx
  14.236 -#
  14.237 -Xorg &
  14.238 -#xterm &
  14.239 -exec $WM
  14.240 -EOT
  14.241 -	chmod 700 ${xsession}
  14.242 -}
  14.243 -
  14.244 -# Commands
  14.245 -
  14.246 -case "$1" in
  14.247 -	install-xorg)
  14.248 -		check_root
  14.249 -		install_xorg
  14.250 -		creat_xinitrc
  14.251 -		creat_xsession ;;
  14.252 -	
  14.253 -	config-xorg)
  14.254 -		check_root
  14.255 -		creat_xinitrc
  14.256 -		creat_xsession
  14.257 -		xorg_conf_d
  14.258 -		# Handle live option: screen=
  14.259 -		if grep -qs screen= /proc/cmdline ; then
  14.260 -			MODE="$(sed 's/.*screen=\([0-9]*x[0-9]*\).*/\1/' < /proc/cmdline)"
  14.261 -			sed -i "s/.*EndSubSection.*/\\t\\tModes\\t\"$MODE\"\\n&/" \
  14.262 -				/etc/X11/xorg.conf.d/70-Screen.conf
  14.263 -		fi ;;
  14.264 -	
  14.265 -	*help) 
  14.266 -		echo "Usage: $(basename $0) [install-xorg|config-xorg|]" ;;
  14.267 -	
  14.268 -	*)
  14.269 -		# User can get a new .xinitrc with tazx from cmdline.
  14.270 -		[ $(id -u) == 0 ] && config_dialog
  14.271 -		creat_xinitrc
  14.272 -		creat_xsession ;;
  14.273 -esac
  14.274 -
  14.275 -exit 0