slitaz-configs rev 205

Add SliTaz Tiny/Touch Screen configs files and utils
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 11 00:51:33 2014 +0200 (2014-04-11)
parents c7c084e84dd4
children e31e21674208
files Makefile sts/README sts/applications/sts-kill.desktop sts/lxpanel/sts/config sts/lxpanel/sts/panels/bottom sts/lxpanel/sts/panels/panel sts/openbox/sts-autostart sts/openbox/sts-rc.xml sts/sts sts/sts-session
line diff
     1.1 --- a/Makefile	Wed Apr 02 10:10:26 2014 +0200
     1.2 +++ b/Makefile	Fri Apr 11 00:51:33 2014 +0200
     1.3 @@ -1,15 +1,28 @@
     1.4  # Makefile for SliTaz Openbox menu.
     1.5  
     1.6 +PREFIX?=/usr
     1.7 +DESTDIR?=
     1.8  DOMAIN=slitaz-ob-menu
     1.9  MENU?=ob-menu/menu.xml.in
    1.10  LINGUAS?=fr hu pt_BR ru
    1.11  
    1.12 +BINDIR=$(DESTDIR)$(PREFIX)/bin
    1.13 +STSDATA=$(DESTDIR)$(PREFIX)/share/slitaz/sts
    1.14  
    1.15  all: help
    1.16  
    1.17  help:
    1.18  	@echo "make [ pot | msgmerge | menu | clean ]"
    1.19  
    1.20 +install-sts:
    1.21 +	install -m 0777 -d $(BINDIR)
    1.22 +	install -m 0777 -d $(STSDATA)
    1.23 +	install -m 0755 sts/sts $(BINDIR)/sts
    1.24 +	install -m 0755 sts/sts-session $(BINDIR)/sts-session
    1.25 +	cp -a sts/applications $(DESTDIR)$(PREFIX)/usr/share
    1.26 +	cp -a sts/lxpanel $(STSDATA)
    1.27 +	cp -a sts/openbox $(STSDATA)
    1.28 +
    1.29  pot:
    1.30  	xgettext -o po/$(DOMAIN).pot --force-po --copyright-holder=SliTaz \
    1.31  		--package-name=$(DOMAIN) --package-version=5.1.6 -L Shell $(MENU)
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sts/README	Fri Apr 11 00:51:33 2014 +0200
     2.3 @@ -0,0 +1,16 @@
     2.4 +SliTaz Tiny/Touch Screen desktop
     2.5 +===============================================================================
     2.6 +
     2.7 +
     2.8 +The goals of the sts desktop is to provide a nice experience on realy small
     2.9 +screens such as 320x240 2.8" TFT or 800x480 5" HDMI/VGA. The desktop use
    2.10 +Openbox window manager and LXpanel. Apps are started maximized and undecored.
    2.11 +The top panel provide icons of opened applications and the hidden bottom panel
    2.12 +provide desktop switch and a close button for the current running application.
    2.13 +
    2.14 +Sts can be used on any screen but was coded for custom i486/ARM flavors. These
    2.15 +flavors use a custom /etc/slitaz/applications.conf with sts-session as WM. Sts
    2.16 +can also be started by Slim or with startx and an appropriate ~/.xsession file.
    2.17 +
    2.18 +
    2.19 +===============================================================================
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/sts/applications/sts-kill.desktop	Fri Apr 11 00:51:33 2014 +0200
     3.3 @@ -0,0 +1,6 @@
     3.4 +[Desktop Entry]
     3.5 +Type=Application
     3.6 +Name=Close application
     3.7 +Name=Fermer l'application
     3.8 +Exec=sts kill
     3.9 +Icon=gtk-close
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/sts/lxpanel/sts/config	Fri Apr 11 00:51:33 2014 +0200
     4.3 @@ -0,0 +1,4 @@
     4.4 +[Command]
     4.5 +FileManager=spacefm %s
     4.6 +Terminal=xterm
     4.7 +Logout=tazbox logout
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/sts/lxpanel/sts/panels/bottom	Fri Apr 11 00:51:33 2014 +0200
     5.3 @@ -0,0 +1,54 @@
     5.4 +# lxpanel <profile> config file. Manually editing is not recommended.
     5.5 +# Use preference dialog in lxpanel to adjust config when you can.
     5.6 +
     5.7 +Global {
     5.8 +    edge=bottom
     5.9 +    allign=center
    5.10 +    margin=0
    5.11 +    widthtype=percent
    5.12 +    width=100
    5.13 +    height=28
    5.14 +    transparent=1
    5.15 +    tintcolor=#ffffff
    5.16 +    alpha=0
    5.17 +    autohide=1
    5.18 +    heightwhenhidden=2
    5.19 +    setdocktype=1
    5.20 +    setpartialstrut=0
    5.21 +    usefontcolor=0
    5.22 +    fontsize=11
    5.23 +    fontcolor=#000000
    5.24 +    usefontsize=0
    5.25 +    background=0
    5.26 +    iconsize=28
    5.27 +    loglevel=2
    5.28 +}
    5.29 +
    5.30 +Plugin {
    5.31 +    type = space
    5.32 +    Config {
    5.33 +        Size=2
    5.34 +    }
    5.35 +}
    5.36 +
    5.37 +Plugin {
    5.38 +    type = pager
    5.39 +}
    5.40 +
    5.41 +Plugin {
    5.42 +    type = space
    5.43 +    expand=1
    5.44 +    Config {
    5.45 +        Size=2
    5.46 +    }
    5.47 +}
    5.48 +
    5.49 +Plugin {
    5.50 +    type = launchbar
    5.51 +    Config {
    5.52 +        Button {
    5.53 +            id=/usr/share/applications/sts-kill.desktop
    5.54 +        }
    5.55 +    }
    5.56 +}
    5.57 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/sts/lxpanel/sts/panels/panel	Fri Apr 11 00:51:33 2014 +0200
     6.3 @@ -0,0 +1,117 @@
     6.4 +# lxpanel <profile> config file. Manually editing is not recommended.
     6.5 +# Use preference dialog in lxpanel to adjust config when you can.
     6.6 +
     6.7 +Global {
     6.8 +    edge=top
     6.9 +    allign=center
    6.10 +    margin=0
    6.11 +    widthtype=percent
    6.12 +    width=100
    6.13 +    height=26
    6.14 +    transparent=1
    6.15 +    tintcolor=#222222
    6.16 +    alpha=255
    6.17 +    autohide=0
    6.18 +    heightwhenhidden=4
    6.19 +    setdocktype=1
    6.20 +    setpartialstrut=1
    6.21 +    usefontcolor=1
    6.22 +    fontsize=11
    6.23 +    fontcolor=#ffffff
    6.24 +    usefontsize=1
    6.25 +    background=0
    6.26 +    iconsize=26
    6.27 +    loglevel=2
    6.28 +}
    6.29 +
    6.30 +Plugin {
    6.31 +    type = space
    6.32 +    Config {
    6.33 +        Size=4
    6.34 +    }
    6.35 +}
    6.36 +
    6.37 +Plugin {
    6.38 +    type = menu
    6.39 +    Config {
    6.40 +        image=/usr/share/pixmaps/slitaz-menu.png
    6.41 +        system {
    6.42 +        }
    6.43 +        separator {
    6.44 +        }
    6.45 +        item {
    6.46 +            image=exec
    6.47 +            command=run
    6.48 +        }
    6.49 +        separator {
    6.50 +        }
    6.51 +        item {
    6.52 +            image=logout
    6.53 +            command=logout
    6.54 +        }
    6.55 +    }
    6.56 +}
    6.57 +
    6.58 +Plugin {
    6.59 +    type = space
    6.60 +    Config {
    6.61 +        Size=6
    6.62 +    }
    6.63 +}
    6.64 +
    6.65 +Plugin {
    6.66 +    type = space
    6.67 +    Config {
    6.68 +        Size=2
    6.69 +    }
    6.70 +}
    6.71 +
    6.72 +Plugin {
    6.73 +    type = taskbar
    6.74 +    expand=1
    6.75 +    Config {
    6.76 +        tooltips=1
    6.77 +        IconsOnly=1
    6.78 +        ShowAllDesks=0
    6.79 +        UseMouseWheel=0
    6.80 +        UseUrgencyHint=1
    6.81 +        FlatButton=1
    6.82 +        MaxTaskWidth=200
    6.83 +        spacing=4
    6.84 +        GroupedTasks=1
    6.85 +    }
    6.86 +}
    6.87 +
    6.88 +Plugin {
    6.89 +    type = tray
    6.90 +}
    6.91 +
    6.92 +Plugin {
    6.93 +    type = space
    6.94 +    Config {
    6.95 +        Size=4
    6.96 +    }
    6.97 +}
    6.98 +
    6.99 +Plugin {
   6.100 +    type = volumealsa
   6.101 +}
   6.102 +
   6.103 +Plugin {
   6.104 +    type = space
   6.105 +    Config {
   6.106 +        Size=4
   6.107 +    }
   6.108 +}
   6.109 +
   6.110 +Plugin {
   6.111 +    type = dclock
   6.112 +    Config {
   6.113 +        ClockFmt=%R
   6.114 +        TooltipFmt=%A %x
   6.115 +        BoldFont=1
   6.116 +        IconOnly=0
   6.117 +        CenterText=0
   6.118 +    }
   6.119 +}
   6.120 +
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/sts/openbox/sts-autostart	Fri Apr 11 00:51:33 2014 +0200
     7.3 @@ -0,0 +1,13 @@
     7.4 +# This shell script is run before Openbox launches.
     7.5 +# Environment variables set here are passed to the Openbox session.
     7.6 +
     7.7 +# Start DBUS session.
     7.8 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
     7.9 +	dbus-launch --sh-syntax --exit-with-session &
    7.10 +fi
    7.11 +
    7.12 +# Desktop background
    7.13 +hsetroot -fill /usr/share/images/slitaz-arm-background.png &
    7.14 +
    7.15 +# Desktop panel
    7.16 +lxpanel -p sts &
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/sts/openbox/sts-rc.xml	Fri Apr 11 00:51:33 2014 +0200
     8.3 @@ -0,0 +1,716 @@
     8.4 +<?xml version="1.0" encoding="UTF-8"?>
     8.5 +<!-- Do not edit this file, it will be overwritten on install.
     8.6 +        Copy the file to $HOME/.config/openbox/ instead. -->
     8.7 +<openbox_config xmlns="http://openbox.org/3.4/rc">
     8.8 +  <resistance>
     8.9 +    <strength>10</strength>
    8.10 +    <screen_edge_strength>20</screen_edge_strength>
    8.11 +  </resistance>
    8.12 +  <focus>
    8.13 +    <focusNew>yes</focusNew>
    8.14 +    <!-- always try to focus new windows when they appear. other rules do
    8.15 +       apply -->
    8.16 +    <followMouse>no</followMouse>
    8.17 +    <!-- move focus to a window when you move the mouse into it -->
    8.18 +    <focusLast>yes</focusLast>
    8.19 +    <!-- focus the last used window when changing desktops, instead of the one
    8.20 +       under the mouse pointer. when followMouse is enabled -->
    8.21 +    <underMouse>no</underMouse>
    8.22 +    <!-- move focus under the mouse, even when the mouse is not moving -->
    8.23 +    <focusDelay>200</focusDelay>
    8.24 +    <!-- when followMouse is enabled, the mouse must be inside the window for
    8.25 +       this many milliseconds (1000 = 1 sec) before moving focus to it -->
    8.26 +    <raiseOnFocus>no</raiseOnFocus>
    8.27 +    <!-- when followMouse is enabled, and a window is given focus by moving the
    8.28 +       mouse into it, also raise the window -->
    8.29 +  </focus>
    8.30 +  <placement>
    8.31 +    <policy>Smart</policy>
    8.32 +    <!-- 'Smart' or 'UnderMouse' -->
    8.33 +    <center>yes</center>
    8.34 +    <!-- whether to place windows in the center of the free area found or
    8.35 +       the top left corner -->
    8.36 +    <monitor>Any</monitor>
    8.37 +    <!-- with Smart placement on a multi-monitor system, try to place new windows
    8.38 +       on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
    8.39 +       the active window is -->
    8.40 +    <primaryMonitor/>
    8.41 +  </placement>
    8.42 +  <theme>
    8.43 +    <name>SliTaz</name>
    8.44 +    <titleLayout>NLIMC</titleLayout>
    8.45 +    <!--
    8.46 +      available characters are NDSLIMC, each can occur at most once.
    8.47 +      N: window icon
    8.48 +      L: window label (AKA title).
    8.49 +      I: iconify
    8.50 +      M: maximize
    8.51 +      C: close
    8.52 +      S: shade (roll up/down)
    8.53 +      D: omnipresent (on all desktops).
    8.54 +  -->
    8.55 +    <keepBorder>yes</keepBorder>
    8.56 +    <animateIconify>yes</animateIconify>
    8.57 +    <font place="ActiveWindow">
    8.58 +      <name>Sans</name>
    8.59 +      <size>8</size>
    8.60 +      <!-- font size in points -->
    8.61 +      <weight>Bold</weight>
    8.62 +      <!-- 'bold' or 'normal' -->
    8.63 +      <slant>Normal</slant>
    8.64 +      <!-- 'italic' or 'normal' -->
    8.65 +    </font>
    8.66 +    <font place="InactiveWindow">
    8.67 +      <name>Sans</name>
    8.68 +      <size>8</size>
    8.69 +      <!-- font size in points -->
    8.70 +      <weight>Bold</weight>
    8.71 +      <!-- 'bold' or 'normal' -->
    8.72 +      <slant>Normal</slant>
    8.73 +      <!-- 'italic' or 'normal' -->
    8.74 +    </font>
    8.75 +    <font place="MenuHeader">
    8.76 +      <name>Sans</name>
    8.77 +      <size>10</size>
    8.78 +      <!-- font size in points -->
    8.79 +      <weight>Normal</weight>
    8.80 +      <!-- 'bold' or 'normal' -->
    8.81 +      <slant>Normal</slant>
    8.82 +      <!-- 'italic' or 'normal' -->
    8.83 +    </font>
    8.84 +    <font place="MenuItem">
    8.85 +      <name>Sans</name>
    8.86 +      <size>11</size>
    8.87 +      <!-- font size in points -->
    8.88 +      <weight>Normal</weight>
    8.89 +      <!-- 'bold' or 'normal' -->
    8.90 +      <slant>Normal</slant>
    8.91 +      <!-- 'italic' or 'normal' -->
    8.92 +    </font>
    8.93 +    <font place="OnScreenDisplay">
    8.94 +      <name>sans</name>
    8.95 +      <size>14</size>
    8.96 +      <!-- font size in points -->
    8.97 +      <weight>bold</weight>
    8.98 +      <!-- 'bold' or 'normal' -->
    8.99 +      <slant>normal</slant>
   8.100 +      <!-- 'italic' or 'normal' -->
   8.101 +    </font>
   8.102 +    <font place="ActiveOnScreenDisplay">
   8.103 +      <name>Sans</name>
   8.104 +      <size>16</size>
   8.105 +      <weight>Normal</weight>
   8.106 +      <slant>Normal</slant>
   8.107 +    </font>
   8.108 +    <font place="InactiveOnScreenDisplay">
   8.109 +      <name>Sans</name>
   8.110 +      <size>8</size>
   8.111 +      <weight/>
   8.112 +      <slant/>
   8.113 +    </font>
   8.114 +  </theme>
   8.115 +  <desktops>
   8.116 +    <!-- this stuff is only used at startup, pagers allow you to change them
   8.117 +       during a session
   8.118 +
   8.119 +       these are default values to use when other ones are not already set
   8.120 +       by other applications, or saved in your session
   8.121 +
   8.122 +       use obconf if you want to change these without having to log out
   8.123 +       and back in -->
   8.124 +    <number>2</number>
   8.125 +    <firstdesk>1</firstdesk>
   8.126 +    <names>
   8.127 +      <!-- set names up here if you want to, like this:
   8.128 +    <name>desktop 1</name>
   8.129 +    <name>desktop 2</name>
   8.130 +    -->
   8.131 +    </names>
   8.132 +    <popupTime>875</popupTime>
   8.133 +    <!-- The number of milliseconds to show the popup for when switching
   8.134 +       desktops.  Set this to 0 to disable the popup. -->
   8.135 +  </desktops>
   8.136 +  <resize>
   8.137 +    <drawContents>yes</drawContents>
   8.138 +    <popupShow>Nonpixel</popupShow>
   8.139 +    <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
   8.140 +    <popupPosition>Center</popupPosition>
   8.141 +    <!-- 'Center', 'Top', or 'Fixed' -->
   8.142 +    <popupFixedPosition>
   8.143 +      <!-- these are used if popupPosition is set to 'Fixed' -->
   8.144 +      <x>10</x>
   8.145 +      <!-- positive number for distance from left edge, negative number for
   8.146 +         distance from right edge, or 'Center' -->
   8.147 +      <y>10</y>
   8.148 +      <!-- positive number for distance from top edge, negative number for
   8.149 +         distance from bottom edge, or 'Center' -->
   8.150 +    </popupFixedPosition>
   8.151 +  </resize>
   8.152 +  <!-- You can reserve a portion of your screen where windows will not cover when
   8.153 +     they are maximized, or when they are initially placed.
   8.154 +     Many programs reserve space automatically, but you can use this in other
   8.155 +     cases. -->
   8.156 +  <margins>
   8.157 +    <top>0</top>
   8.158 +    <bottom>0</bottom>
   8.159 +    <left>0</left>
   8.160 +    <right>0</right>
   8.161 +  </margins>
   8.162 +  <dock>
   8.163 +    <position>TopLeft</position>
   8.164 +    <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
   8.165 +    <floatingX>0</floatingX>
   8.166 +    <floatingY>0</floatingY>
   8.167 +    <noStrut>no</noStrut>
   8.168 +    <stacking>Above</stacking>
   8.169 +    <!-- 'Above', 'Normal', or 'Below' -->
   8.170 +    <direction>Vertical</direction>
   8.171 +    <!-- 'Vertical' or 'Horizontal' -->
   8.172 +    <autoHide>no</autoHide>
   8.173 +    <hideDelay>300</hideDelay>
   8.174 +    <!-- in milliseconds (1000 = 1 second) -->
   8.175 +    <showDelay>300</showDelay>
   8.176 +    <!-- in milliseconds (1000 = 1 second) -->
   8.177 +    <moveButton>Middle</moveButton>
   8.178 +    <!-- 'Left', 'Middle', 'Right' -->
   8.179 +  </dock>
   8.180 +  <keyboard>
   8.181 +    <chainQuitKey>C-g</chainQuitKey>
   8.182 +    <!-- Keybindings for desktop switching -->
   8.183 +    <keybind key="C-A-Left">
   8.184 +      <action name="DesktopLeft">
   8.185 +        <dialog>no</dialog>
   8.186 +        <wrap>no</wrap>
   8.187 +      </action>
   8.188 +    </keybind>
   8.189 +    <keybind key="C-A-Right">
   8.190 +      <action name="DesktopRight">
   8.191 +        <dialog>no</dialog>
   8.192 +        <wrap>no</wrap>
   8.193 +      </action>
   8.194 +    </keybind>
   8.195 +    <keybind key="C-A-Up">
   8.196 +      <action name="DesktopUp">
   8.197 +        <dialog>no</dialog>
   8.198 +        <wrap>no</wrap>
   8.199 +      </action>
   8.200 +    </keybind>
   8.201 +    <keybind key="C-A-Down">
   8.202 +      <action name="DesktopDown">
   8.203 +        <dialog>no</dialog>
   8.204 +        <wrap>no</wrap>
   8.205 +      </action>
   8.206 +    </keybind>
   8.207 +    <keybind key="S-A-Left">
   8.208 +      <action name="SendToDesktopLeft">
   8.209 +        <dialog>no</dialog>
   8.210 +        <wrap>no</wrap>
   8.211 +      </action>
   8.212 +    </keybind>
   8.213 +    <keybind key="S-A-Right">
   8.214 +      <action name="SendToDesktopRight">
   8.215 +        <dialog>no</dialog>
   8.216 +        <wrap>no</wrap>
   8.217 +      </action>
   8.218 +    </keybind>
   8.219 +    <keybind key="S-A-Up">
   8.220 +      <action name="SendToDesktopUp">
   8.221 +        <dialog>no</dialog>
   8.222 +        <wrap>no</wrap>
   8.223 +      </action>
   8.224 +    </keybind>
   8.225 +    <keybind key="S-A-Down">
   8.226 +      <action name="SendToDesktopDown">
   8.227 +        <dialog>no</dialog>
   8.228 +        <wrap>no</wrap>
   8.229 +      </action>
   8.230 +    </keybind>
   8.231 +    <keybind key="W-F1">
   8.232 +      <action name="Desktop">
   8.233 +        <desktop>1</desktop>
   8.234 +      </action>
   8.235 +    </keybind>
   8.236 +    <keybind key="W-F2">
   8.237 +      <action name="Desktop">
   8.238 +        <desktop>2</desktop>
   8.239 +      </action>
   8.240 +    </keybind>
   8.241 +    <keybind key="W-F3">
   8.242 +      <action name="Desktop">
   8.243 +        <desktop>3</desktop>
   8.244 +      </action>
   8.245 +    </keybind>
   8.246 +    <keybind key="W-F4">
   8.247 +      <action name="Desktop">
   8.248 +        <desktop>4</desktop>
   8.249 +      </action>
   8.250 +    </keybind>
   8.251 +    <keybind key="W-d">
   8.252 +      <action name="ToggleShowDesktop"/>
   8.253 +    </keybind>
   8.254 +    <!-- Keybindings for windows -->
   8.255 +    <keybind key="A-F4">
   8.256 +      <action name="Close"/>
   8.257 +    </keybind>
   8.258 +    <keybind key="A-Escape">
   8.259 +      <action name="Lower"/>
   8.260 +      <action name="FocusToBottom"/>
   8.261 +      <action name="Unfocus"/>
   8.262 +    </keybind>
   8.263 +    <keybind key="A-space">
   8.264 +      <action name="ShowMenu">
   8.265 +        <menu>client-menu</menu>
   8.266 +      </action>
   8.267 +    </keybind>
   8.268 +    <!-- Keybindings for window switching -->
   8.269 +    <keybind key="A-Tab">
   8.270 +      <action name="NextWindow"/>
   8.271 +    </keybind>
   8.272 +    <keybind key="A-S-Tab">
   8.273 +      <action name="PreviousWindow"/>
   8.274 +    </keybind>
   8.275 +    <keybind key="C-A-Tab">
   8.276 +      <action name="NextWindow">
   8.277 +        <panels>yes</panels>
   8.278 +        <desktop>yes</desktop>
   8.279 +      </action>
   8.280 +    </keybind>
   8.281 +    <!-- Keybindings for running applications -->
   8.282 +    <keybind key="W-e">
   8.283 +      <action name="Execute">
   8.284 +        <startupnotify>
   8.285 +          <enabled>true</enabled>
   8.286 +          <name>App Launcher</name>
   8.287 +        </startupnotify>
   8.288 +        <command>lxpanelctl run</command>
   8.289 +      </action>
   8.290 +    </keybind>
   8.291 +  </keyboard>
   8.292 +  <mouse>
   8.293 +    <dragThreshold>8</dragThreshold>
   8.294 +    <!-- number of pixels the mouse must move before a drag begins -->
   8.295 +    <doubleClickTime>200</doubleClickTime>
   8.296 +    <!-- in milliseconds (1000 = 1 second) -->
   8.297 +    <screenEdgeWarpTime>400</screenEdgeWarpTime>
   8.298 +    <!-- Time before changing desktops when the pointer touches the edge of the
   8.299 +       screen while moving a window, in milliseconds (1000 = 1 second).
   8.300 +       Set this to 0 to disable warping -->
   8.301 +    <context name="Frame">
   8.302 +      <mousebind button="A-Left" action="Press">
   8.303 +        <action name="Focus"/>
   8.304 +        <action name="Raise"/>
   8.305 +      </mousebind>
   8.306 +      <mousebind button="A-Left" action="Click">
   8.307 +        <action name="Unshade"/>
   8.308 +      </mousebind>
   8.309 +      <mousebind button="A-Left" action="Drag">
   8.310 +        <action name="Move"/>
   8.311 +      </mousebind>
   8.312 +      <mousebind button="A-Right" action="Press">
   8.313 +        <action name="Focus"/>
   8.314 +        <action name="Raise"/>
   8.315 +        <action name="Unshade"/>
   8.316 +      </mousebind>
   8.317 +      <mousebind button="A-Right" action="Drag">
   8.318 +        <action name="Resize"/>
   8.319 +      </mousebind>
   8.320 +      <mousebind button="A-Middle" action="Press">
   8.321 +        <action name="Lower"/>
   8.322 +        <action name="FocusToBottom"/>
   8.323 +        <action name="Unfocus"/>
   8.324 +      </mousebind>
   8.325 +      <mousebind button="A-Up" action="Click">
   8.326 +        <action name="DesktopPrevious"/>
   8.327 +      </mousebind>
   8.328 +      <mousebind button="A-Down" action="Click">
   8.329 +        <action name="DesktopNext"/>
   8.330 +      </mousebind>
   8.331 +      <mousebind button="C-A-Up" action="Click">
   8.332 +        <action name="DesktopPrevious"/>
   8.333 +      </mousebind>
   8.334 +      <mousebind button="C-A-Down" action="Click">
   8.335 +        <action name="DesktopNext"/>
   8.336 +      </mousebind>
   8.337 +      <mousebind button="A-S-Up" action="Click">
   8.338 +        <action name="SendToDesktopPrevious"/>
   8.339 +      </mousebind>
   8.340 +      <mousebind button="A-S-Down" action="Click">
   8.341 +        <action name="SendToDesktopNext"/>
   8.342 +      </mousebind>
   8.343 +    </context>
   8.344 +    <context name="Titlebar">
   8.345 +      <mousebind button="Left" action="Press">
   8.346 +        <action name="Focus"/>
   8.347 +        <action name="Raise"/>
   8.348 +      </mousebind>
   8.349 +      <mousebind button="Left" action="Drag">
   8.350 +        <action name="Move"/>
   8.351 +      </mousebind>
   8.352 +      <mousebind button="Left" action="DoubleClick">
   8.353 +        <action name="ToggleMaximizeFull"/>
   8.354 +      </mousebind>
   8.355 +      <mousebind button="Middle" action="Press">
   8.356 +        <action name="Lower"/>
   8.357 +        <action name="FocusToBottom"/>
   8.358 +        <action name="Unfocus"/>
   8.359 +      </mousebind>
   8.360 +      <mousebind button="Up" action="Click">
   8.361 +        <action name="Shade"/>
   8.362 +        <action name="FocusToBottom"/>
   8.363 +        <action name="Unfocus"/>
   8.364 +        <action name="Lower"/>
   8.365 +      </mousebind>
   8.366 +      <mousebind button="Down" action="Click">
   8.367 +        <action name="Unshade"/>
   8.368 +        <action name="Raise"/>
   8.369 +      </mousebind>
   8.370 +      <mousebind button="Right" action="Press">
   8.371 +        <action name="Focus"/>
   8.372 +        <action name="Raise"/>
   8.373 +        <action name="ShowMenu">
   8.374 +          <menu>client-menu</menu>
   8.375 +        </action>
   8.376 +      </mousebind>
   8.377 +    </context>
   8.378 +    <context name="Top">
   8.379 +      <mousebind button="Left" action="Press">
   8.380 +        <action name="Focus"/>
   8.381 +        <action name="Raise"/>
   8.382 +        <action name="Unshade"/>
   8.383 +      </mousebind>
   8.384 +      <mousebind button="Left" action="Drag">
   8.385 +        <action name="Resize">
   8.386 +          <edge>top</edge>
   8.387 +        </action>
   8.388 +      </mousebind>
   8.389 +    </context>
   8.390 +    <context name="Left">
   8.391 +      <mousebind button="Left" action="Press">
   8.392 +        <action name="Focus"/>
   8.393 +        <action name="Raise"/>
   8.394 +      </mousebind>
   8.395 +      <mousebind button="Left" action="Drag">
   8.396 +        <action name="Resize">
   8.397 +          <edge>left</edge>
   8.398 +        </action>
   8.399 +      </mousebind>
   8.400 +    </context>
   8.401 +    <context name="Right">
   8.402 +      <mousebind button="Left" action="Press">
   8.403 +        <action name="Focus"/>
   8.404 +        <action name="Raise"/>
   8.405 +      </mousebind>
   8.406 +      <mousebind button="Left" action="Drag">
   8.407 +        <action name="Resize">
   8.408 +          <edge>right</edge>
   8.409 +        </action>
   8.410 +      </mousebind>
   8.411 +    </context>
   8.412 +    <context name="Bottom">
   8.413 +      <mousebind button="Left" action="Press">
   8.414 +        <action name="Focus"/>
   8.415 +        <action name="Raise"/>
   8.416 +      </mousebind>
   8.417 +      <mousebind button="Left" action="Drag">
   8.418 +        <action name="Resize">
   8.419 +          <edge>bottom</edge>
   8.420 +        </action>
   8.421 +      </mousebind>
   8.422 +      <mousebind button="Middle" action="Press">
   8.423 +        <action name="Lower"/>
   8.424 +        <action name="FocusToBottom"/>
   8.425 +        <action name="Unfocus"/>
   8.426 +      </mousebind>
   8.427 +      <mousebind button="Right" action="Press">
   8.428 +        <action name="Focus"/>
   8.429 +        <action name="Raise"/>
   8.430 +        <action name="ShowMenu">
   8.431 +          <menu>client-menu</menu>
   8.432 +        </action>
   8.433 +      </mousebind>
   8.434 +    </context>
   8.435 +    <context name="BLCorner">
   8.436 +      <mousebind button="Left" action="Press">
   8.437 +        <action name="Focus"/>
   8.438 +        <action name="Raise"/>
   8.439 +      </mousebind>
   8.440 +      <mousebind button="Left" action="Drag">
   8.441 +        <action name="Resize"/>
   8.442 +      </mousebind>
   8.443 +    </context>
   8.444 +    <context name="BRCorner">
   8.445 +      <mousebind button="Left" action="Press">
   8.446 +        <action name="Focus"/>
   8.447 +        <action name="Raise"/>
   8.448 +      </mousebind>
   8.449 +      <mousebind button="Left" action="Drag">
   8.450 +        <action name="Resize"/>
   8.451 +      </mousebind>
   8.452 +    </context>
   8.453 +    <context name="TLCorner">
   8.454 +      <mousebind button="Left" action="Press">
   8.455 +        <action name="Focus"/>
   8.456 +        <action name="Raise"/>
   8.457 +        <action name="Unshade"/>
   8.458 +      </mousebind>
   8.459 +      <mousebind button="Left" action="Drag">
   8.460 +        <action name="Resize"/>
   8.461 +      </mousebind>
   8.462 +    </context>
   8.463 +    <context name="TRCorner">
   8.464 +      <mousebind button="Left" action="Press">
   8.465 +        <action name="Focus"/>
   8.466 +        <action name="Raise"/>
   8.467 +        <action name="Unshade"/>
   8.468 +      </mousebind>
   8.469 +      <mousebind button="Left" action="Drag">
   8.470 +        <action name="Resize"/>
   8.471 +      </mousebind>
   8.472 +    </context>
   8.473 +    <context name="Client">
   8.474 +      <mousebind button="Left" action="Press">
   8.475 +        <action name="Focus"/>
   8.476 +        <action name="Raise"/>
   8.477 +      </mousebind>
   8.478 +      <mousebind button="Middle" action="Press">
   8.479 +        <action name="Focus"/>
   8.480 +        <action name="Raise"/>
   8.481 +      </mousebind>
   8.482 +      <mousebind button="Right" action="Press">
   8.483 +        <action name="Focus"/>
   8.484 +        <action name="Raise"/>
   8.485 +      </mousebind>
   8.486 +    </context>
   8.487 +    <context name="Icon">
   8.488 +      <mousebind button="Left" action="Press">
   8.489 +        <action name="Focus"/>
   8.490 +        <action name="Raise"/>
   8.491 +        <action name="Unshade"/>
   8.492 +        <action name="ShowMenu">
   8.493 +          <menu>client-menu</menu>
   8.494 +        </action>
   8.495 +      </mousebind>
   8.496 +      <mousebind button="Right" action="Press">
   8.497 +        <action name="Focus"/>
   8.498 +        <action name="Raise"/>
   8.499 +        <action name="ShowMenu">
   8.500 +          <menu>client-menu</menu>
   8.501 +        </action>
   8.502 +      </mousebind>
   8.503 +    </context>
   8.504 +    <context name="AllDesktops">
   8.505 +      <mousebind button="Left" action="Press">
   8.506 +        <action name="Focus"/>
   8.507 +        <action name="Raise"/>
   8.508 +        <action name="Unshade"/>
   8.509 +      </mousebind>
   8.510 +      <mousebind button="Left" action="Click">
   8.511 +        <action name="ToggleOmnipresent"/>
   8.512 +      </mousebind>
   8.513 +    </context>
   8.514 +    <context name="Shade">
   8.515 +      <mousebind button="Left" action="Press">
   8.516 +        <action name="Focus"/>
   8.517 +        <action name="Raise"/>
   8.518 +      </mousebind>
   8.519 +      <mousebind button="Left" action="Click">
   8.520 +        <action name="ToggleShade"/>
   8.521 +      </mousebind>
   8.522 +    </context>
   8.523 +    <context name="Iconify">
   8.524 +      <mousebind button="Left" action="Press">
   8.525 +        <action name="Focus"/>
   8.526 +        <action name="Raise"/>
   8.527 +      </mousebind>
   8.528 +      <mousebind button="Left" action="Click">
   8.529 +        <action name="Iconify"/>
   8.530 +      </mousebind>
   8.531 +    </context>
   8.532 +    <context name="Maximize">
   8.533 +      <mousebind button="Left" action="Press">
   8.534 +        <action name="Focus"/>
   8.535 +        <action name="Raise"/>
   8.536 +        <action name="Unshade"/>
   8.537 +      </mousebind>
   8.538 +      <mousebind button="Middle" action="Press">
   8.539 +        <action name="Focus"/>
   8.540 +        <action name="Raise"/>
   8.541 +        <action name="Unshade"/>
   8.542 +      </mousebind>
   8.543 +      <mousebind button="Right" action="Press">
   8.544 +        <action name="Focus"/>
   8.545 +        <action name="Raise"/>
   8.546 +        <action name="Unshade"/>
   8.547 +      </mousebind>
   8.548 +      <mousebind button="Left" action="Click">
   8.549 +        <action name="ToggleMaximizeFull"/>
   8.550 +      </mousebind>
   8.551 +      <mousebind button="Middle" action="Click">
   8.552 +        <action name="ToggleMaximizeVert"/>
   8.553 +      </mousebind>
   8.554 +      <mousebind button="Right" action="Click">
   8.555 +        <action name="ToggleMaximizeHorz"/>
   8.556 +      </mousebind>
   8.557 +    </context>
   8.558 +    <context name="Close">
   8.559 +      <mousebind button="Left" action="Press">
   8.560 +        <action name="Focus"/>
   8.561 +        <action name="Raise"/>
   8.562 +        <action name="Unshade"/>
   8.563 +      </mousebind>
   8.564 +      <mousebind button="Left" action="Click">
   8.565 +        <action name="Close"/>
   8.566 +      </mousebind>
   8.567 +    </context>
   8.568 +    <context name="Desktop">
   8.569 +      <mousebind button="Up" action="Click">
   8.570 +        <action name="DesktopPrevious"/>
   8.571 +      </mousebind>
   8.572 +      <mousebind button="Down" action="Click">
   8.573 +        <action name="DesktopNext"/>
   8.574 +      </mousebind>
   8.575 +      <mousebind button="A-Up" action="Click">
   8.576 +        <action name="DesktopPrevious"/>
   8.577 +      </mousebind>
   8.578 +      <mousebind button="A-Down" action="Click">
   8.579 +        <action name="DesktopNext"/>
   8.580 +      </mousebind>
   8.581 +      <mousebind button="C-A-Up" action="Click">
   8.582 +        <action name="DesktopPrevious"/>
   8.583 +      </mousebind>
   8.584 +      <mousebind button="C-A-Down" action="Click">
   8.585 +        <action name="DesktopNext"/>
   8.586 +      </mousebind>
   8.587 +      <mousebind button="Left" action="Press">
   8.588 +        <action name="Focus"/>
   8.589 +        <action name="Raise"/>
   8.590 +      </mousebind>
   8.591 +      <mousebind button="Right" action="Press">
   8.592 +        <action name="Focus"/>
   8.593 +        <action name="Raise"/>
   8.594 +      </mousebind>
   8.595 +    </context>
   8.596 +    <context name="Root">
   8.597 +      <!-- Menus -->
   8.598 +      <mousebind button="Middle" action="Press">
   8.599 +        <action name="ShowMenu">
   8.600 +          <menu>client-list-combined-menu</menu>
   8.601 +        </action>
   8.602 +      </mousebind>
   8.603 +      <mousebind button="Right" action="Press">
   8.604 +        <action name="ShowMenu">
   8.605 +          <menu>root-menu</menu>
   8.606 +        </action>
   8.607 +      </mousebind>
   8.608 +    </context>
   8.609 +    <context name="MoveResize">
   8.610 +      <mousebind button="Up" action="Click">
   8.611 +        <action name="DesktopPrevious"/>
   8.612 +      </mousebind>
   8.613 +      <mousebind button="Down" action="Click">
   8.614 +        <action name="DesktopNext"/>
   8.615 +      </mousebind>
   8.616 +      <mousebind button="A-Up" action="Click">
   8.617 +        <action name="DesktopPrevious"/>
   8.618 +      </mousebind>
   8.619 +      <mousebind button="A-Down" action="Click">
   8.620 +        <action name="DesktopNext"/>
   8.621 +      </mousebind>
   8.622 +    </context>
   8.623 +  </mouse>
   8.624 +  <menu>
   8.625 +    <!-- You can specify more than one menu file in here and they are all loaded,
   8.626 +       just don't make menu ids clash or, well, it'll be kind of pointless -->
   8.627 +    <!-- default menu file (or custom one in $HOME/.config/openbox/) -->
   8.628 +    <file>menu.xml</file>
   8.629 +    <hideDelay>200</hideDelay>
   8.630 +    <!-- if a press-release lasts longer than this setting (in milliseconds), the
   8.631 +       menu is hidden again -->
   8.632 +    <middle>no</middle>
   8.633 +    <!-- center submenus vertically about the parent entry -->
   8.634 +    <submenuShowDelay>100</submenuShowDelay>
   8.635 +    <!-- this one is easy, time to delay before showing a submenu after hovering
   8.636 +       over the parent entry -->
   8.637 +    <applicationIcons>yes</applicationIcons>
   8.638 +    <!-- controls if icons appear in the client-list-(combined-)menu -->
   8.639 +    <manageDesktops>yes</manageDesktops>
   8.640 +    <!-- show the manage desktops section in the client-list-(combined-)menu -->
   8.641 +  </menu>
   8.642 +  <applications>
   8.643 +    <application class="*">
   8.644 +      <maximized>yes</maximized>
   8.645 +      <decor>no</decor>
   8.646 +    </application>
   8.647 +    <!--
   8.648 +  # this is an example with comments through out. use these to make your
   8.649 +  # own rules, but without the comments of course.
   8.650 +
   8.651 +  <application name="first element of window's WM_CLASS property (see xprop)"
   8.652 +              class="second element of window's WM_CLASS property (see xprop)"
   8.653 +               role="the window's WM_WINDOW_ROLE property (see xprop)">
   8.654 +  # the name or the class can be set, or both. this is used to match
   8.655 +  # windows when they appear. role can optionally be set as well, to
   8.656 +  # further restrict your matches.
   8.657 +
   8.658 +  # the name, class, and role use simple wildcard matching such as those
   8.659 +  # used by a shell. you can use * to match any characters and ? to match
   8.660 +  # any single character.
   8.661 +
   8.662 +  # when multiple rules match a window, they will all be applied, in the
   8.663 +  # order that they appear in this list
   8.664 +
   8.665 +
   8.666 +    # each element can be left out or set to 'default' to specify to not 
   8.667 +    # change that attribute of the window
   8.668 +
   8.669 +    <decor>yes</decor>
   8.670 +    # enable or disable window decorations
   8.671 +
   8.672 +    <shade>no</shade>
   8.673 +    # make the window shaded when it appears, or not
   8.674 +
   8.675 +    <position>
   8.676 +      # the position is only used if both an x and y coordinate are provided
   8.677 +      # (and not set to 'default')
   8.678 +      <x>center</x>
   8.679 +      # a number like 50, or 'center' to center on screen. use a negative number
   8.680 +      # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
   8.681 +      # right edge (or bottom).
   8.682 +      <y>200</y>
   8.683 +      <monitor>1</monitor>
   8.684 +      # specifies the monitor in a xinerama setup.
   8.685 +      # 1 is the first head, or 'mouse' for wherever the mouse is
   8.686 +    </position>
   8.687 +
   8.688 +    <focus>yes</focus>
   8.689 +    # if the window should try be given focus when it appears. if this is set
   8.690 +    # to yes it doesn't guarantee the window will be given focus. some
   8.691 +    # restrictions may apply, but Openbox will try to
   8.692 +
   8.693 +    <desktop>1</desktop>
   8.694 +    # 1 is the first desktop, 'all' for all desktops
   8.695 +
   8.696 +    <layer>normal</layer>
   8.697 +    # 'above', 'normal', or 'below'
   8.698 +
   8.699 +    <iconic>no</iconic>
   8.700 +    # make the window iconified when it appears, or not
   8.701 +
   8.702 +    <skip_pager>no</skip_pager>
   8.703 +    # asks to not be shown in pagers
   8.704 +
   8.705 +    <skip_taskbar>no</skip_taskbar>
   8.706 +    # asks to not be shown in taskbars. window cycling actions will also
   8.707 +    # skip past such windows
   8.708 +
   8.709 +    <fullscreen>yes</fullscreen>
   8.710 +    # make the window in fullscreen mode when it appears
   8.711 +
   8.712 +    <maximized>true</maximized>
   8.713 +    # 'Horizontal', 'Vertical' or boolean (yes/no)
   8.714 +  </application>
   8.715 +
   8.716 +  # end of the example
   8.717 +-->
   8.718 +  </applications>
   8.719 +</openbox_config>
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/sts/sts	Fri Apr 11 00:51:33 2014 +0200
     9.3 @@ -0,0 +1,37 @@
     9.4 +#!/bin/sh
     9.5 +#
     9.6 +# This tool is used by SliTaz Tiny/Touch Screens desktop.
     9.7 +#
     9.8 +# Copyright (C) 2014 SliTaz ARM - BSD License
     9.9 +# Author: Christophe Lincoln <pankso@slitaz.org>
    9.10 +#
    9.11 +
    9.12 +data="/usr/share/slitaz/sts"
    9.13 +obconf="${XDG_CONFIG_HOME}/openbox"
    9.14 +
    9.15 +case "$1" in
    9.16 +	info)
    9.17 +		if [ "$STS_DESKTOP_WM" ]; then
    9.18 +			echo "STS_DESKTOP_WM : $STS_DESKTOP_WM"
    9.19 +		else
    9.20 +			echo "The sts desktop is not running"
    9.21 +		fi ;;
    9.22 +	setup)
    9.23 +		# Setup a user session. Openbox configs are setup by sts-session
    9.24 +		# but on a system update only $data files are updated so users may
    9.25 +		# want to get latest configs with --forced from cmdline or via a
    9.26 +		# GUI box.
    9.27 +		
    9.28 +		# sed -i "//sts-session/" ${XDG_CONFIG_HOME}/slitaz/applications.conf
    9.29 +		user=$(id -un)
    9.30 +		echo "TODO: sorry $user" ;;
    9.31 +	kill)
    9.32 +		# Close button on panel so we can have undecored windows
    9.33 +		xid=$(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2)
    9.34 +		pid=$(xprop -id ${xid} _NET_WM_PID | awk '{print $3}')
    9.35 +		kill ${pid} ;;
    9.36 +	*)
    9.37 +		echo "$(basename $0) [setup|kill]" ;;
    9.38 +esac
    9.39 +
    9.40 +exit 0
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/sts/sts-session	Fri Apr 11 00:51:33 2014 +0200
    10.3 @@ -0,0 +1,26 @@
    10.4 +#!/bin/sh
    10.5 +#
    10.6 +# Start SliTaz Tiny/Touch Screens desktop session
    10.7 +#
    10.8 +
    10.9 +export XDG_CONFIG_HOME="$HOME/.config"
   10.10 +export STS_DESKTOP_WM="openbox"
   10.11 +
   10.12 +data="/usr/share/slitaz/sts"
   10.13 +obconf="${XDG_CONFIG_HOME}/openbox"
   10.14 +
   10.15 +# sts-rc.xml
   10.16 +if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then
   10.17 +	mkdir -p ${obconf}
   10.18 +	cp ${data}/openbox/sts-rc.xml ${obconf}
   10.19 +fi
   10.20 +
   10.21 +# sts-autostart
   10.22 +if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then
   10.23 +	cp ${data}/openbox/sts-autostart ${obconf}
   10.24 +fi
   10.25 +
   10.26 +# Start Openbox
   10.27 +exec openbox \
   10.28 +	--config-file ${XDG_CONFIG_HOME}/openbox/sts-rc.xml \
   10.29 +	--startup ${XDG_CONFIG_HOME}/openbox/sts-autostart