#1 Le 06/12/2009, à 18:26
- Koshie-2.0
[Presque résolu] Openbox inutilisable
Bonsoir,
J'ai installé Openbox et j'ai commencé à le configurer, j'ai créer un menu personnaliser avec obmenu :
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="None-6251" label="Internet">
<item label="Mozilla Firefox">
<action name="Execute">
<execute>
firefox
</execute>
</action>
</item>
<item label="Gajim">
<action name="Execute">
<execute>
gajim
</execute>
</action>
</item>
<item label="Xchat">
<action name="Execute">
<execute>
xchat
</execute>
</action>
</item>
<item label="Gmail Notifier">
<action name="Execute">
<execute>
gnome-gmail-notifier
</execute>
</action>
</item>
</menu>
<menu id="None-77743" label="Multimédia">
<item label="Bluemindo">
<action name="Execute">
<execute>
bluemindo
</execute>
</action>
</item>
<item label="VLC Media Player">
<action name="Execute">
<execute>
vlc
</execute>
</action>
</item>
<item label="Sound Juicer">
<action name="Execute">
<execute>
sound-juicer
</execute>
</action>
</item>
<item label="Cheese">
<action name="Execute">
<execute>
cheese
</execute>
</action>
</item>
</menu>
<menu id="None-171033" label="Travail">
<item label="OpenOffice.org">
<action name="Execute">
<execute>
openoffice.org
</execute>
</action>
</item>
<item label="Gedit">
<action name="Execute">
<execute>
gedit
</execute>
</action>
</item>
<item label="PCManFM">
<action name="Execute">
<execute>
pcmanfm
</execute>
</action>
</item>
<item label="Calculatrice">
<action name="Execute">
<execute>
gcalctool
</execute>
</action>
</item>
</menu>
<menu id="None-9692" label="Administration">
<item label="LXTerminal">
<action name="Execute">
<execute>
lxterminal
</execute>
</action>
</item>
<item label="Obmenu">
<action name="Execute">
<execute>
obmenu
</execute>
</action>
</item>
<item label="Obconf">
<action name="Execute">
<execute>
obconf
</execute>
</action>
</item>
<item label="Quitter la session">
<action name="Exit"/>
</item>
<item label="Redémarrer">
<action name="Execute">
<execute>
reboot
</execute>
</action>
</item>
<item label="Éteindre">
<action name="Execute">
<execute>
shutdown -h now
</execute>
</action>
</item>
</menu>
</openbox_menu>
Et lorsque je lance Openbox via GDM en séléctionnant "Openbox session", ça charge durant 5 voir 6 secondes puis j'arrive sur un fond d'écran marron (celui de l'Usplash d'Ubuntu) et un bureau vide, je fais clique droit pour voir un menu apparaître mais rien. Du coup je ne peux rien faire et je dois faire un killall openbox-session dans un tty pour retourner sur GDM.
Je ne sais pas si ça peut aider mais je vous met aussi l'autostart.sh :
# Logiciel à lancer au démarrage
tint2 & # Tableau de bord
gnome-power-manager # Surveiller la batterie
nw-applet # Paramétrer les connexions au réseau Internet
gnome-gmail-notifier # Surveiller les e-mails
# Intégration du thème d'OpenOffice.org dans Openbox
000_FORCE_DESKTOP=gnome soffice
Et le rc.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>yes</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Any</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
the active window is -->
</placement>
<theme>
<name>crazymothafucka</name>
<titleLayout>NLIMC</titleLayout>
<!--
available characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>Century Schoolbook L</name>
<size>11</size>
<!-- font size in points -->
<weight>Bold</weight>
<!-- 'bold' or 'normal' -->
<slant>Italic</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>Century Schoolbook L</name>
<size>11</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Italic</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>Century Schoolbook L</name>
<size>11</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Italic</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>Century Schoolbook L</name>
<size>10</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Italic</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="OnScreenDisplay">
<name>Century Schoolbook L</name>
<size>11</size>
<!-- font size in points -->
<weight>Normal</weight>
<!-- 'bold' or 'normal' -->
<slant>Italic</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>4</number>
<firstdesk>1</firstdesk>
<names>
<!-- set names up here if you want to, like this:
<name>desktop 1</name>
<name>desktop 2</name>
-->
</names>
<popupTime>875</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center', 'Top', or 'Fixed' -->
<popupFixedPosition>
<!-- these are used if popupPosition is set to 'Fixed' -->
<x>10</x>
<!-- positive number for distance from left edge, negative number for
distance from right edge, or 'Center' -->
<y>10</y>
<!-- positive number for distance from top edge, negative number for
distance from bottom edge, or 'Center' -->
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>0</top>
<bottom>0</bottom>
<left>0</left>
<right>0</right>
</margins>
<dock>
<position>Top</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="C-A-Left">
<action name="DesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Right">
<action name="DesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Up">
<action name="DesktopUp">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Down">
<action name="DesktopDown">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktopUp">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktopDown">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="W-F1">
<action name="Desktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="W-F2">
<action name="Desktop">
<desktop>2</desktop>
</action>
</keybind>
<keybind key="W-F3">
<action name="Desktop">
<desktop>3</desktop>
</action>
</keybind>
<keybind key="W-F4">
<action name="Desktop">
<desktop>4</desktop>
</action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<keybind key="Print">
<action name="Execute">
<execute>gnome-screenshot</execute>
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<execute>gnome-screenshot -w</execute>
</action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow"/>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels>
<desktop>yes</desktop>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="W-e">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Konqueror</name>
</startupnotify>
<command>kfmclient openProfile filemanagement</command>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>8</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>200</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="A-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktopPrevious"/>
</mousebind>
<mousebind button="A-S-Down" action="Click">
<action name="SendToDesktopNext"/>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximizeFull"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</mousebind>
<mousebind button="Down" action="Click">
<action name="Unshade"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>top</edge>
</action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>left</edge>
</action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>right</edge>
</action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>bottom</edge>
</action>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="BRCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TRCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleMaximizeFull"/>
</mousebind>
<mousebind button="Middle" action="Click">
<action name="ToggleMaximizeVert"/>
</mousebind>
<mousebind button="Right" action="Click">
<action name="ToggleMaximizeHorz"/>
</mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind button="Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Middle" action="Press">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind button="Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
<!-- system menu files on Debian systems -->
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<!-- if a press-release lasts longer than this setting (in milliseconds), the
menu is hidden again -->
<middle>no</middle>
<!-- center submenus vertically about the parent entry -->
<submenuShowDelay>100</submenuShowDelay>
<!-- this one is easy, time to delay before showing a submenu after hovering
over the parent entry -->
<applicationIcons>yes</applicationIcons>
<!-- controls if icons appear in the client-list-(combined-)menu -->
<manageDesktops>yes</manageDesktops>
<!-- show the manage desktops section in the client-list-(combined-)menu -->
</menu>
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
<application name="first element of window's WM_CLASS property (see xprop)"
class="second element of window's WM_CLASS property (see xprop)"
role="the window's WM_WINDOW_ROLE property (see xprop)"
type="the window's _NET_WM_WINDOW_TYPE (if unspecified, then
it is dialog for child windows)">
# the name or the class can be set, or both. this is used to match
# windows when they appear. role can optionally be set as well, to
# further restrict your matches.
# the name, class, and role use simple wildcard matching such as those
# used by a shell. you can use * to match any characters and ? to match
# any single character.
# the type is one of: normal, dialog, splash, utility, menu, toolbar, dock,
# or desktop
# when multiple rules match a window, they will all be applied, in the
# order that they appear in this list
# each element can be left out or set to 'default' to specify to not
# change that attribute of the window
<decor>yes</decor>
# enable or disable window decorations
<shade>no</shade>
# make the window shaded when it appears, or not
<position force="no">
# the position is only used if both an x and y coordinate are provided
# (and not set to 'default')
# when force is "yes", then the window will be placed here even if it
# says you want it placed elsewhere. this is to override buggy
# applications who refuse to behave
<x>center</x>
# a number like 50, or 'center' to center on screen. use a negative number
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
# right edge (or bottom).
<y>200</y>
<monitor>1</monitor>
# specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
</position>
<focus>yes</focus>
# if the window should try be given focus when it appears. if this is set
# to yes it doesn't guarantee the window will be given focus. some
# restrictions may apply, but Openbox will try to
<desktop>1</desktop>
# 1 is the first desktop, 'all' for all desktops
<layer>normal</layer>
# 'above', 'normal', or 'below'
<iconic>no</iconic>
# make the window iconified when it appears, or not
<skip_pager>no</skip_pager>
# asks to not be shown in pagers
<skip_taskbar>no</skip_taskbar>
# asks to not be shown in taskbars. window cycling actions will also
# skip past such windows
<fullscreen>yes</fullscreen>
# make the window in fullscreen mode when it appears
<maximized>true</maximized>
# 'Horizontal', 'Vertical' or boolean (yes/no)
</application>
# end of the example
-->
</applications>
</openbox_config>
Je vous remercie par avance de m'aider .
Koshicalement
Dernière modification par koshie666 (Le 06/12/2009, à 22:40)
#2 Le 06/12/2009, à 21:12
- Koshie-2.0
Re : [Presque résolu] Openbox inutilisable
J'ai parlé avec un utilisateur d'Openbox et j'avais déjà quelques erreurs dans mon autostart.sh, premièrement il ne faut pas mettre 000_FORCE_DESKTOP=gnome soffice ici, ensuite toute commande doit se finir par un &, la commande pour tint2 est tint. J'ai aussi remplacer gnome-power-manager par batterymon.
Voici le nouveau autostart.sh :
# Logiciel à lancer au démarrage
tint & # Tableau de bord
/home/koshie/.config/openbox/batterymon/batterymon.py & # Surveiller le niveau de la batterie
nw-applet & # Paramétrer les connexions au réseau Internet
gnome-gmail-notifier & # Surveiller les e-mails
Maintenant j'ai tint2 de lancer mais le menu qui ne vient toujours pas.
Dernière modification par koshie666 (Le 06/12/2009, à 21:13)
#3 Le 06/12/2009, à 22:40
- Koshie-2.0
Re : [Presque résolu] Openbox inutilisable
Encore une nouvelle, apparemment c'est le menu.xml modifié par obmenu qui foutrait n'importe quoi. J'ai supprimé mon menu.xml généra par obmenu et j'ai relancé Openbox, et ça marche.
Un bogue ? Autre chose ? Je met en résolu le problème mais si vous avez des informations dite le.
Merci quand même.
#4 Le 07/12/2009, à 09:09
- petilu63
Re : [Presque résolu] Openbox inutilisable
Ben je crois qu'en trois messages tu as compris tes erreurs !
Pourtant, c'est précisé dans les différentes doc/tutos ces "petits" détails (je pense en particulier aux "&" à la fin des commandes dans le fichier autostart.sh)
J'en profite pour te faire remarquer que modifier le menu menu.xml est chose aisée sans obmenu. J'ai aussi eu des problèmes avec obmenu parfois. Mieux vaut à chaque fois connaître précisemment la commande ou le chemin pour lancer un logiciel, ce qui permet de configurer très facilement les fichiers rc.xml ou menu.xml.
Je fini avec un lien que j'aime bien pour commencer à utiliser openbox : le guide openbox
J'apprécie beaucoup cet environnement simple, efficace et aisément configurable. Amuse-toi bien !
Ubuntu 10.04 + gnome / Debian Squeeze + openbox
un bon réflexe : documentation ; débutant sur ubuntu : lecture conseillée
Hors ligne
#5 Le 07/12/2009, à 09:34
- Kookaburra
Re : [Presque résolu] Openbox inutilisable
on, on dirait que tu as résolu tout seul tes problémes !
Tu verras, Openbox une fois qu'on y a gouté c'est très très dur de revenir en arrière, vers un gestionnaire "lourd" (pas de nom = pas de trolls )
Si ça peut t'aider, je peux te poster mes autostart.sh, menu.xml et rc.xml
Portable17p : CrunchBangLinux // EeePC : ArchLinux
Openbox Addict : http://kookadimi.deviantart.com
Mes photos : http://www.fluidr.com/photos/kookadimi/sets
Votre téléphone mobile dispose de plus de puissance que l'ensemble des ordinateurs de la NASA en 1969. La NASA a lancé un homme sur la Lune. Vous lancez un oiseau sur des cochons...
Hors ligne
#6 Le 07/12/2009, à 16:14
- Koshie-2.0
Re : [Presque résolu] Openbox inutilisable
Je suis preneur Kookaburra.
Et sinon, sans rien de lancer (si ce n'est stalonetray, tint2, fbsbg avec une image, conky) j'ai 300mo de pompé sur la mémoire vive, ça me semble beaucoup quand même, non ?
Petilu63, je sais que ces erreurs étaient pourtant indiquées mais, lire la doc sur openbox, sur tint2, sur stalonetray, sur feh, sur ci, sur ça...
On oublie pas mal de petit truc.
#7 Le 07/12/2009, à 16:43
- petilu63
Re : [Presque résolu] Openbox inutilisable
Étrange cette consommation de mémoire... Je me suis rendu compte qu'avec un système 64 bits la conso "à vide" est plus importante qu'avec un système 32 bits. Malgré cela je me souviens d'utilisation mémoire aux alentours de 150 Mio avec Jaunty 64bits.
À noter que l'utilisation d'openbox permet de réduire la consommation globale de mémoire utilisée par les applications graphiques mais si le système est gourmand, cela ne va pas le changer.
La course à la légèreté et la réactivité passe aussi par un ménage dans les services inutiles et l'utilisation de logiciels plus légers. N'aurais-tu pas quelques services inutiles qui tournent en tâche de fond ?
Ubuntu 10.04 + gnome / Debian Squeeze + openbox
un bon réflexe : documentation ; débutant sur ubuntu : lecture conseillée
Hors ligne
#8 Le 07/12/2009, à 16:50
- Koshie-2.0
Re : [Presque résolu] Openbox inutilisable
Oh si ! Probablement... Je sais qu'Ubuntu en a pleins, je sais les enlever sur GNOME via le menus (mais est-ce appliqué sur un autre DE ou WM ?), mais je ne sais pas le faire sur Openbox, je ne sais que gérer l'autostart.sh.
#9 Le 07/12/2009, à 16:56
- petilu63
Re : [Presque résolu] Openbox inutilisable
Sous debian par exemple, j'utilise l'utilitaire bum (Boot Up Manager) (à lancer en root) qui permet facilement de configurer les logiciels et services lancés au démarrage.
Mais tu as toujours accès à l'outil Ubuntu : gnome-session-properties.
edit : euh je crois que je dis des bêtises pour gnome-session-properties (dedans il y a gnome) Tu peux toujours essayer bum.
Dernière modification par petilu63 (Le 07/12/2009, à 16:58)
Ubuntu 10.04 + gnome / Debian Squeeze + openbox
un bon réflexe : documentation ; débutant sur ubuntu : lecture conseillée
Hors ligne
#10 Le 07/12/2009, à 19:29
- Kookaburra
Re : [Presque résolu] Openbox inutilisable
Je suis preneur Kookaburra.
Et sinon, sans rien de lancer (si ce n'est stalonetray, tint2, fbsbg avec une image, conky) j'ai 300mo de pompé sur la mémoire vive, ça me semble beaucoup quand même, non ?
Juste après le démarrage, avec toutes mes applications lancées au démarrage (y'en a pas mal !) , je suis à 250/300 mo environ ... Après 6h d'utilisation, je reste vers 400 mo max, y'a de la marge !
Tiens, je te balance en vrac mes fichiers de config :
menu :
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/ file:///usr/share/openbox/menu.xsd">
<menu id="root-menu" label="Openbox 3">
<separator label="CrunchBang Linux"/>
<item label="Thunar">
<action name="Execute">
<execute>
thunar
</execute>
</action>
</item>
<item label="Geany">
<action name="Execute">
<execute>
geany
</execute>
</action>
</item>
<item label="Deluge">
<action name="Execute">
<execute>
deluge
</execute>
</action>
</item>
<item label="aMule">
<action name="Execute">
<execute>
amule
</execute>
</action>
</item>
<item label="Synaptic">
<action name="Execute">
<execute>
gksudo synaptic
</execute>
</action>
</item>
<separator/>
<menu id="photographie" label="Photographie">
<item label="Gimp">
<action name="Execute">
<execute>
gimp
</execute>
</action>
</item>
<item label="Gthumb">
<action name="Execute">
<execute>
gthumb
</execute>
</action>
</item>
<item label="Phatch">
<action name="Execute">
<execute>
phatch
</execute>
</action>
</item>
<item label="jBrout">
<action name="Execute">
<execute>
jbrout
</execute>
</action>
</item>
<item label="RawTherapee">
<action name="Execute">
<execute>
rawtherapee
</execute>
</action>
</item>
<item label="Hugin">
<action name="Execute">
<execute>
hugin
</execute>
</action>
</item>
<item label="Enblend">
<action name="Execute">
<execute>
enblend
</execute>
</action>
</item>
</menu>
<menu id="Debian"/>
<menu id="preferences" label="Préférences">
<item label="Edit conkyrc">
<action name="Execute">
<execute>
geany ~/.conkyrc1
</execute>
</action>
</item>
<item label="dmenu config file">
<action name="Execute">
<execute>
geany ~/.config/dmenu/dmenu-bind.sh
</execute>
</action>
</item>
<item label="gmrunrc">
<action name="Execute">
<execute>
geany ~/.gmrunrc
</execute>
</action>
</item>
<item label="Terminator config file">
<action name="Execute">
<execute>
geany ~/.config/terminator/config
</execute>
</action>
</item>
<item label="Tint2 config file">
<action name="Execute">
<execute>
geany ~/.config/tint2/tint2rc
</execute>
</action>
</item>
<item label="User Interface Settings">
<action name="Execute">
<execute>
lxappearance
</execute>
</action>
</item>
<item label="Screensaver - Power">
<action name="Execute">
<execute>
gnome-screensaver-preferences
</execute>
</action>
</item>
<item label="Choose wallpapers">
<action name="Execute">
<execute>
nitrogen ~/images/wallpapers/
</execute>
</action>
</item>
</menu>
<menu id="openbox" label="Openbox">
<item label="Edit menu.xml">
<action name="Execute">
<execute>
geany ~/.config/openbox/menu.xml
</execute>
</action>
</item>
<item label="rc.xml">
<action name="Execute">
<execute>
geany ~/.config/openbox/rc.xml
</execute>
</action>
</item>
<item label="autostart.sh">
<action name="Execute">
<execute>
geany ~/.config/openbox/autostart.sh
</execute>
</action>
</item>
<item label="Obmenu">
<action name="Execute">
<execute>
obmenu
</execute>
</action>
</item>
<item label="Obconf">
<action name="Execute">
<execute>
obconf
</execute>
</action>
</item>
<item label="Reconfigure">
<action name="Reconfigure"/>
</item>
<item label="Restart">
<action name="Restart"/>
</item>
</menu>
<menu id="systéme" label="Systéme">
<item label="System Update">
<action name="Execute">
<execute>
system-update
</execute>
</action>
</item>
<item label="Disk Partitioner">
<action name="Execute">
<execute>
gksudo gparted
</execute>
</action>
</item>
<item label="Adjust with lxrandr">
<action name="Execute">
<execute>
lxrandr
</execute>
</action>
</item>
<item label="Adjust with grandr">
<action name="Execute">
<execute>
grandr
</execute>
</action>
</item>
<item label="Edit Default Applications">
<action name="Execute">
<execute>
terminator --command="sudo update-alternatives --all"
</execute>
</action>
</item>
<item label="Login setup (GDM)">
<action name="Execute">
<execute>
gksudo gdmsetup
</execute>
</action>
</item>
<item label="Network Admin">
<action name="Execute">
<execute>
network-admin
</execute>
</action>
</item>
<item label="Package Manager">
<action name="Execute">
<execute>
gksudo synaptic
</execute>
</action>
</item>
<item label="Passwords and Encryption Keys">
<action name="Execute">
<execute>
seahorse
</execute>
</action>
</item>
<item label="Printer Settings">
<action name="Execute">
<execute>
system-config-printer
</execute>
</action>
</item>
<item label="Restricted Device Manager">
<action name="Execute">
<execute>
gksudo jockey-gtk
</execute>
</action>
</item>
<item label="Services/Daemons">
<action name="Execute">
<execute>
services-admin
</execute>
</action>
</item>
<item label="Shared Folders">
<action name="Execute">
<execute>
shares-admin
</execute>
</action>
</item>
<item label="System Monitor">
<action name="Execute">
<execute>
terminator --command=htop
</execute>
</action>
</item>
<item label="System Logs">
<action name="Execute">
<execute>
gnome-system-log
</execute>
</action>
</item>
<item label="Time/Date">
<action name="Execute">
<execute>
time-admin
</execute>
</action>
</item>
<item label="Users/Groups">
<action name="Execute">
<execute>
users-admin
</execute>
</action>
</item>
</menu>
<separator/>
<item label="Exit">
<action name="Execute">
<execute>
oblogout
</execute>
</action>
</item>
</menu>
</openbox_menu>
rc :
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->
<followMouse>no</followMouse>
<!-- move focus to a window when you move the mouse into it -->
<focusLast>yes</focusLast>
<!-- focus the last used window when changing desktops, instead of the one
under the mouse pointer. when followMouse is enabled -->
<underMouse>no</underMouse>
<!-- move focus under the mouse, even when the mouse is not moving -->
<focusDelay>200</focusDelay>
<!-- when followMouse is enabled, the mouse must be inside the window for
this many milliseconds (1000 = 1 sec) before moving focus to it -->
<raiseOnFocus>no</raiseOnFocus>
<!-- when followMouse is enabled, and a window is given focus by moving the
mouse into it, also raise the window -->
</focus>
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
<center>yes</center>
<!-- whether to place windows in the center of the free area found or
the top left corner -->
<monitor>Any</monitor>
</placement>
<theme>
<name>Espresso</name>
<titleLayout>NLIMC</titleLayout>
<!--
avaible characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
-->
<keepBorder>yes</keepBorder>
<animateIconify>yes</animateIconify>
<font place="ActiveWindow">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>bold</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="InactiveWindow">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuHeader">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="MenuItem">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
<font place="OnScreenDisplay">
<name>sans</name>
<size>8</size>
<!-- font size in points -->
<weight>normal</weight>
<!-- 'bold' or 'normal' -->
<slant>normal</slant>
<!-- 'italic' or 'normal' -->
</font>
</theme>
<desktops>
<!-- this stuff is only used at startup, pagers allow you to change them
during a session
these are default values to use when other ones are not already set
by other applications, or saved in your session
use obconf if you want to change these without having to log out
and back in -->
<number>3</number>
<firstdesk>1</firstdesk>
<names>
<name>Internet</name>
<name>Multimédia</name>
<name>Systéme</name>
</names>
<popupTime>875</popupTime>
<!-- The number of milliseconds to show the popup for when switching
desktops. Set this to 0 to disable the popup. -->
</desktops>
<resize>
<drawContents>yes</drawContents>
<popupShow>Nonpixel</popupShow>
<!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) -->
<popupPosition>Center</popupPosition>
<!-- 'Center' or 'Top' -->
<popupFixedPosition>
<x>0</x>
<y>0</y>
</popupFixedPosition>
</resize>
<!-- You can reserve a portion of your screen where windows will not cover when
they are maximized, or when they are initially placed.
Many programs reserve space automatically, but you can use this in other
cases. -->
<margins>
<top>11</top>
<bottom>1</bottom>
<left>1</left>
<right>1</right>
</margins>
<dock>
<position>TopLeft</position>
<!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating -->
<floatingX>0</floatingX>
<floatingY>0</floatingY>
<noStrut>no</noStrut>
<stacking>Above</stacking>
<!-- 'Above', 'Normal', or 'Below' -->
<direction>Vertical</direction>
<!-- 'Vertical' or 'Horizontal' -->
<autoHide>no</autoHide>
<hideDelay>300</hideDelay>
<!-- in milliseconds (1000 = 1 second) -->
<showDelay>300</showDelay>
<!-- in milliseconds (1000 = 1 second) -->
<moveButton>Middle</moveButton>
<!-- 'Left', 'Middle', 'Right' -->
</dock>
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching -->
<keybind key="C-A-Left">
<action name="DesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Right">
<action name="DesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Up">
<action name="DesktopUp">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="C-A-Down">
<action name="DesktopDown">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Left">
<action name="SendToDesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Up">
<action name="SendToDesktopUp">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Down">
<action name="SendToDesktopDown">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="W-F1">
<action name="Desktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="W-F2">
<action name="Desktop">
<desktop>2</desktop>
</action>
</keybind>
<keybind key="W-F3">
<action name="Desktop">
<desktop>3</desktop>
</action>
</keybind>
<keybind key="W-F4">
<action name="Desktop">
<desktop>4</desktop>
</action>
</keybind>
<keybind key="W-d">
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F5">
<action name="Close"/>
</keybind>
<keybind key="A-Escape">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</keybind>
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
<keybind key="Print">
<action name="Execute">
<execute>scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & gpicview ~/images/$f'</execute>
</action>
</keybind>
<keybind key="A-Print">
<action name="Execute">
<execute>scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & gpicview ~/images/$f'</execute>
</action>
</keybind>
<!-- Keybindings for window switching -->
<keybind key="A-Tab">
<action name="NextWindow"/>
</keybind>
<keybind key="A-S-Tab">
<action name="PreviousWindow"/>
</keybind>
<keybind key="C-A-Tab">
<action name="NextWindow">
<panels>yes</panels>
<desktop>yes</desktop>
</action>
</keybind>
<!-- Keybindings for running applications -->
<keybind key="A-F1">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Run Program</name>
</startupnotify>
<command>terminator</command>
</action>
</keybind>
<keybind key="A-F2">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Run Program</name>
</startupnotify>
<command>gmrun</command>
</action>
</keybind>
<keybind key="A-F3">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>dmenu-bind</name>
</startupnotify>
<command>~/.config/dmenu/dmenu-bind.sh</command>
</action>
</keybind>
<keybind key="A-F4">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Run Program</name>
</startupnotify>
<command>gnome-volume-control</command>
</action>
</keybind>
<keybind key="W-f">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Thunar</name>
</startupnotify>
<command>thunar</command>
</action>
</keybind>
<keybind key="W-t">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Terminal</name>
</startupnotify>
<command>terminator</command>
</action>
</keybind>
<keybind key="W-w">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Web Browser</name>
</startupnotify>
<command>firefox-3.5</command>
</action>
</keybind>
<keybind key="W-g">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Graphics Editor</name>
</startupnotify>
<command>gimp</command>
</action>
</keybind>
<keybind key="W-l">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Lock screen</name>
</startupnotify>
<command>gnome-screensaver-command -l</command>
</action>
</keybind>
<keybind key="W-e">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Editor</name>
</startupnotify>
<command>geany</command>
</action>
</keybind>
<keybind key="W-m">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Mediaplayer</name>
</startupnotify>
<command>vlc</command>
</action>
</keybind>
<keybind key="W-v">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Volume</name>
</startupnotify>
<command>gnome-volume-control</command>
</action>
</keybind>
<keybind key="W-u">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>SystemUpdate</name>
</startupnotify>
<command>system-update</command>
</action>
</keybind>
<keybind key="W-c">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Clock</name>
</startupnotify>
<command>~/.config/gworldclock/gworldclock.sh</command>
</action>
</keybind>
<keybind key="W-x">
<action name="Execute">
<startupnotify>
<enabled>true</enabled>
<name>Logout</name>
</startupnotify>
<command>oblogout</command>
</action>
</keybind>
<keybind key="W-Tab">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</keybind>
<keybind key="W-space">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="A-C-q">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
</keyboard>
<mouse>
<dragThreshold>8</dragThreshold>
<!-- number of pixels the mouse must move before a drag begins -->
<doubleClickTime>200</doubleClickTime>
<!-- in milliseconds (1000 = 1 second) -->
<screenEdgeWarpTime>400</screenEdgeWarpTime>
<!-- Time before changing desktops when the pointer touches the edge of the
screen while moving a window, in milliseconds (1000 = 1 second).
Set this to 0 to disable warping -->
<context name="Frame">
<mousebind button="A-Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="A-Left" action="Click">
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="A-Right" action="Drag">
<action name="Resize"/>
</mousebind>
<mousebind button="A-Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="A-S-Up" action="Click">
<action name="SendToDesktopPrevious"/>
</mousebind>
<mousebind button="A-S-Down" action="Click">
<action name="SendToDesktopNext"/>
</mousebind>
</context>
<context name="Titlebar">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
<mousebind button="Left" action="DoubleClick">
<action name="ToggleMaximizeFull"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Up" action="Click">
<action name="Shade"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
<action name="Lower"/>
</mousebind>
<mousebind button="Down" action="Click">
<action name="Unshade"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="Top">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>top</edge>
</action>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>left</edge>
</action>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>right</edge>
</action>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize">
<edge>bottom</edge>
</action>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Lower"/>
<action name="FocusToBottom"/>
<action name="Unfocus"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="BLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="BRCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TLCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TRCorner">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Client">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Icon">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</mousebind>
</context>
<context name="AllDesktops">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleOmnipresent"/>
</mousebind>
</context>
<context name="Shade">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleShade"/>
</mousebind>
</context>
<context name="Iconify">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Iconify"/>
</mousebind>
</context>
<context name="Maximize">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Middle" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Right" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="ToggleMaximizeFull"/>
</mousebind>
<mousebind button="Middle" action="Click">
<action name="ToggleMaximizeVert"/>
</mousebind>
<mousebind button="Right" action="Click">
<action name="ToggleMaximizeHorz"/>
</mousebind>
</context>
<context name="Close">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Unshade"/>
</mousebind>
<mousebind button="Left" action="Click">
<action name="Close"/>
</mousebind>
</context>
<context name="Desktop">
<mousebind button="Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="C-A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="C-A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
</context>
<context name="Root">
<!-- Menus -->
<mousebind button="Left" action="Press">
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</mousebind>
<mousebind button="Right" action="Press">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</mousebind>
</context>
<context name="MoveResize">
<mousebind button="Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
<mousebind button="A-Up" action="Click">
<action name="DesktopPrevious"/>
</mousebind>
<mousebind button="A-Down" action="Click">
<action name="DesktopNext"/>
</mousebind>
</context>
</mouse>
<menu>
<!-- You can specify more than one menu file in here and they are all loaded,
just don't make menu ids clash or, well, it'll be kind of pointless -->
<!-- default menu file (or custom one in $HOME/.config/openbox/) -->
<!-- system menu files on Debian systems -->
<file>/var/lib/openbox/debian-menu.xml</file>
<file>debian-menu.xml</file>
<file>menu.xml</file>
<hideDelay>200</hideDelay>
<middle>no</middle>
<submenuShowDelay>100</submenuShowDelay>
<applicationIcons>yes</applicationIcons>
</menu>
<applications>
<!--
# this is an example with comments through out. use these to make your
# own rules, but without the comments of course.
<application name="first element of window's WM_CLASS property (see xprop)"
class="second element of window's WM_CLASS property (see xprop)"
role="the window's WM_WINDOW_ROLE property (see xprop)">
# the name or the class can be set, or both. this is used to match
# windows when they appear. role can optionally be set as well, to
# further restrict your matches.
# the name, class, and role use simple wildcard matching such as those
# used by a shell. you can use * to match any characters and ? to match
# any single character.
# when multiple rules match a window, they will all be applied, in the
# order that they appear in this list
# each element can be left out or set to 'default' to specify to not
# change that attribute of the window
<decor>yes</decor>
# enable or disable window decorations
<shade>no</shade>
# make the window shaded when it appears, or not
<position>
# the position is only used if both an x and y coordinate are provided
# (and not set to 'default')
<x>center</x>
# a number like 50, or 'center' to center on screen. use a negative number
# to start from the right (or bottom for <y>), ie -50 is 50 pixels from the
# right edge (or bottom).
<y>200</y>
<monitor>1</monitor>
# specifies the monitor in a xinerama setup.
# 1 is the first head, or 'mouse' for wherever the mouse is
</position>
<focus>yes</focus>
# if the window should try be given focus when it appears. if this is set
# to yes it doesn't guarantee the window will be given focus. some
# restrictions may apply, but Openbox will try to
<desktop>1</desktop>
# 1 is the first desktop, 'all' for all desktops
<layer>normal</layer>
# 'above', 'normal', or 'below'
<iconic>no</iconic>
# make the window iconified when it appears, or not
<skip_pager>no</skip_pager>
# asks to not be shown in pagers
<skip_taskbar>no</skip_taskbar>
# asks to not be shown in taskbars. window cycling actions will also
# skip past such windows
<fullscreen>yes</fullscreen>
# make the window in fullscreen mode when it appears
<maximized>true</maximized>
# 'Horizontal', 'Vertical' or boolean (yes/no)
</application>
# end of the example
-->
<application name="gmessage">
<decor>no</decor>
<shade>no</shade>
<skip_pager>yes</skip_pager>
<skip_taskbar>yes</skip_taskbar>
<fullscreen>no</fullscreen>
<maximized>no</maximized>
</application>
<application name="openbox-logout">
<decor>no</decor>
<shade>no</shade>
<skip_pager>yes</skip_pager>
<fullscreen>no</fullscreen>
<maximized>no</maximized>
<layer>above</layer>
</application>
</applications>
</openbox_config>
autostart :
(certaines commandes sont désactivées par "#" devant elles...
# Run the system-wide support stuff
#. $GLOBALAUTOSTART
# Programs to launch at startup
# =============================
# Start session manager
lxsession &
# Start Bluetooth applet
#bluetooth-applet &
# Enable power management
gnome-power-manager &
# Set-up keyboard maps and sytem tray switcher
# tip - quickly toggle between keyboard maps by holding both shift keys!
#setxkbmap -option grp:switch,grp:shifts_toggle,grp_led:scroll gb,us,de,fr &
#(sleep 1s && fbxkb) &
# ^^ note: if using the LiveCD, you can also change to a different
# keyboard map by entering the terminal command:
# setxkbmap xx
# Where "xx" is the 2 letter country code.
# Force openoffice.org to use GTK theme
# enable this if you install openoffice
#export OOO_FORCE_DESKTOP=gnome
# Start volume control system tray applet
volwheel &
# restore volume settings
alsactl restore
# Set desktop wallpaper
nitrogen --restore &
# Enable Eyecandy - off by default
# see "/usr/bin/crunchbang/xcompmgr-crunchbang" for more info
xcompmgr-crunchbang --startstop &
# Start screensaver deamon
gnome-screensaver &
# Uncomment to enable system updates at boot
(sleep 180s && system-update) &
# Check for restricted hardware
(sleep 60s && jockey-gtk --check) &
# Launch Conky
(sleep 20s && conky -c /home/dimitri/.conkyrc1) &
# Launch Tint2
(sleep 1s && tint2) &
# Launch Firefox-3.5
firefox-3.5 &
# Launch Icedove + Emesene + RSS
(sleep 20s && emesene) &
(sleep 20s && /home/dimitri/ubuntu/PaquetsDEB/rssowl/RSSOwl) &
(sleep 20s && thunderbird) &
# Launch Music
(sleep 20 && banshee) &
# Launch Trayfreq
trayfreq &
# Launch Tilda
#tilda &
cadeau bonus (:lol: ), mon Tint2
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 0
border_width = 0
background_color = #696969 100
border_color = #ffffff 20
rounded = 0
border_width = 0
background_color = #4F4F4F 100
border_color = #ffffff 20
rounded = 0
border_width = 0
background_color = #1C1C1C 100
border_color = #ffffff 20
rounded = 0
border_width = 1
background_color = #363636 100
border_color = #ffffff 20
#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = bottom center horizontal
panel_size = 100% 36
panel_margin = 0 0
panel_padding = 5 3 5
font_shadow = 0
panel_background_id = 3
wm_menu = 1
#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 2 2 2
taskbar_background_id = 4
taskbar_active_background_id = 2
#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 0
task_width = 35
task_centered = 1
task_padding = 2 1
task_font = sans 7
task_font_color = #FFE1E3 70
task_active_font_color = #FFE1E3 85
task_background_id = 0
task_active_background_id = 1
#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 2 2 2
systray_background_id = 4
#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans 8
time2_format = %d %b
time2_font = sans 8
clock_font_color = #D3D3D3 60
clock_padding = 2 2
clock_background_id = 4
#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 1
#battery_low_status = 7
#battery_low_cmd = notify-send "battery low"
#bat1_font = sans 8
#bat2_font = sans 8
#battery_font_color = #D3D3D3 60
#battery_padding = 2 2
#battery_background_id = 4
#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify
En images, ça donne ça :
(détails thémes gtk et openbox sur la 3éme image)
Je ne serais que trop te conseiller l'ajout de GMrun et Dmenu, compléments idéaux d'Openbox !
(chez moi, alt+f1 appelle Teminator, alt+f2 appelle gmrun et alt+f3 appelle dmenu : trop pratique !!!).
Dernière modification par Kookaburra (Le 07/12/2009, à 19:36)
Portable17p : CrunchBangLinux // EeePC : ArchLinux
Openbox Addict : http://kookadimi.deviantart.com
Mes photos : http://www.fluidr.com/photos/kookadimi/sets
Votre téléphone mobile dispose de plus de puissance que l'ensemble des ordinateurs de la NASA en 1969. La NASA a lancé un homme sur la Lune. Vous lancez un oiseau sur des cochons...
Hors ligne