sts rev 13
Put all config we can in $HOME/.config/sts, have an icon to show/hide a virtual keyboard
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 28 00:06:11 2014 +0200 (2014-04-28) |
parents | 730a96a62f3d |
children | 1b177a6e3bf7 |
files | applications/sts-keyboard.desktop lxpanel/sts/panels/panel openbox/autostart openbox/rc.xml openbox/sts-autostart openbox/sts-rc.xml sts sts-session |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/applications/sts-keyboard.desktop Mon Apr 28 00:06:11 2014 +0200 1.3 @@ -0,0 +1,7 @@ 1.4 +[Desktop Entry] 1.5 +Type=Application 1.6 +Name=Virtual Keyboard 1.7 +Name[fr]=Clavier virtuel 1.8 +Exec=sts keyboard 1.9 +Icon=preferences-desktop-keyboard 1.10 +StartupNotify=tru
2.1 --- a/lxpanel/sts/panels/panel Sun Apr 27 23:18:13 2014 +0200 2.2 +++ b/lxpanel/sts/panels/panel Mon Apr 28 00:06:11 2014 +0200 2.3 @@ -53,6 +53,15 @@ 2.4 } 2.5 2.6 Plugin { 2.7 + type = launchbar 2.8 + Config { 2.9 + Button { 2.10 + id=/usr/share/applications/sts-keyboard.desktop 2.11 + } 2.12 + } 2.13 +} 2.14 + 2.15 +Plugin { 2.16 type = space 2.17 expand=1 2.18 Config {
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/openbox/autostart Mon Apr 28 00:06:11 2014 +0200 3.3 @@ -0,0 +1,16 @@ 3.4 +# This shell script is run before Openbox launches. 3.5 +# Environment variables set here are passed to the Openbox session. 3.6 + 3.7 +# Start DBUS session. 3.8 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 3.9 + dbus-launch --sh-syntax --exit-with-session & 3.10 +fi 3.11 + 3.12 +# Desktop background 3.13 +hsetroot -fill /usr/share/images/sts-background.jpg & 3.14 + 3.15 +# Desktop panel 3.16 +lxpanel -p sts & 3.17 + 3.18 +# Desktop icons 3.19 +#(sleep 2; idesk &) &
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/openbox/rc.xml Mon Apr 28 00:06:11 2014 +0200 4.3 @@ -0,0 +1,716 @@ 4.4 +<?xml version="1.0" encoding="UTF-8"?> 4.5 +<!-- Do not edit this file, it will be overwritten on install. 4.6 + Copy the file to $HOME/.config/openbox/ instead. --> 4.7 +<openbox_config xmlns="http://openbox.org/3.4/rc"> 4.8 + <resistance> 4.9 + <strength>10</strength> 4.10 + <screen_edge_strength>20</screen_edge_strength> 4.11 + </resistance> 4.12 + <focus> 4.13 + <focusNew>yes</focusNew> 4.14 + <!-- always try to focus new windows when they appear. other rules do 4.15 + apply --> 4.16 + <followMouse>no</followMouse> 4.17 + <!-- move focus to a window when you move the mouse into it --> 4.18 + <focusLast>yes</focusLast> 4.19 + <!-- focus the last used window when changing desktops, instead of the one 4.20 + under the mouse pointer. when followMouse is enabled --> 4.21 + <underMouse>no</underMouse> 4.22 + <!-- move focus under the mouse, even when the mouse is not moving --> 4.23 + <focusDelay>200</focusDelay> 4.24 + <!-- when followMouse is enabled, the mouse must be inside the window for 4.25 + this many milliseconds (1000 = 1 sec) before moving focus to it --> 4.26 + <raiseOnFocus>no</raiseOnFocus> 4.27 + <!-- when followMouse is enabled, and a window is given focus by moving the 4.28 + mouse into it, also raise the window --> 4.29 + </focus> 4.30 + <placement> 4.31 + <policy>Smart</policy> 4.32 + <!-- 'Smart' or 'UnderMouse' --> 4.33 + <center>yes</center> 4.34 + <!-- whether to place windows in the center of the free area found or 4.35 + the top left corner --> 4.36 + <monitor>Any</monitor> 4.37 + <!-- with Smart placement on a multi-monitor system, try to place new windows 4.38 + on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where 4.39 + the active window is --> 4.40 + <primaryMonitor/> 4.41 + </placement> 4.42 + <theme> 4.43 + <name>SliTaz</name> 4.44 + <titleLayout>NLIMC</titleLayout> 4.45 + <!-- 4.46 + available characters are NDSLIMC, each can occur at most once. 4.47 + N: window icon 4.48 + L: window label (AKA title). 4.49 + I: iconify 4.50 + M: maximize 4.51 + C: close 4.52 + S: shade (roll up/down) 4.53 + D: omnipresent (on all desktops). 4.54 + --> 4.55 + <keepBorder>yes</keepBorder> 4.56 + <animateIconify>yes</animateIconify> 4.57 + <font place="ActiveWindow"> 4.58 + <name>Sans</name> 4.59 + <size>8</size> 4.60 + <!-- font size in points --> 4.61 + <weight>Bold</weight> 4.62 + <!-- 'bold' or 'normal' --> 4.63 + <slant>Normal</slant> 4.64 + <!-- 'italic' or 'normal' --> 4.65 + </font> 4.66 + <font place="InactiveWindow"> 4.67 + <name>Sans</name> 4.68 + <size>8</size> 4.69 + <!-- font size in points --> 4.70 + <weight>Bold</weight> 4.71 + <!-- 'bold' or 'normal' --> 4.72 + <slant>Normal</slant> 4.73 + <!-- 'italic' or 'normal' --> 4.74 + </font> 4.75 + <font place="MenuHeader"> 4.76 + <name>Sans</name> 4.77 + <size>10</size> 4.78 + <!-- font size in points --> 4.79 + <weight>Normal</weight> 4.80 + <!-- 'bold' or 'normal' --> 4.81 + <slant>Normal</slant> 4.82 + <!-- 'italic' or 'normal' --> 4.83 + </font> 4.84 + <font place="MenuItem"> 4.85 + <name>Sans</name> 4.86 + <size>11</size> 4.87 + <!-- font size in points --> 4.88 + <weight>Normal</weight> 4.89 + <!-- 'bold' or 'normal' --> 4.90 + <slant>Normal</slant> 4.91 + <!-- 'italic' or 'normal' --> 4.92 + </font> 4.93 + <font place="OnScreenDisplay"> 4.94 + <name>sans</name> 4.95 + <size>14</size> 4.96 + <!-- font size in points --> 4.97 + <weight>bold</weight> 4.98 + <!-- 'bold' or 'normal' --> 4.99 + <slant>normal</slant> 4.100 + <!-- 'italic' or 'normal' --> 4.101 + </font> 4.102 + <font place="ActiveOnScreenDisplay"> 4.103 + <name>Sans</name> 4.104 + <size>16</size> 4.105 + <weight>Normal</weight> 4.106 + <slant>Normal</slant> 4.107 + </font> 4.108 + <font place="InactiveOnScreenDisplay"> 4.109 + <name>Sans</name> 4.110 + <size>8</size> 4.111 + <weight/> 4.112 + <slant/> 4.113 + </font> 4.114 + </theme> 4.115 + <desktops> 4.116 + <!-- this stuff is only used at startup, pagers allow you to change them 4.117 + during a session 4.118 + 4.119 + these are default values to use when other ones are not already set 4.120 + by other applications, or saved in your session 4.121 + 4.122 + use obconf if you want to change these without having to log out 4.123 + and back in --> 4.124 + <number>2</number> 4.125 + <firstdesk>1</firstdesk> 4.126 + <names> 4.127 + <!-- set names up here if you want to, like this: 4.128 + <name>desktop 1</name> 4.129 + <name>desktop 2</name> 4.130 + --> 4.131 + </names> 4.132 + <popupTime>875</popupTime> 4.133 + <!-- The number of milliseconds to show the popup for when switching 4.134 + desktops. Set this to 0 to disable the popup. --> 4.135 + </desktops> 4.136 + <resize> 4.137 + <drawContents>yes</drawContents> 4.138 + <popupShow>Nonpixel</popupShow> 4.139 + <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) --> 4.140 + <popupPosition>Center</popupPosition> 4.141 + <!-- 'Center', 'Top', or 'Fixed' --> 4.142 + <popupFixedPosition> 4.143 + <!-- these are used if popupPosition is set to 'Fixed' --> 4.144 + <x>10</x> 4.145 + <!-- positive number for distance from left edge, negative number for 4.146 + distance from right edge, or 'Center' --> 4.147 + <y>10</y> 4.148 + <!-- positive number for distance from top edge, negative number for 4.149 + distance from bottom edge, or 'Center' --> 4.150 + </popupFixedPosition> 4.151 + </resize> 4.152 + <!-- You can reserve a portion of your screen where windows will not cover when 4.153 + they are maximized, or when they are initially placed. 4.154 + Many programs reserve space automatically, but you can use this in other 4.155 + cases. --> 4.156 + <margins> 4.157 + <top>0</top> 4.158 + <bottom>0</bottom> 4.159 + <left>0</left> 4.160 + <right>0</right> 4.161 + </margins> 4.162 + <dock> 4.163 + <position>TopLeft</position> 4.164 + <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating --> 4.165 + <floatingX>0</floatingX> 4.166 + <floatingY>0</floatingY> 4.167 + <noStrut>no</noStrut> 4.168 + <stacking>Above</stacking> 4.169 + <!-- 'Above', 'Normal', or 'Below' --> 4.170 + <direction>Vertical</direction> 4.171 + <!-- 'Vertical' or 'Horizontal' --> 4.172 + <autoHide>no</autoHide> 4.173 + <hideDelay>300</hideDelay> 4.174 + <!-- in milliseconds (1000 = 1 second) --> 4.175 + <showDelay>300</showDelay> 4.176 + <!-- in milliseconds (1000 = 1 second) --> 4.177 + <moveButton>Middle</moveButton> 4.178 + <!-- 'Left', 'Middle', 'Right' --> 4.179 + </dock> 4.180 + <keyboard> 4.181 + <chainQuitKey>C-g</chainQuitKey> 4.182 + <!-- Keybindings for desktop switching --> 4.183 + <keybind key="C-A-Left"> 4.184 + <action name="DesktopLeft"> 4.185 + <dialog>no</dialog> 4.186 + <wrap>no</wrap> 4.187 + </action> 4.188 + </keybind> 4.189 + <keybind key="C-A-Right"> 4.190 + <action name="DesktopRight"> 4.191 + <dialog>no</dialog> 4.192 + <wrap>no</wrap> 4.193 + </action> 4.194 + </keybind> 4.195 + <keybind key="C-A-Up"> 4.196 + <action name="DesktopUp"> 4.197 + <dialog>no</dialog> 4.198 + <wrap>no</wrap> 4.199 + </action> 4.200 + </keybind> 4.201 + <keybind key="C-A-Down"> 4.202 + <action name="DesktopDown"> 4.203 + <dialog>no</dialog> 4.204 + <wrap>no</wrap> 4.205 + </action> 4.206 + </keybind> 4.207 + <keybind key="S-A-Left"> 4.208 + <action name="SendToDesktopLeft"> 4.209 + <dialog>no</dialog> 4.210 + <wrap>no</wrap> 4.211 + </action> 4.212 + </keybind> 4.213 + <keybind key="S-A-Right"> 4.214 + <action name="SendToDesktopRight"> 4.215 + <dialog>no</dialog> 4.216 + <wrap>no</wrap> 4.217 + </action> 4.218 + </keybind> 4.219 + <keybind key="S-A-Up"> 4.220 + <action name="SendToDesktopUp"> 4.221 + <dialog>no</dialog> 4.222 + <wrap>no</wrap> 4.223 + </action> 4.224 + </keybind> 4.225 + <keybind key="S-A-Down"> 4.226 + <action name="SendToDesktopDown"> 4.227 + <dialog>no</dialog> 4.228 + <wrap>no</wrap> 4.229 + </action> 4.230 + </keybind> 4.231 + <keybind key="W-F1"> 4.232 + <action name="Desktop"> 4.233 + <desktop>1</desktop> 4.234 + </action> 4.235 + </keybind> 4.236 + <keybind key="W-F2"> 4.237 + <action name="Desktop"> 4.238 + <desktop>2</desktop> 4.239 + </action> 4.240 + </keybind> 4.241 + <keybind key="W-F3"> 4.242 + <action name="Desktop"> 4.243 + <desktop>3</desktop> 4.244 + </action> 4.245 + </keybind> 4.246 + <keybind key="W-F4"> 4.247 + <action name="Desktop"> 4.248 + <desktop>4</desktop> 4.249 + </action> 4.250 + </keybind> 4.251 + <keybind key="W-d"> 4.252 + <action name="ToggleShowDesktop"/> 4.253 + </keybind> 4.254 + <!-- Keybindings for windows --> 4.255 + <keybind key="A-F4"> 4.256 + <action name="Close"/> 4.257 + </keybind> 4.258 + <keybind key="A-Escape"> 4.259 + <action name="Lower"/> 4.260 + <action name="FocusToBottom"/> 4.261 + <action name="Unfocus"/> 4.262 + </keybind> 4.263 + <keybind key="A-space"> 4.264 + <action name="ShowMenu"> 4.265 + <menu>client-menu</menu> 4.266 + </action> 4.267 + </keybind> 4.268 + <!-- Keybindings for window switching --> 4.269 + <keybind key="A-Tab"> 4.270 + <action name="NextWindow"/> 4.271 + </keybind> 4.272 + <keybind key="A-S-Tab"> 4.273 + <action name="PreviousWindow"/> 4.274 + </keybind> 4.275 + <keybind key="C-A-Tab"> 4.276 + <action name="NextWindow"> 4.277 + <panels>yes</panels> 4.278 + <desktop>yes</desktop> 4.279 + </action> 4.280 + </keybind> 4.281 + <!-- Keybindings for running applications --> 4.282 + <keybind key="W-e"> 4.283 + <action name="Execute"> 4.284 + <startupnotify> 4.285 + <enabled>true</enabled> 4.286 + <name>App Launcher</name> 4.287 + </startupnotify> 4.288 + <command>lxpanelctl run</command> 4.289 + </action> 4.290 + </keybind> 4.291 + </keyboard> 4.292 + <mouse> 4.293 + <dragThreshold>8</dragThreshold> 4.294 + <!-- number of pixels the mouse must move before a drag begins --> 4.295 + <doubleClickTime>200</doubleClickTime> 4.296 + <!-- in milliseconds (1000 = 1 second) --> 4.297 + <screenEdgeWarpTime>400</screenEdgeWarpTime> 4.298 + <!-- Time before changing desktops when the pointer touches the edge of the 4.299 + screen while moving a window, in milliseconds (1000 = 1 second). 4.300 + Set this to 0 to disable warping --> 4.301 + <context name="Frame"> 4.302 + <mousebind button="A-Left" action="Press"> 4.303 + <action name="Focus"/> 4.304 + <action name="Raise"/> 4.305 + </mousebind> 4.306 + <mousebind button="A-Left" action="Click"> 4.307 + <action name="Unshade"/> 4.308 + </mousebind> 4.309 + <mousebind button="A-Left" action="Drag"> 4.310 + <action name="Move"/> 4.311 + </mousebind> 4.312 + <mousebind button="A-Right" action="Press"> 4.313 + <action name="Focus"/> 4.314 + <action name="Raise"/> 4.315 + <action name="Unshade"/> 4.316 + </mousebind> 4.317 + <mousebind button="A-Right" action="Drag"> 4.318 + <action name="Resize"/> 4.319 + </mousebind> 4.320 + <mousebind button="A-Middle" action="Press"> 4.321 + <action name="Lower"/> 4.322 + <action name="FocusToBottom"/> 4.323 + <action name="Unfocus"/> 4.324 + </mousebind> 4.325 + <mousebind button="A-Up" action="Click"> 4.326 + <action name="DesktopPrevious"/> 4.327 + </mousebind> 4.328 + <mousebind button="A-Down" action="Click"> 4.329 + <action name="DesktopNext"/> 4.330 + </mousebind> 4.331 + <mousebind button="C-A-Up" action="Click"> 4.332 + <action name="DesktopPrevious"/> 4.333 + </mousebind> 4.334 + <mousebind button="C-A-Down" action="Click"> 4.335 + <action name="DesktopNext"/> 4.336 + </mousebind> 4.337 + <mousebind button="A-S-Up" action="Click"> 4.338 + <action name="SendToDesktopPrevious"/> 4.339 + </mousebind> 4.340 + <mousebind button="A-S-Down" action="Click"> 4.341 + <action name="SendToDesktopNext"/> 4.342 + </mousebind> 4.343 + </context> 4.344 + <context name="Titlebar"> 4.345 + <mousebind button="Left" action="Press"> 4.346 + <action name="Focus"/> 4.347 + <action name="Raise"/> 4.348 + </mousebind> 4.349 + <mousebind button="Left" action="Drag"> 4.350 + <action name="Move"/> 4.351 + </mousebind> 4.352 + <mousebind button="Left" action="DoubleClick"> 4.353 + <action name="ToggleMaximizeFull"/> 4.354 + </mousebind> 4.355 + <mousebind button="Middle" action="Press"> 4.356 + <action name="Lower"/> 4.357 + <action name="FocusToBottom"/> 4.358 + <action name="Unfocus"/> 4.359 + </mousebind> 4.360 + <mousebind button="Up" action="Click"> 4.361 + <action name="Shade"/> 4.362 + <action name="FocusToBottom"/> 4.363 + <action name="Unfocus"/> 4.364 + <action name="Lower"/> 4.365 + </mousebind> 4.366 + <mousebind button="Down" action="Click"> 4.367 + <action name="Unshade"/> 4.368 + <action name="Raise"/> 4.369 + </mousebind> 4.370 + <mousebind button="Right" action="Press"> 4.371 + <action name="Focus"/> 4.372 + <action name="Raise"/> 4.373 + <action name="ShowMenu"> 4.374 + <menu>client-menu</menu> 4.375 + </action> 4.376 + </mousebind> 4.377 + </context> 4.378 + <context name="Top"> 4.379 + <mousebind button="Left" action="Press"> 4.380 + <action name="Focus"/> 4.381 + <action name="Raise"/> 4.382 + <action name="Unshade"/> 4.383 + </mousebind> 4.384 + <mousebind button="Left" action="Drag"> 4.385 + <action name="Resize"> 4.386 + <edge>top</edge> 4.387 + </action> 4.388 + </mousebind> 4.389 + </context> 4.390 + <context name="Left"> 4.391 + <mousebind button="Left" action="Press"> 4.392 + <action name="Focus"/> 4.393 + <action name="Raise"/> 4.394 + </mousebind> 4.395 + <mousebind button="Left" action="Drag"> 4.396 + <action name="Resize"> 4.397 + <edge>left</edge> 4.398 + </action> 4.399 + </mousebind> 4.400 + </context> 4.401 + <context name="Right"> 4.402 + <mousebind button="Left" action="Press"> 4.403 + <action name="Focus"/> 4.404 + <action name="Raise"/> 4.405 + </mousebind> 4.406 + <mousebind button="Left" action="Drag"> 4.407 + <action name="Resize"> 4.408 + <edge>right</edge> 4.409 + </action> 4.410 + </mousebind> 4.411 + </context> 4.412 + <context name="Bottom"> 4.413 + <mousebind button="Left" action="Press"> 4.414 + <action name="Focus"/> 4.415 + <action name="Raise"/> 4.416 + </mousebind> 4.417 + <mousebind button="Left" action="Drag"> 4.418 + <action name="Resize"> 4.419 + <edge>bottom</edge> 4.420 + </action> 4.421 + </mousebind> 4.422 + <mousebind button="Middle" action="Press"> 4.423 + <action name="Lower"/> 4.424 + <action name="FocusToBottom"/> 4.425 + <action name="Unfocus"/> 4.426 + </mousebind> 4.427 + <mousebind button="Right" action="Press"> 4.428 + <action name="Focus"/> 4.429 + <action name="Raise"/> 4.430 + <action name="ShowMenu"> 4.431 + <menu>client-menu</menu> 4.432 + </action> 4.433 + </mousebind> 4.434 + </context> 4.435 + <context name="BLCorner"> 4.436 + <mousebind button="Left" action="Press"> 4.437 + <action name="Focus"/> 4.438 + <action name="Raise"/> 4.439 + </mousebind> 4.440 + <mousebind button="Left" action="Drag"> 4.441 + <action name="Resize"/> 4.442 + </mousebind> 4.443 + </context> 4.444 + <context name="BRCorner"> 4.445 + <mousebind button="Left" action="Press"> 4.446 + <action name="Focus"/> 4.447 + <action name="Raise"/> 4.448 + </mousebind> 4.449 + <mousebind button="Left" action="Drag"> 4.450 + <action name="Resize"/> 4.451 + </mousebind> 4.452 + </context> 4.453 + <context name="TLCorner"> 4.454 + <mousebind button="Left" action="Press"> 4.455 + <action name="Focus"/> 4.456 + <action name="Raise"/> 4.457 + <action name="Unshade"/> 4.458 + </mousebind> 4.459 + <mousebind button="Left" action="Drag"> 4.460 + <action name="Resize"/> 4.461 + </mousebind> 4.462 + </context> 4.463 + <context name="TRCorner"> 4.464 + <mousebind button="Left" action="Press"> 4.465 + <action name="Focus"/> 4.466 + <action name="Raise"/> 4.467 + <action name="Unshade"/> 4.468 + </mousebind> 4.469 + <mousebind button="Left" action="Drag"> 4.470 + <action name="Resize"/> 4.471 + </mousebind> 4.472 + </context> 4.473 + <context name="Client"> 4.474 + <mousebind button="Left" action="Press"> 4.475 + <action name="Focus"/> 4.476 + <action name="Raise"/> 4.477 + </mousebind> 4.478 + <mousebind button="Middle" action="Press"> 4.479 + <action name="Focus"/> 4.480 + <action name="Raise"/> 4.481 + </mousebind> 4.482 + <mousebind button="Right" action="Press"> 4.483 + <action name="Focus"/> 4.484 + <action name="Raise"/> 4.485 + </mousebind> 4.486 + </context> 4.487 + <context name="Icon"> 4.488 + <mousebind button="Left" action="Press"> 4.489 + <action name="Focus"/> 4.490 + <action name="Raise"/> 4.491 + <action name="Unshade"/> 4.492 + <action name="ShowMenu"> 4.493 + <menu>client-menu</menu> 4.494 + </action> 4.495 + </mousebind> 4.496 + <mousebind button="Right" action="Press"> 4.497 + <action name="Focus"/> 4.498 + <action name="Raise"/> 4.499 + <action name="ShowMenu"> 4.500 + <menu>client-menu</menu> 4.501 + </action> 4.502 + </mousebind> 4.503 + </context> 4.504 + <context name="AllDesktops"> 4.505 + <mousebind button="Left" action="Press"> 4.506 + <action name="Focus"/> 4.507 + <action name="Raise"/> 4.508 + <action name="Unshade"/> 4.509 + </mousebind> 4.510 + <mousebind button="Left" action="Click"> 4.511 + <action name="ToggleOmnipresent"/> 4.512 + </mousebind> 4.513 + </context> 4.514 + <context name="Shade"> 4.515 + <mousebind button="Left" action="Press"> 4.516 + <action name="Focus"/> 4.517 + <action name="Raise"/> 4.518 + </mousebind> 4.519 + <mousebind button="Left" action="Click"> 4.520 + <action name="ToggleShade"/> 4.521 + </mousebind> 4.522 + </context> 4.523 + <context name="Iconify"> 4.524 + <mousebind button="Left" action="Press"> 4.525 + <action name="Focus"/> 4.526 + <action name="Raise"/> 4.527 + </mousebind> 4.528 + <mousebind button="Left" action="Click"> 4.529 + <action name="Iconify"/> 4.530 + </mousebind> 4.531 + </context> 4.532 + <context name="Maximize"> 4.533 + <mousebind button="Left" action="Press"> 4.534 + <action name="Focus"/> 4.535 + <action name="Raise"/> 4.536 + <action name="Unshade"/> 4.537 + </mousebind> 4.538 + <mousebind button="Middle" action="Press"> 4.539 + <action name="Focus"/> 4.540 + <action name="Raise"/> 4.541 + <action name="Unshade"/> 4.542 + </mousebind> 4.543 + <mousebind button="Right" action="Press"> 4.544 + <action name="Focus"/> 4.545 + <action name="Raise"/> 4.546 + <action name="Unshade"/> 4.547 + </mousebind> 4.548 + <mousebind button="Left" action="Click"> 4.549 + <action name="ToggleMaximizeFull"/> 4.550 + </mousebind> 4.551 + <mousebind button="Middle" action="Click"> 4.552 + <action name="ToggleMaximizeVert"/> 4.553 + </mousebind> 4.554 + <mousebind button="Right" action="Click"> 4.555 + <action name="ToggleMaximizeHorz"/> 4.556 + </mousebind> 4.557 + </context> 4.558 + <context name="Close"> 4.559 + <mousebind button="Left" action="Press"> 4.560 + <action name="Focus"/> 4.561 + <action name="Raise"/> 4.562 + <action name="Unshade"/> 4.563 + </mousebind> 4.564 + <mousebind button="Left" action="Click"> 4.565 + <action name="Close"/> 4.566 + </mousebind> 4.567 + </context> 4.568 + <context name="Desktop"> 4.569 + <mousebind button="Up" action="Click"> 4.570 + <action name="DesktopPrevious"/> 4.571 + </mousebind> 4.572 + <mousebind button="Down" action="Click"> 4.573 + <action name="DesktopNext"/> 4.574 + </mousebind> 4.575 + <mousebind button="A-Up" action="Click"> 4.576 + <action name="DesktopPrevious"/> 4.577 + </mousebind> 4.578 + <mousebind button="A-Down" action="Click"> 4.579 + <action name="DesktopNext"/> 4.580 + </mousebind> 4.581 + <mousebind button="C-A-Up" action="Click"> 4.582 + <action name="DesktopPrevious"/> 4.583 + </mousebind> 4.584 + <mousebind button="C-A-Down" action="Click"> 4.585 + <action name="DesktopNext"/> 4.586 + </mousebind> 4.587 + <mousebind button="Left" action="Press"> 4.588 + <action name="Focus"/> 4.589 + <action name="Raise"/> 4.590 + </mousebind> 4.591 + <mousebind button="Right" action="Press"> 4.592 + <action name="Focus"/> 4.593 + <action name="Raise"/> 4.594 + </mousebind> 4.595 + </context> 4.596 + <context name="Root"> 4.597 + <!-- Menus --> 4.598 + <mousebind button="Middle" action="Press"> 4.599 + <action name="ShowMenu"> 4.600 + <menu>client-list-combined-menu</menu> 4.601 + </action> 4.602 + </mousebind> 4.603 + <mousebind button="Right" action="Press"> 4.604 + <action name="ShowMenu"> 4.605 + <menu>root-menu</menu> 4.606 + </action> 4.607 + </mousebind> 4.608 + </context> 4.609 + <context name="MoveResize"> 4.610 + <mousebind button="Up" action="Click"> 4.611 + <action name="DesktopPrevious"/> 4.612 + </mousebind> 4.613 + <mousebind button="Down" action="Click"> 4.614 + <action name="DesktopNext"/> 4.615 + </mousebind> 4.616 + <mousebind button="A-Up" action="Click"> 4.617 + <action name="DesktopPrevious"/> 4.618 + </mousebind> 4.619 + <mousebind button="A-Down" action="Click"> 4.620 + <action name="DesktopNext"/> 4.621 + </mousebind> 4.622 + </context> 4.623 + </mouse> 4.624 + <menu> 4.625 + <!-- You can specify more than one menu file in here and they are all loaded, 4.626 + just don't make menu ids clash or, well, it'll be kind of pointless --> 4.627 + <!-- default menu file (or custom one in $HOME/.config/openbox/) --> 4.628 + <file>menu.xml</file> 4.629 + <hideDelay>200</hideDelay> 4.630 + <!-- if a press-release lasts longer than this setting (in milliseconds), the 4.631 + menu is hidden again --> 4.632 + <middle>no</middle> 4.633 + <!-- center submenus vertically about the parent entry --> 4.634 + <submenuShowDelay>100</submenuShowDelay> 4.635 + <!-- this one is easy, time to delay before showing a submenu after hovering 4.636 + over the parent entry --> 4.637 + <applicationIcons>yes</applicationIcons> 4.638 + <!-- controls if icons appear in the client-list-(combined-)menu --> 4.639 + <manageDesktops>yes</manageDesktops> 4.640 + <!-- show the manage desktops section in the client-list-(combined-)menu --> 4.641 + </menu> 4.642 + <applications> 4.643 + <application class="*"> 4.644 + <maximized>yes</maximized> 4.645 + <decor>no</decor> 4.646 + </application> 4.647 + <!-- 4.648 + # this is an example with comments through out. use these to make your 4.649 + # own rules, but without the comments of course. 4.650 + 4.651 + <application name="first element of window's WM_CLASS property (see xprop)" 4.652 + class="second element of window's WM_CLASS property (see xprop)" 4.653 + role="the window's WM_WINDOW_ROLE property (see xprop)"> 4.654 + # the name or the class can be set, or both. this is used to match 4.655 + # windows when they appear. role can optionally be set as well, to 4.656 + # further restrict your matches. 4.657 + 4.658 + # the name, class, and role use simple wildcard matching such as those 4.659 + # used by a shell. you can use * to match any characters and ? to match 4.660 + # any single character. 4.661 + 4.662 + # when multiple rules match a window, they will all be applied, in the 4.663 + # order that they appear in this list 4.664 + 4.665 + 4.666 + # each element can be left out or set to 'default' to specify to not 4.667 + # change that attribute of the window 4.668 + 4.669 + <decor>yes</decor> 4.670 + # enable or disable window decorations 4.671 + 4.672 + <shade>no</shade> 4.673 + # make the window shaded when it appears, or not 4.674 + 4.675 + <position> 4.676 + # the position is only used if both an x and y coordinate are provided 4.677 + # (and not set to 'default') 4.678 + <x>center</x> 4.679 + # a number like 50, or 'center' to center on screen. use a negative number 4.680 + # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the 4.681 + # right edge (or bottom). 4.682 + <y>200</y> 4.683 + <monitor>1</monitor> 4.684 + # specifies the monitor in a xinerama setup. 4.685 + # 1 is the first head, or 'mouse' for wherever the mouse is 4.686 + </position> 4.687 + 4.688 + <focus>yes</focus> 4.689 + # if the window should try be given focus when it appears. if this is set 4.690 + # to yes it doesn't guarantee the window will be given focus. some 4.691 + # restrictions may apply, but Openbox will try to 4.692 + 4.693 + <desktop>1</desktop> 4.694 + # 1 is the first desktop, 'all' for all desktops 4.695 + 4.696 + <layer>normal</layer> 4.697 + # 'above', 'normal', or 'below' 4.698 + 4.699 + <iconic>no</iconic> 4.700 + # make the window iconified when it appears, or not 4.701 + 4.702 + <skip_pager>no</skip_pager> 4.703 + # asks to not be shown in pagers 4.704 + 4.705 + <skip_taskbar>no</skip_taskbar> 4.706 + # asks to not be shown in taskbars. window cycling actions will also 4.707 + # skip past such windows 4.708 + 4.709 + <fullscreen>yes</fullscreen> 4.710 + # make the window in fullscreen mode when it appears 4.711 + 4.712 + <maximized>true</maximized> 4.713 + # 'Horizontal', 'Vertical' or boolean (yes/no) 4.714 + </application> 4.715 + 4.716 + # end of the example 4.717 +--> 4.718 + </applications> 4.719 +</openbox_config>
5.1 --- a/openbox/sts-autostart Sun Apr 27 23:18:13 2014 +0200 5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 5.3 @@ -1,16 +0,0 @@ 5.4 -# This shell script is run before Openbox launches. 5.5 -# Environment variables set here are passed to the Openbox session. 5.6 - 5.7 -# Start DBUS session. 5.8 -if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 5.9 - dbus-launch --sh-syntax --exit-with-session & 5.10 -fi 5.11 - 5.12 -# Desktop background 5.13 -hsetroot -fill /usr/share/images/sts-background.jpg & 5.14 - 5.15 -# Desktop panel 5.16 -lxpanel -p sts & 5.17 - 5.18 -# Desktop icons 5.19 -#(sleep 2; idesk &) &
6.1 --- a/openbox/sts-rc.xml Sun Apr 27 23:18:13 2014 +0200 6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 6.3 @@ -1,716 +0,0 @@ 6.4 -<?xml version="1.0" encoding="UTF-8"?> 6.5 -<!-- Do not edit this file, it will be overwritten on install. 6.6 - Copy the file to $HOME/.config/openbox/ instead. --> 6.7 -<openbox_config xmlns="http://openbox.org/3.4/rc"> 6.8 - <resistance> 6.9 - <strength>10</strength> 6.10 - <screen_edge_strength>20</screen_edge_strength> 6.11 - </resistance> 6.12 - <focus> 6.13 - <focusNew>yes</focusNew> 6.14 - <!-- always try to focus new windows when they appear. other rules do 6.15 - apply --> 6.16 - <followMouse>no</followMouse> 6.17 - <!-- move focus to a window when you move the mouse into it --> 6.18 - <focusLast>yes</focusLast> 6.19 - <!-- focus the last used window when changing desktops, instead of the one 6.20 - under the mouse pointer. when followMouse is enabled --> 6.21 - <underMouse>no</underMouse> 6.22 - <!-- move focus under the mouse, even when the mouse is not moving --> 6.23 - <focusDelay>200</focusDelay> 6.24 - <!-- when followMouse is enabled, the mouse must be inside the window for 6.25 - this many milliseconds (1000 = 1 sec) before moving focus to it --> 6.26 - <raiseOnFocus>no</raiseOnFocus> 6.27 - <!-- when followMouse is enabled, and a window is given focus by moving the 6.28 - mouse into it, also raise the window --> 6.29 - </focus> 6.30 - <placement> 6.31 - <policy>Smart</policy> 6.32 - <!-- 'Smart' or 'UnderMouse' --> 6.33 - <center>yes</center> 6.34 - <!-- whether to place windows in the center of the free area found or 6.35 - the top left corner --> 6.36 - <monitor>Any</monitor> 6.37 - <!-- with Smart placement on a multi-monitor system, try to place new windows 6.38 - on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where 6.39 - the active window is --> 6.40 - <primaryMonitor/> 6.41 - </placement> 6.42 - <theme> 6.43 - <name>SliTaz</name> 6.44 - <titleLayout>NLIMC</titleLayout> 6.45 - <!-- 6.46 - available characters are NDSLIMC, each can occur at most once. 6.47 - N: window icon 6.48 - L: window label (AKA title). 6.49 - I: iconify 6.50 - M: maximize 6.51 - C: close 6.52 - S: shade (roll up/down) 6.53 - D: omnipresent (on all desktops). 6.54 - --> 6.55 - <keepBorder>yes</keepBorder> 6.56 - <animateIconify>yes</animateIconify> 6.57 - <font place="ActiveWindow"> 6.58 - <name>Sans</name> 6.59 - <size>8</size> 6.60 - <!-- font size in points --> 6.61 - <weight>Bold</weight> 6.62 - <!-- 'bold' or 'normal' --> 6.63 - <slant>Normal</slant> 6.64 - <!-- 'italic' or 'normal' --> 6.65 - </font> 6.66 - <font place="InactiveWindow"> 6.67 - <name>Sans</name> 6.68 - <size>8</size> 6.69 - <!-- font size in points --> 6.70 - <weight>Bold</weight> 6.71 - <!-- 'bold' or 'normal' --> 6.72 - <slant>Normal</slant> 6.73 - <!-- 'italic' or 'normal' --> 6.74 - </font> 6.75 - <font place="MenuHeader"> 6.76 - <name>Sans</name> 6.77 - <size>10</size> 6.78 - <!-- font size in points --> 6.79 - <weight>Normal</weight> 6.80 - <!-- 'bold' or 'normal' --> 6.81 - <slant>Normal</slant> 6.82 - <!-- 'italic' or 'normal' --> 6.83 - </font> 6.84 - <font place="MenuItem"> 6.85 - <name>Sans</name> 6.86 - <size>11</size> 6.87 - <!-- font size in points --> 6.88 - <weight>Normal</weight> 6.89 - <!-- 'bold' or 'normal' --> 6.90 - <slant>Normal</slant> 6.91 - <!-- 'italic' or 'normal' --> 6.92 - </font> 6.93 - <font place="OnScreenDisplay"> 6.94 - <name>sans</name> 6.95 - <size>14</size> 6.96 - <!-- font size in points --> 6.97 - <weight>bold</weight> 6.98 - <!-- 'bold' or 'normal' --> 6.99 - <slant>normal</slant> 6.100 - <!-- 'italic' or 'normal' --> 6.101 - </font> 6.102 - <font place="ActiveOnScreenDisplay"> 6.103 - <name>Sans</name> 6.104 - <size>16</size> 6.105 - <weight>Normal</weight> 6.106 - <slant>Normal</slant> 6.107 - </font> 6.108 - <font place="InactiveOnScreenDisplay"> 6.109 - <name>Sans</name> 6.110 - <size>8</size> 6.111 - <weight/> 6.112 - <slant/> 6.113 - </font> 6.114 - </theme> 6.115 - <desktops> 6.116 - <!-- this stuff is only used at startup, pagers allow you to change them 6.117 - during a session 6.118 - 6.119 - these are default values to use when other ones are not already set 6.120 - by other applications, or saved in your session 6.121 - 6.122 - use obconf if you want to change these without having to log out 6.123 - and back in --> 6.124 - <number>2</number> 6.125 - <firstdesk>1</firstdesk> 6.126 - <names> 6.127 - <!-- set names up here if you want to, like this: 6.128 - <name>desktop 1</name> 6.129 - <name>desktop 2</name> 6.130 - --> 6.131 - </names> 6.132 - <popupTime>875</popupTime> 6.133 - <!-- The number of milliseconds to show the popup for when switching 6.134 - desktops. Set this to 0 to disable the popup. --> 6.135 - </desktops> 6.136 - <resize> 6.137 - <drawContents>yes</drawContents> 6.138 - <popupShow>Nonpixel</popupShow> 6.139 - <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) --> 6.140 - <popupPosition>Center</popupPosition> 6.141 - <!-- 'Center', 'Top', or 'Fixed' --> 6.142 - <popupFixedPosition> 6.143 - <!-- these are used if popupPosition is set to 'Fixed' --> 6.144 - <x>10</x> 6.145 - <!-- positive number for distance from left edge, negative number for 6.146 - distance from right edge, or 'Center' --> 6.147 - <y>10</y> 6.148 - <!-- positive number for distance from top edge, negative number for 6.149 - distance from bottom edge, or 'Center' --> 6.150 - </popupFixedPosition> 6.151 - </resize> 6.152 - <!-- You can reserve a portion of your screen where windows will not cover when 6.153 - they are maximized, or when they are initially placed. 6.154 - Many programs reserve space automatically, but you can use this in other 6.155 - cases. --> 6.156 - <margins> 6.157 - <top>0</top> 6.158 - <bottom>0</bottom> 6.159 - <left>0</left> 6.160 - <right>0</right> 6.161 - </margins> 6.162 - <dock> 6.163 - <position>TopLeft</position> 6.164 - <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating --> 6.165 - <floatingX>0</floatingX> 6.166 - <floatingY>0</floatingY> 6.167 - <noStrut>no</noStrut> 6.168 - <stacking>Above</stacking> 6.169 - <!-- 'Above', 'Normal', or 'Below' --> 6.170 - <direction>Vertical</direction> 6.171 - <!-- 'Vertical' or 'Horizontal' --> 6.172 - <autoHide>no</autoHide> 6.173 - <hideDelay>300</hideDelay> 6.174 - <!-- in milliseconds (1000 = 1 second) --> 6.175 - <showDelay>300</showDelay> 6.176 - <!-- in milliseconds (1000 = 1 second) --> 6.177 - <moveButton>Middle</moveButton> 6.178 - <!-- 'Left', 'Middle', 'Right' --> 6.179 - </dock> 6.180 - <keyboard> 6.181 - <chainQuitKey>C-g</chainQuitKey> 6.182 - <!-- Keybindings for desktop switching --> 6.183 - <keybind key="C-A-Left"> 6.184 - <action name="DesktopLeft"> 6.185 - <dialog>no</dialog> 6.186 - <wrap>no</wrap> 6.187 - </action> 6.188 - </keybind> 6.189 - <keybind key="C-A-Right"> 6.190 - <action name="DesktopRight"> 6.191 - <dialog>no</dialog> 6.192 - <wrap>no</wrap> 6.193 - </action> 6.194 - </keybind> 6.195 - <keybind key="C-A-Up"> 6.196 - <action name="DesktopUp"> 6.197 - <dialog>no</dialog> 6.198 - <wrap>no</wrap> 6.199 - </action> 6.200 - </keybind> 6.201 - <keybind key="C-A-Down"> 6.202 - <action name="DesktopDown"> 6.203 - <dialog>no</dialog> 6.204 - <wrap>no</wrap> 6.205 - </action> 6.206 - </keybind> 6.207 - <keybind key="S-A-Left"> 6.208 - <action name="SendToDesktopLeft"> 6.209 - <dialog>no</dialog> 6.210 - <wrap>no</wrap> 6.211 - </action> 6.212 - </keybind> 6.213 - <keybind key="S-A-Right"> 6.214 - <action name="SendToDesktopRight"> 6.215 - <dialog>no</dialog> 6.216 - <wrap>no</wrap> 6.217 - </action> 6.218 - </keybind> 6.219 - <keybind key="S-A-Up"> 6.220 - <action name="SendToDesktopUp"> 6.221 - <dialog>no</dialog> 6.222 - <wrap>no</wrap> 6.223 - </action> 6.224 - </keybind> 6.225 - <keybind key="S-A-Down"> 6.226 - <action name="SendToDesktopDown"> 6.227 - <dialog>no</dialog> 6.228 - <wrap>no</wrap> 6.229 - </action> 6.230 - </keybind> 6.231 - <keybind key="W-F1"> 6.232 - <action name="Desktop"> 6.233 - <desktop>1</desktop> 6.234 - </action> 6.235 - </keybind> 6.236 - <keybind key="W-F2"> 6.237 - <action name="Desktop"> 6.238 - <desktop>2</desktop> 6.239 - </action> 6.240 - </keybind> 6.241 - <keybind key="W-F3"> 6.242 - <action name="Desktop"> 6.243 - <desktop>3</desktop> 6.244 - </action> 6.245 - </keybind> 6.246 - <keybind key="W-F4"> 6.247 - <action name="Desktop"> 6.248 - <desktop>4</desktop> 6.249 - </action> 6.250 - </keybind> 6.251 - <keybind key="W-d"> 6.252 - <action name="ToggleShowDesktop"/> 6.253 - </keybind> 6.254 - <!-- Keybindings for windows --> 6.255 - <keybind key="A-F4"> 6.256 - <action name="Close"/> 6.257 - </keybind> 6.258 - <keybind key="A-Escape"> 6.259 - <action name="Lower"/> 6.260 - <action name="FocusToBottom"/> 6.261 - <action name="Unfocus"/> 6.262 - </keybind> 6.263 - <keybind key="A-space"> 6.264 - <action name="ShowMenu"> 6.265 - <menu>client-menu</menu> 6.266 - </action> 6.267 - </keybind> 6.268 - <!-- Keybindings for window switching --> 6.269 - <keybind key="A-Tab"> 6.270 - <action name="NextWindow"/> 6.271 - </keybind> 6.272 - <keybind key="A-S-Tab"> 6.273 - <action name="PreviousWindow"/> 6.274 - </keybind> 6.275 - <keybind key="C-A-Tab"> 6.276 - <action name="NextWindow"> 6.277 - <panels>yes</panels> 6.278 - <desktop>yes</desktop> 6.279 - </action> 6.280 - </keybind> 6.281 - <!-- Keybindings for running applications --> 6.282 - <keybind key="W-e"> 6.283 - <action name="Execute"> 6.284 - <startupnotify> 6.285 - <enabled>true</enabled> 6.286 - <name>App Launcher</name> 6.287 - </startupnotify> 6.288 - <command>lxpanelctl run</command> 6.289 - </action> 6.290 - </keybind> 6.291 - </keyboard> 6.292 - <mouse> 6.293 - <dragThreshold>8</dragThreshold> 6.294 - <!-- number of pixels the mouse must move before a drag begins --> 6.295 - <doubleClickTime>200</doubleClickTime> 6.296 - <!-- in milliseconds (1000 = 1 second) --> 6.297 - <screenEdgeWarpTime>400</screenEdgeWarpTime> 6.298 - <!-- Time before changing desktops when the pointer touches the edge of the 6.299 - screen while moving a window, in milliseconds (1000 = 1 second). 6.300 - Set this to 0 to disable warping --> 6.301 - <context name="Frame"> 6.302 - <mousebind button="A-Left" action="Press"> 6.303 - <action name="Focus"/> 6.304 - <action name="Raise"/> 6.305 - </mousebind> 6.306 - <mousebind button="A-Left" action="Click"> 6.307 - <action name="Unshade"/> 6.308 - </mousebind> 6.309 - <mousebind button="A-Left" action="Drag"> 6.310 - <action name="Move"/> 6.311 - </mousebind> 6.312 - <mousebind button="A-Right" action="Press"> 6.313 - <action name="Focus"/> 6.314 - <action name="Raise"/> 6.315 - <action name="Unshade"/> 6.316 - </mousebind> 6.317 - <mousebind button="A-Right" action="Drag"> 6.318 - <action name="Resize"/> 6.319 - </mousebind> 6.320 - <mousebind button="A-Middle" action="Press"> 6.321 - <action name="Lower"/> 6.322 - <action name="FocusToBottom"/> 6.323 - <action name="Unfocus"/> 6.324 - </mousebind> 6.325 - <mousebind button="A-Up" action="Click"> 6.326 - <action name="DesktopPrevious"/> 6.327 - </mousebind> 6.328 - <mousebind button="A-Down" action="Click"> 6.329 - <action name="DesktopNext"/> 6.330 - </mousebind> 6.331 - <mousebind button="C-A-Up" action="Click"> 6.332 - <action name="DesktopPrevious"/> 6.333 - </mousebind> 6.334 - <mousebind button="C-A-Down" action="Click"> 6.335 - <action name="DesktopNext"/> 6.336 - </mousebind> 6.337 - <mousebind button="A-S-Up" action="Click"> 6.338 - <action name="SendToDesktopPrevious"/> 6.339 - </mousebind> 6.340 - <mousebind button="A-S-Down" action="Click"> 6.341 - <action name="SendToDesktopNext"/> 6.342 - </mousebind> 6.343 - </context> 6.344 - <context name="Titlebar"> 6.345 - <mousebind button="Left" action="Press"> 6.346 - <action name="Focus"/> 6.347 - <action name="Raise"/> 6.348 - </mousebind> 6.349 - <mousebind button="Left" action="Drag"> 6.350 - <action name="Move"/> 6.351 - </mousebind> 6.352 - <mousebind button="Left" action="DoubleClick"> 6.353 - <action name="ToggleMaximizeFull"/> 6.354 - </mousebind> 6.355 - <mousebind button="Middle" action="Press"> 6.356 - <action name="Lower"/> 6.357 - <action name="FocusToBottom"/> 6.358 - <action name="Unfocus"/> 6.359 - </mousebind> 6.360 - <mousebind button="Up" action="Click"> 6.361 - <action name="Shade"/> 6.362 - <action name="FocusToBottom"/> 6.363 - <action name="Unfocus"/> 6.364 - <action name="Lower"/> 6.365 - </mousebind> 6.366 - <mousebind button="Down" action="Click"> 6.367 - <action name="Unshade"/> 6.368 - <action name="Raise"/> 6.369 - </mousebind> 6.370 - <mousebind button="Right" action="Press"> 6.371 - <action name="Focus"/> 6.372 - <action name="Raise"/> 6.373 - <action name="ShowMenu"> 6.374 - <menu>client-menu</menu> 6.375 - </action> 6.376 - </mousebind> 6.377 - </context> 6.378 - <context name="Top"> 6.379 - <mousebind button="Left" action="Press"> 6.380 - <action name="Focus"/> 6.381 - <action name="Raise"/> 6.382 - <action name="Unshade"/> 6.383 - </mousebind> 6.384 - <mousebind button="Left" action="Drag"> 6.385 - <action name="Resize"> 6.386 - <edge>top</edge> 6.387 - </action> 6.388 - </mousebind> 6.389 - </context> 6.390 - <context name="Left"> 6.391 - <mousebind button="Left" action="Press"> 6.392 - <action name="Focus"/> 6.393 - <action name="Raise"/> 6.394 - </mousebind> 6.395 - <mousebind button="Left" action="Drag"> 6.396 - <action name="Resize"> 6.397 - <edge>left</edge> 6.398 - </action> 6.399 - </mousebind> 6.400 - </context> 6.401 - <context name="Right"> 6.402 - <mousebind button="Left" action="Press"> 6.403 - <action name="Focus"/> 6.404 - <action name="Raise"/> 6.405 - </mousebind> 6.406 - <mousebind button="Left" action="Drag"> 6.407 - <action name="Resize"> 6.408 - <edge>right</edge> 6.409 - </action> 6.410 - </mousebind> 6.411 - </context> 6.412 - <context name="Bottom"> 6.413 - <mousebind button="Left" action="Press"> 6.414 - <action name="Focus"/> 6.415 - <action name="Raise"/> 6.416 - </mousebind> 6.417 - <mousebind button="Left" action="Drag"> 6.418 - <action name="Resize"> 6.419 - <edge>bottom</edge> 6.420 - </action> 6.421 - </mousebind> 6.422 - <mousebind button="Middle" action="Press"> 6.423 - <action name="Lower"/> 6.424 - <action name="FocusToBottom"/> 6.425 - <action name="Unfocus"/> 6.426 - </mousebind> 6.427 - <mousebind button="Right" action="Press"> 6.428 - <action name="Focus"/> 6.429 - <action name="Raise"/> 6.430 - <action name="ShowMenu"> 6.431 - <menu>client-menu</menu> 6.432 - </action> 6.433 - </mousebind> 6.434 - </context> 6.435 - <context name="BLCorner"> 6.436 - <mousebind button="Left" action="Press"> 6.437 - <action name="Focus"/> 6.438 - <action name="Raise"/> 6.439 - </mousebind> 6.440 - <mousebind button="Left" action="Drag"> 6.441 - <action name="Resize"/> 6.442 - </mousebind> 6.443 - </context> 6.444 - <context name="BRCorner"> 6.445 - <mousebind button="Left" action="Press"> 6.446 - <action name="Focus"/> 6.447 - <action name="Raise"/> 6.448 - </mousebind> 6.449 - <mousebind button="Left" action="Drag"> 6.450 - <action name="Resize"/> 6.451 - </mousebind> 6.452 - </context> 6.453 - <context name="TLCorner"> 6.454 - <mousebind button="Left" action="Press"> 6.455 - <action name="Focus"/> 6.456 - <action name="Raise"/> 6.457 - <action name="Unshade"/> 6.458 - </mousebind> 6.459 - <mousebind button="Left" action="Drag"> 6.460 - <action name="Resize"/> 6.461 - </mousebind> 6.462 - </context> 6.463 - <context name="TRCorner"> 6.464 - <mousebind button="Left" action="Press"> 6.465 - <action name="Focus"/> 6.466 - <action name="Raise"/> 6.467 - <action name="Unshade"/> 6.468 - </mousebind> 6.469 - <mousebind button="Left" action="Drag"> 6.470 - <action name="Resize"/> 6.471 - </mousebind> 6.472 - </context> 6.473 - <context name="Client"> 6.474 - <mousebind button="Left" action="Press"> 6.475 - <action name="Focus"/> 6.476 - <action name="Raise"/> 6.477 - </mousebind> 6.478 - <mousebind button="Middle" action="Press"> 6.479 - <action name="Focus"/> 6.480 - <action name="Raise"/> 6.481 - </mousebind> 6.482 - <mousebind button="Right" action="Press"> 6.483 - <action name="Focus"/> 6.484 - <action name="Raise"/> 6.485 - </mousebind> 6.486 - </context> 6.487 - <context name="Icon"> 6.488 - <mousebind button="Left" action="Press"> 6.489 - <action name="Focus"/> 6.490 - <action name="Raise"/> 6.491 - <action name="Unshade"/> 6.492 - <action name="ShowMenu"> 6.493 - <menu>client-menu</menu> 6.494 - </action> 6.495 - </mousebind> 6.496 - <mousebind button="Right" action="Press"> 6.497 - <action name="Focus"/> 6.498 - <action name="Raise"/> 6.499 - <action name="ShowMenu"> 6.500 - <menu>client-menu</menu> 6.501 - </action> 6.502 - </mousebind> 6.503 - </context> 6.504 - <context name="AllDesktops"> 6.505 - <mousebind button="Left" action="Press"> 6.506 - <action name="Focus"/> 6.507 - <action name="Raise"/> 6.508 - <action name="Unshade"/> 6.509 - </mousebind> 6.510 - <mousebind button="Left" action="Click"> 6.511 - <action name="ToggleOmnipresent"/> 6.512 - </mousebind> 6.513 - </context> 6.514 - <context name="Shade"> 6.515 - <mousebind button="Left" action="Press"> 6.516 - <action name="Focus"/> 6.517 - <action name="Raise"/> 6.518 - </mousebind> 6.519 - <mousebind button="Left" action="Click"> 6.520 - <action name="ToggleShade"/> 6.521 - </mousebind> 6.522 - </context> 6.523 - <context name="Iconify"> 6.524 - <mousebind button="Left" action="Press"> 6.525 - <action name="Focus"/> 6.526 - <action name="Raise"/> 6.527 - </mousebind> 6.528 - <mousebind button="Left" action="Click"> 6.529 - <action name="Iconify"/> 6.530 - </mousebind> 6.531 - </context> 6.532 - <context name="Maximize"> 6.533 - <mousebind button="Left" action="Press"> 6.534 - <action name="Focus"/> 6.535 - <action name="Raise"/> 6.536 - <action name="Unshade"/> 6.537 - </mousebind> 6.538 - <mousebind button="Middle" action="Press"> 6.539 - <action name="Focus"/> 6.540 - <action name="Raise"/> 6.541 - <action name="Unshade"/> 6.542 - </mousebind> 6.543 - <mousebind button="Right" action="Press"> 6.544 - <action name="Focus"/> 6.545 - <action name="Raise"/> 6.546 - <action name="Unshade"/> 6.547 - </mousebind> 6.548 - <mousebind button="Left" action="Click"> 6.549 - <action name="ToggleMaximizeFull"/> 6.550 - </mousebind> 6.551 - <mousebind button="Middle" action="Click"> 6.552 - <action name="ToggleMaximizeVert"/> 6.553 - </mousebind> 6.554 - <mousebind button="Right" action="Click"> 6.555 - <action name="ToggleMaximizeHorz"/> 6.556 - </mousebind> 6.557 - </context> 6.558 - <context name="Close"> 6.559 - <mousebind button="Left" action="Press"> 6.560 - <action name="Focus"/> 6.561 - <action name="Raise"/> 6.562 - <action name="Unshade"/> 6.563 - </mousebind> 6.564 - <mousebind button="Left" action="Click"> 6.565 - <action name="Close"/> 6.566 - </mousebind> 6.567 - </context> 6.568 - <context name="Desktop"> 6.569 - <mousebind button="Up" action="Click"> 6.570 - <action name="DesktopPrevious"/> 6.571 - </mousebind> 6.572 - <mousebind button="Down" action="Click"> 6.573 - <action name="DesktopNext"/> 6.574 - </mousebind> 6.575 - <mousebind button="A-Up" action="Click"> 6.576 - <action name="DesktopPrevious"/> 6.577 - </mousebind> 6.578 - <mousebind button="A-Down" action="Click"> 6.579 - <action name="DesktopNext"/> 6.580 - </mousebind> 6.581 - <mousebind button="C-A-Up" action="Click"> 6.582 - <action name="DesktopPrevious"/> 6.583 - </mousebind> 6.584 - <mousebind button="C-A-Down" action="Click"> 6.585 - <action name="DesktopNext"/> 6.586 - </mousebind> 6.587 - <mousebind button="Left" action="Press"> 6.588 - <action name="Focus"/> 6.589 - <action name="Raise"/> 6.590 - </mousebind> 6.591 - <mousebind button="Right" action="Press"> 6.592 - <action name="Focus"/> 6.593 - <action name="Raise"/> 6.594 - </mousebind> 6.595 - </context> 6.596 - <context name="Root"> 6.597 - <!-- Menus --> 6.598 - <mousebind button="Middle" action="Press"> 6.599 - <action name="ShowMenu"> 6.600 - <menu>client-list-combined-menu</menu> 6.601 - </action> 6.602 - </mousebind> 6.603 - <mousebind button="Right" action="Press"> 6.604 - <action name="ShowMenu"> 6.605 - <menu>root-menu</menu> 6.606 - </action> 6.607 - </mousebind> 6.608 - </context> 6.609 - <context name="MoveResize"> 6.610 - <mousebind button="Up" action="Click"> 6.611 - <action name="DesktopPrevious"/> 6.612 - </mousebind> 6.613 - <mousebind button="Down" action="Click"> 6.614 - <action name="DesktopNext"/> 6.615 - </mousebind> 6.616 - <mousebind button="A-Up" action="Click"> 6.617 - <action name="DesktopPrevious"/> 6.618 - </mousebind> 6.619 - <mousebind button="A-Down" action="Click"> 6.620 - <action name="DesktopNext"/> 6.621 - </mousebind> 6.622 - </context> 6.623 - </mouse> 6.624 - <menu> 6.625 - <!-- You can specify more than one menu file in here and they are all loaded, 6.626 - just don't make menu ids clash or, well, it'll be kind of pointless --> 6.627 - <!-- default menu file (or custom one in $HOME/.config/openbox/) --> 6.628 - <file>menu.xml</file> 6.629 - <hideDelay>200</hideDelay> 6.630 - <!-- if a press-release lasts longer than this setting (in milliseconds), the 6.631 - menu is hidden again --> 6.632 - <middle>no</middle> 6.633 - <!-- center submenus vertically about the parent entry --> 6.634 - <submenuShowDelay>100</submenuShowDelay> 6.635 - <!-- this one is easy, time to delay before showing a submenu after hovering 6.636 - over the parent entry --> 6.637 - <applicationIcons>yes</applicationIcons> 6.638 - <!-- controls if icons appear in the client-list-(combined-)menu --> 6.639 - <manageDesktops>yes</manageDesktops> 6.640 - <!-- show the manage desktops section in the client-list-(combined-)menu --> 6.641 - </menu> 6.642 - <applications> 6.643 - <application class="*"> 6.644 - <maximized>yes</maximized> 6.645 - <decor>no</decor> 6.646 - </application> 6.647 - <!-- 6.648 - # this is an example with comments through out. use these to make your 6.649 - # own rules, but without the comments of course. 6.650 - 6.651 - <application name="first element of window's WM_CLASS property (see xprop)" 6.652 - class="second element of window's WM_CLASS property (see xprop)" 6.653 - role="the window's WM_WINDOW_ROLE property (see xprop)"> 6.654 - # the name or the class can be set, or both. this is used to match 6.655 - # windows when they appear. role can optionally be set as well, to 6.656 - # further restrict your matches. 6.657 - 6.658 - # the name, class, and role use simple wildcard matching such as those 6.659 - # used by a shell. you can use * to match any characters and ? to match 6.660 - # any single character. 6.661 - 6.662 - # when multiple rules match a window, they will all be applied, in the 6.663 - # order that they appear in this list 6.664 - 6.665 - 6.666 - # each element can be left out or set to 'default' to specify to not 6.667 - # change that attribute of the window 6.668 - 6.669 - <decor>yes</decor> 6.670 - # enable or disable window decorations 6.671 - 6.672 - <shade>no</shade> 6.673 - # make the window shaded when it appears, or not 6.674 - 6.675 - <position> 6.676 - # the position is only used if both an x and y coordinate are provided 6.677 - # (and not set to 'default') 6.678 - <x>center</x> 6.679 - # a number like 50, or 'center' to center on screen. use a negative number 6.680 - # to start from the right (or bottom for <y>), ie -50 is 50 pixels from the 6.681 - # right edge (or bottom). 6.682 - <y>200</y> 6.683 - <monitor>1</monitor> 6.684 - # specifies the monitor in a xinerama setup. 6.685 - # 1 is the first head, or 'mouse' for wherever the mouse is 6.686 - </position> 6.687 - 6.688 - <focus>yes</focus> 6.689 - # if the window should try be given focus when it appears. if this is set 6.690 - # to yes it doesn't guarantee the window will be given focus. some 6.691 - # restrictions may apply, but Openbox will try to 6.692 - 6.693 - <desktop>1</desktop> 6.694 - # 1 is the first desktop, 'all' for all desktops 6.695 - 6.696 - <layer>normal</layer> 6.697 - # 'above', 'normal', or 'below' 6.698 - 6.699 - <iconic>no</iconic> 6.700 - # make the window iconified when it appears, or not 6.701 - 6.702 - <skip_pager>no</skip_pager> 6.703 - # asks to not be shown in pagers 6.704 - 6.705 - <skip_taskbar>no</skip_taskbar> 6.706 - # asks to not be shown in taskbars. window cycling actions will also 6.707 - # skip past such windows 6.708 - 6.709 - <fullscreen>yes</fullscreen> 6.710 - # make the window in fullscreen mode when it appears 6.711 - 6.712 - <maximized>true</maximized> 6.713 - # 'Horizontal', 'Vertical' or boolean (yes/no) 6.714 - </application> 6.715 - 6.716 - # end of the example 6.717 ---> 6.718 - </applications> 6.719 -</openbox_config>
7.1 --- a/sts Sun Apr 27 23:18:13 2014 +0200 7.2 +++ b/sts Mon Apr 28 00:06:11 2014 +0200 7.3 @@ -7,31 +7,40 @@ 7.4 # 7.5 7.6 data="/usr/share/slitaz/sts" 7.7 -obconf="${XDG_CONFIG_HOME}/openbox" 7.8 7.9 case "$1" in 7.10 info) 7.11 if [ "$STS_DESKTOP_WM" ]; then 7.12 echo "STS_DESKTOP_WM : $STS_DESKTOP_WM" 7.13 + echo "STS_DESKTOP_ID : $STS_DESKTOP_ID" 7.14 else 7.15 echo "The sts desktop is not running" 7.16 fi ;; 7.17 - setup) 7.18 - # Setup a user session. Openbox configs are setup by sts-session 7.19 + 7.20 + update) 7.21 + # Update a user session. Openbox configs are setup by sts-session 7.22 # but on a system update only $data files are updated so users may 7.23 - # want to get latest configs with --forced from cmdline or via a 7.24 - # GUI box. 7.25 - 7.26 - # sed -i "//sts-session/" ${XDG_CONFIG_HOME}/slitaz/applications.conf 7.27 - user=$(id -un) 7.28 - echo "TODO: sorry $user" ;; 7.29 + # want to get latest configs. 7.30 + rm -rf ${XDG_CONFIG_HOME}/sts 7.31 + rm -rf ${XDG_CONFIG_HOME}/lxpanel/sts 7.32 + echo "Please logout and login again our STS session" ;; 7.33 + 7.34 kill) 7.35 # Close button on panel so we can have undecorated windows 7.36 xid=$(xprop -root 32x '\t$0' _NET_ACTIVE_WINDOW | cut -f 2) 7.37 pid=$(xprop -id ${xid} _NET_WM_PID | awk '{print $3}') 7.38 kill ${pid} ;; 7.39 + 7.40 + keyboard) 7.41 + # Switch on/of the OSD Keyboard powered by Cellwrite 7.42 + if ps | grep -q 'cellwriter --keyboard-only'; then 7.43 + cellwriter --hide-window 7.44 + else 7.45 + cellwriter --keyboard-only --dock-window=2 & 7.46 + fi ;; 7.47 + 7.48 *|help) 7.49 - echo "$(basename $0) [info|kill]" ;; 7.50 + echo "$(basename $0) [info|kill|keyboard|update]" ;; 7.51 esac 7.52 7.53 exit 0
8.1 --- a/sts-session Sun Apr 27 23:18:13 2014 +0200 8.2 +++ b/sts-session Mon Apr 28 00:06:11 2014 +0200 8.3 @@ -4,26 +4,28 @@ 8.4 # 8.5 8.6 export STS_DESKTOP_WM="openbox" 8.7 +export STS_DESKTOP_ID="$$" 8.8 export XDG_CACHE_HOME="$HOME/.cache" 8.9 export XDG_CONFIG_HOME="$HOME/.config" 8.10 export XDG_DATA_HOME="$HOME/.local/share" 8.11 8.12 data="/usr/share/slitaz/sts" 8.13 -obconf="${XDG_CONFIG_HOME}/openbox" 8.14 +sts="${XDG_CONFIG_HOME}/sts" 8.15 8.16 # Ob sts-rc.xml 8.17 -if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then 8.18 - mkdir -p ${obconf} 8.19 - cp ${data}/openbox/sts-rc.xml ${obconf} 8.20 +if [ ! -f "${XDG_CONFIG_HOME}/sts/rc.xml" ]; then 8.21 + mkdir -p ${sts} 8.22 + cp ${data}/openbox/rc.xml ${sts} 8.23 fi 8.24 8.25 # Ob sts-autostart 8.26 -if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then 8.27 - cp ${data}/openbox/sts-autostart ${obconf} 8.28 +if [ ! -x "${XDG_CONFIG_HOME}/sts/autostart" ]; then 8.29 + cp ${data}/openbox/autostart ${sts} 8.30 + chmod +x ${sts}/autostart 8.31 fi 8.32 8.33 # LXpanel configs 8.34 -if [ ! -d "${XDG_CONFIG_HOME}/openbox/lxpanel/sts" ]; then 8.35 +if [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then 8.36 cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME} 8.37 fi 8.38 8.39 @@ -33,5 +35,4 @@ 8.40 fi 8.41 8.42 # Start Openbox 8.43 -exec openbox --config-file ${obconf}/sts-rc.xml \ 8.44 - --startup ${obconf}/sts-autostart 8.45 +exec openbox --config-file ${sts}/rc.xml --startup ${sts}/autostart