Page 1 sur 2

[Openbox] configuration

Publié : dim. 07 févr. 2010, 19:49
par XeloS
Bonsoir,

Je viens d'installer openbox et malheureusement c'est très moche :o .
Donc je vous appellle pour que vous m'aidiez.
Ce que je cherche, c'est avoir un bureau un peu comme celui-ci : http://www.flickr.com/photos/cinderwick ... 733391643/
Donc je pense que je vais d'abord configurer gtk etc.. avant les fichiers comme rc.xml.
Donc, déjà comment avoir TOUTES les applications avec le theme Gtk (et pas gris) et surtout comment l'installer ?

Re: [Openbox] configuration

Publié : dim. 07 févr. 2010, 19:56
par tuxce
salut, utilises un des softs fait pour:

Code : Tout sélectionner

$  pacman -Ss gtk switch theme
extra/gtk-theme-switch 1.0.1-3
    Gtk theme switcher
extra/gtk-theme-switch2 2.0.5-1
    Gtk2 theme switcher
community/gtk-chtheme 0.3.1-4
    This little program lets you change your Gtk+ 2.0 theme. A better
    alternative to switch2
community/gtk2_prefs 0.4.1-1
    A GTK2 theme selector and font switcher
community/lxappearance 0.4.0-2 (lxde)
    GTK+ theme switcher of the LXDE Desktop (manages icons and fonts)

Re: [Openbox] configuration

Publié : dim. 07 févr. 2010, 20:05
par XeloS
Merci pour la réponse rapide.

Mais par exemple, quand j'utilise midori, c'est tout gris, il ne tient pas compte de mon theme gtk, pareil pour thunar etc..

Re: [Openbox] configuration

Publié : dim. 07 févr. 2010, 20:17
par tuxce
pas compris là, il y a des softs qui en tiennent compte et d'autres pas ??
tu l'as défini comment?

Re: [Openbox] configuration

Publié : dim. 07 févr. 2010, 20:42
par XeloS
Je viens de reussir à avoir (en partie) ce que je voulais.
Bref, J'ai défini avec lxappearance et l'utilitaire d'openbox.
Maintenant passsons, aux icônes.
Sur le site box-look, il n'y en pas beaucoup, j'ai donc fait un tour sur gnome-look et toutes les icones sont aux formats zip, alors que lxappearance demande des tar.gz

Re: [Openbox] configuration

Publié : dim. 07 févr. 2010, 20:54
par Nic0
Ben, tu unzip, puis tu compresses avec tar, tu obtiendras un tar.gz,

Sinon, t'as des thèmes sur AUR pour gtk (pacman -Ss gtk theme)

Re: [Openbox] configuration

Publié : mer. 10 févr. 2010, 18:11
par XeloS
Au fait j'ai trouvé, les applications utilisaient leurs propres themes gtk et j'en ai défini un commun.
J'ai bientôt finis la configuration d'openbox mais il reste quelques détails à régler.
C'est surtout au niveau de fbpanel.
Déjà, comment l'avoir en français ? (genre network = internet etc..)
Ensuite comment eteindre et redemarrer sans avoir à être root ?
Avec midori, j'ai un autre problème. (firefox aussi)
Flash ne fonctionne que quand je lance firefox en root, j'ai pas éssayer avec midori. Comment régler ce problème ?
Et enfin, au démarrage (j'utilise Slim) mon clavier est en anglais.

Merci

EDIT: Comment installer urxvt ?

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 18:21
par XeloS
Personne n'a d'idée ?
Sinon quelqu'un aurait une solution de remplacement à fbpanel ?

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 19:34
par cavolo
XeloS a écrit :Personne n'a d'idée ?
Sinon quelqu'un aurait une solution de remplacement à fbpanel ?
http://forums.archlinux.fr/topic5291.html

pour eteindre/redemarrer le pc

pour le flash, tu a bien installer le flash player?, re-installe le peut-etre :/

pour slim, je ne sais pas comment on fait, il ne fonctionne pas du tout chez moi (failed to execut login command, il me repond ^^)

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 19:35
par kevin57
Pour urxvt, fais une recherche avec yaourt. Le paquet s'appelle soit urxvt soit rxvt-unicode (désolé je suis pas sous Arch au moment où je t'écris).
Pour éteindre et redémarrer sans être en root, configure-le avec sudo (visudo) pour que la commande shutdown ne demande pas de mot de passe.
Le reste je ne sais pas, je n'utilise pas fbpanel.

Edit : Pour urxvt, tu as pensé à demander à google? Voici sa première réponse avec le mot clé "urxvt archlinux".........

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 19:51
par XeloS
cavolo a écrit :
XeloS a écrit :Personne n'a d'idée ?
Sinon quelqu'un aurait une solution de remplacement à fbpanel ?
http://forums.archlinux.fr/topic5291.html

pour eteindre/redemarrer le pc

pour le flash, tu a bien installer le flash player?, re-installe le peut-etre :/

pour slim, je ne sais pas comment on fait, il ne fonctionne pas du tout chez moi (failed to execut login command, il me repond ^^)
Merci pour le lien je verrai. Mais fbpanel ne permet pas de personnaliser les menus. Je vais voir si je trouve un autre panel.
Pour flash je l'ai déjà réinstallé, ça ne marche pas.
Je suis obligé de faire dans la console "setxkbmap fr", peut être que je peux l'ajouter dans le fichier autostart.sh ?
kevin57 a écrit :Pour urxvt, fais une recherche avec yaourt. Le paquet s'appelle soit urxvt soit rxvt-unicode (désolé je suis pas sous Arch au moment où je t'écris).
Pour éteindre et redémarrer sans être en root, configure-le avec sudo (visudo) pour que la commande shutdown ne demande pas de mot de passe.
Le reste je ne sais pas, je n'utilise pas fbpanel.

Edit : Pour urxvt, tu as pensé à demander à google? Voici sa première réponse avec le mot clé "urxvt archlinux".........
Merci pour l'astuce. Sinon j'avais fait une recherche sur yaourt et google mais je n'avais pas fais le rapprochement entre rxvt-unicode et urxvt.
Pour le fichier sudoers, si je met la commande shutdown, je ne peux plus rien faire avec sudo.

Merci pour ces réponses.

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 19:58
par kevin57
Pour urxvt, un simple yaourt -Ss urxvt t'aurait indiqué que rxvt-unicode = urxvt. Enfin bon...

Pour sudo, tu as dû faire une erreur quelque part, je n'ai pas le problème moi.

Pour le panel, j'ai pypanel et il est entièrement configurable.

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 20:14
par XeloS
Le problème c'est qu'il me faut un panel comme fbpanel.
Avec un menu etc.. proche de windows.

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 20:16
par kevin57
Et alors? Avec PyPanel j'ai un menu, une barre des tâches, des raccourcis, une traybar et l'heure (avec la date, même). Suffit de configurer, mais je t'accorde que c'est plus compliqué que sous windows.

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 20:22
par XeloS
D'accord, je vais voir.

Re: [Openbox] configuration

Publié : ven. 12 févr. 2010, 22:45
par kevin57
N'hésite pas si tu as des questions.

Re: [Openbox] configuration

Publié : sam. 13 févr. 2010, 12:32
par XeloS
Je trouve très peu de guide/tuto sur pypanel.
Donc je te demande si tu veux bien m'envoyer ton pypanel.rc pour que je m'en inspire et que je le modifie après.

Sinon personne n'a d'idée pour flash ? c'est très embêtant.

Re: [Openbox] configuration

Publié : sam. 13 févr. 2010, 13:11
par kevin57
Un peu d'aide sur PyPanel ici. Dès que je me remets sur mon Arch, je t'enverrai mon .pypanelrc, mais il est très basique. Je sais qu'il y a moyen d'avoir un joli menu avec des icônes et tout mais je ne sais plus comment, cherche dans le forum, je crois que je l'avais vu ici.

Edit : Comme promis, voici mon .pypanelrc :

Code : Tout sélectionner

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0xd6d6d6"    # Panel background and tinting color
TASK_COLOR      = "0x727272"    # Normal task name color 
FOCUSED_COLOR   = "0x1D7499"    # Focused task name color
SHADED_COLOR    = "0x727272"    # Shaded task name color 
MINIMIZED_COLOR = "0x727272"    # Minimized task name color 
DESKTOP_COLOR   = "0x1D7499"    # Desktop name color
CLOCK_COLOR     = "0x1D7499"    # Clock text color
LINE_COLOR      = "0x1D7499"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0x484848"
FOCUSED_SHADOW_COLOR   = "0x484848"
SHADED_SHADOW_COLOR    = "0x484848"
MINIMIZED_SHADOW_COLOR = "0x484848" 
DESKTOP_SHADOW_COLOR   = "0x484848"
CLOCK_SHADOW_COLOR     = "0x484848"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 0             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 16            # Panel application icon height
I_WIDTH         = 16            # Panel application icon Width 
APPL_I_HEIGHT   = 24            # Application launcher icon height
APPL_I_WIDTH    = 24            # Application launcher icon width
TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%d/%m/%Y %H:%M"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "Gputeks-10"
#"bitstream vera sans-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("xdotool key alt+F1", "/home/kevin/icones/Arch.png"),
                   ("seamonkey -browser", "/home/kevin/icones/seamonkey.png"), 
                   ("amsn", "/home/kevin/icones/amsn7.png"),
		   ("thunar", "/home/kevin/icones/folder_home.png"),
                   ("soffice -writer", "/usr/share/icons/hicolor/128x128/apps/writer.png"),
                   ("sudo shutdown -h now", "/home/kevin/icones/shutdown-icon.png"),
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 0

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 1             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 1             # Show text shadows
SHOWLINES       = 0             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 1             # Desktop name section
TASKS           = 3             # Task names section 
TRAY            = 4             # System tray section
CLOCK           = 5             # Clock section
LAUNCHER        = 2             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)

Re: [Openbox] configuration

Publié : dim. 14 févr. 2010, 10:02
par Ricard
XeloS a écrit :
Sinon personne n'a d'idée pour flash ? c'est très embêtant.
:gne: T'as pas parlé d'un problème avec Flash....
Si tu veux parler de sudo, la réponse à ton problème est expliquée noir sur blanc dans le wiki. Il suffit de lire.
Avec visudo:

Code : Tout sélectionner

Autoriser l'utilisateur “jean” à éteindre l'ordinateur:
 jean  localhost=/sbin/shutdown -h now

Re: [Openbox] configuration

Publié : dim. 14 févr. 2010, 14:13
par XeloS
kevin57 a écrit :Un peu d'aide sur PyPanel ici. Dès que je me remets sur mon Arch, je t'enverrai mon .pypanelrc, mais il est très basique. Je sais qu'il y a moyen d'avoir un joli menu avec des icônes et tout mais je ne sais plus comment, cherche dans le forum, je crois que je l'avais vu ici.

Edit : Comme promis, voici mon .pypanelrc :

Code : Tout sélectionner

#------------------------------------------------------------------------------
#
#                         PyPanel v2.4 Configuration
#
# This configuration file is a Python script that will be executed when
# PyPanel is started.  In order for PyPanel to start properly, make sure that
# this file contains proper Python formatting and no syntax errors.
#------------------------------------------------------------------------------
VERSION         = 2.4           # Config file version

#------------------------------------------------------------------------------
# Colors: Format is hex triplet - 0xrrggbb
#------------------------------------------------------------------------------
BG_COLOR        = "0xd6d6d6"    # Panel background and tinting color
TASK_COLOR      = "0x727272"    # Normal task name color 
FOCUSED_COLOR   = "0x1D7499"    # Focused task name color
SHADED_COLOR    = "0x727272"    # Shaded task name color 
MINIMIZED_COLOR = "0x727272"    # Minimized task name color 
DESKTOP_COLOR   = "0x1D7499"    # Desktop name color
CLOCK_COLOR     = "0x1D7499"    # Clock text color
LINE_COLOR      = "0x1D7499"    # Vertical line color

# Text Shadow Colors
TASK_SHADOW_COLOR      = "0x484848"
FOCUSED_SHADOW_COLOR   = "0x484848"
SHADED_SHADOW_COLOR    = "0x484848"
MINIMIZED_SHADOW_COLOR = "0x484848" 
DESKTOP_SHADOW_COLOR   = "0x484848"
CLOCK_SHADOW_COLOR     = "0x484848"

#------------------------------------------------------------------------------
# Panel Spacing and Location Options: Measured in pixels
#------------------------------------------------------------------------------
P_LOCATION      = 0             # Panel placement: 0 = top, 1 = bottom
P_WIDTH         = 0             # Panel width: 0 = Use full screen width
P_START         = 0             # Starting X coordinate of the panel
P_SPACER        = 6             # Spacing between panel objects
P_HEIGHT        = 24            # Panel height

#------------------------------------------------------------------------------
# Icon Size Options: Measured in pixels
#------------------------------------------------------------------------------
I_HEIGHT        = 16            # Panel application icon height
I_WIDTH         = 16            # Panel application icon Width 
APPL_I_HEIGHT   = 24            # Application launcher icon height
APPL_I_WIDTH    = 24            # Application launcher icon width
TRAY_I_HEIGHT   = 24            # System tray icon height (usually 16 or 24)
TRAY_I_WIDTH    = 24            # System tray icon width  (usually 16 or 24)
                                # If TRAY_I_WIDTH is set to 0, then the
                                # width specified by the tray app will be used
                                
#------------------------------------------------------------------------------
# Panel Clock Format: 'man strftime' for detailed formatting options and help
#------------------------------------------------------------------------------
CLOCK_FORMAT    = "%d/%m/%Y %H:%M"    # Ex: 2004-09-25 17:45 

#------------------------------------------------------------------------------
# Clock Delay: Seconds between each clock update during periods of inactivity
#------------------------------------------------------------------------------
CLOCK_DELAY     = 20

#------------------------------------------------------------------------------
# Hidden Application List: Apps listed here will not be display on the panel
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
# Ex: ["xmms", "xine", "gDesklets"]
#------------------------------------------------------------------------------
HIDE_LIST       = []            
                   
#------------------------------------------------------------------------------
# Hidden Panel Size: Size of the panel when it's hidden/minimized
#------------------------------------------------------------------------------
HIDDEN_SIZE     = 2

#------------------------------------------------------------------------------
# Panel Text Font: This option takes either a traditional or Xft font string 
# Ex: "-schumacher-clean-medium-r-normal-*-12-*-*-*-*-*-*-*"
#     "aquafont-8" 
#------------------------------------------------------------------------------
FONT            = "Gputeks-10"
#"bitstream vera sans-8"

#------------------------------------------------------------------------------
# Show All Applications: Show apps from all desktops or just the current
# 0: Disabled - Only applications on the current desktop will be displayed
# 1: Enabled  - Selected apps are moved to the current desktop
# 2: Enabled  - Current desktop is changed to the selected apps desktop
#------------------------------------------------------------------------------
SHOWALL         = 0             # 0, 1 or 2 - see descriptions above

#------------------------------------------------------------------------------
# Show Minimized/Iconified Applications: Show only minimized apps or all apps
# 0: Disabled - Show all applications on the panel
# 1: Enabled  - Show only minimized apps on the panel
#------------------------------------------------------------------------------
SHOWMINIMIZED   = 0

#------------------------------------------------------------------------------
# Application Icon List: List of custom icons for specific applications
# The application name is its WM_CLASS name, use 'xprop' to find WM_CLASS
#
# The "default" entry is used for applications with no icon.  If left "",
# PyPanel will use the default icon distributed with the source.
#
# Add entries using the following format -
#     "<application name>" : "<full path to icon>",
#------------------------------------------------------------------------------
ICON_LIST       = {
                   "default" : "",
                   "example" : "/usr/share/imlib2/data/images/audio.png",
                  }
                  
#------------------------------------------------------------------------------
# Application Launch List: Ordered list of icons and applications for the
#                          application launcher.
# 
# Add entries using the following format -
#     ("<executable>", "<full path to icon>")
#------------------------------------------------------------------------------
LAUNCH_LIST     = [
                   ("xdotool key alt+F1", "/home/kevin/icones/Arch.png"),
                   ("seamonkey -browser", "/home/kevin/icones/seamonkey.png"), 
                   ("amsn", "/home/kevin/icones/amsn7.png"),
		   ("thunar", "/home/kevin/icones/folder_home.png"),
                   ("soffice -writer", "/usr/share/icons/hicolor/128x128/apps/writer.png"),
                   ("sudo shutdown -h now", "/home/kevin/icones/shutdown-icon.png"),
                  ]

#------------------------------------------------------------------------------
# Background Alpha/Shade Level: 0 (Fully Translucent) -> 255 (Fully Opaque)
# BG_COLOR is used for tinting
#------------------------------------------------------------------------------
SHADE           = 0

#------------------------------------------------------------------------------
# Misc. Options: 1 = Enabled/Yes, 0 = Disabled/No
#------------------------------------------------------------------------------
ABOVE           = 1             # Panel is always above other apps
APPICONS        = 1             # Show application icons
AUTOHIDE        = 0             # Autohide uses the CLOCK_DELAY timer above
SHADOWS         = 1             # Show text shadows
SHOWLINES       = 0             # Show object seperation lines
SHOWBORDER      = 0             # Show a border around the panel

#------------------------------------------------------------------------------
# Desktop Names: Configure the names of your desktops
# If the option is [], PyPanel will attempt to use the desktop name specified
# by the XServer, if that fails it will use the desktop number as its name
# Ex. ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight"]
#------------------------------------------------------------------------------
DESKTOP_NAMES   = []

#------------------------------------------------------------------------------
# Panel Layout:       -----------------------------------
#                     [  1  ][  2  ][  3  ][  4  ][  5  ]
#                     -----------------------------------
#
# The panel layout is split into 5 sections numbered 1, 2, 3, 4 or 5 as shown
# in the diagram above.  Each of the following objects can be enabled by
# assigning it a section number or disabled by assigning it 0:
#------------------------------------------------------------------------------
DESKTOP         = 1             # Desktop name section
TASKS           = 3             # Task names section 
TRAY            = 4             # System tray section
CLOCK           = 5             # Clock section
LAUNCHER        = 2             # Application launcher section

#------------------------------------------------------------------------------
#                       Button Event Function Definitions
#------------------------------------------------------------------------------
# Left click   - button 1 
# Middle click - button 2
# Right click  - button 3
# Wheel up     - button 4
# Wheel down   - button 5 
#
# changeDesktop(x)
# - Change Desktop: Increase or decrease the current desktop by 'x' amount
# 
# toggleShade(task)
# - Shade or Unshade an application
#
# toggleHidden()
# - Minimize the panel to the top or bottom depending on its start location
#
# toggleMinimize(task, traise=1)
# - Minimize or Unminimize an application and optionally raise it
#
# taskRaise(task, focus=1)
# - Raise an application to the top of the window list and optionally focus it 
#
# taskLower(task, focus=0)
# - Lower an app to the bottom of the window list and optionally focus it
#
# taskFocus(task)
# - Give focus to the selected application, if it has focus then minimize it
#
# showDesktop()
# - Toggle between hiding and unhiding ALL applications
#------------------------------------------------------------------------------

#----------------------------------
def desktopButtonEvent(pp, button):
#----------------------------------
    """ Button event handler for the panel's desktop object """
        
    if button == 1:
        pp.changeDesktop(-1)
    elif button == 2:
        pp.changeDesktop(2)
    elif button == 3:
        pp.changeDesktop(1)
    elif button == 4:
        pp.changeDesktop(1)
    elif button == 5:
        pp.changeDesktop(-1)
        
#--------------------------------
def clockButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel's clock object """
    
    if button == 1:
        os.system("xclock &")
    elif button == 2:
        pass
    elif button == 3:
        pp.toggleHidden()  
    elif button == 4:
        pp.showDesktop()
    elif button == 5:
        pp.showDesktop()
        
#--------------------------------
def panelButtonEvent(pp, button):
#--------------------------------
    """ Button event handler for the panel with no active tasks """
    
    if button == 1:
        pass
    elif button == 2:
        pass
    elif button == 3:
        pass
    elif button == 4:
        pass
    elif button == 5:
        pass
        
#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)
    elif button == 2:
        # Destroy the application
        task.obj.destroy()
    elif button == 3:
        # Ex. - XMMS doesn't shade, so we want to minimize it instead and
        #       still use button 3 to shade other applications
        #       task.tclass is the tasks class name (WM_CLASS)
        if "xmms" in task.tclass:
            pp.toggleMinimize(task)
        else:
            pp.toggleShade(task)
    elif button == 4:
        pp.taskRaise(task, focus=1)
    elif button == 5:
        pp.taskLower(task, focus=0)
Quand je lance pypanel avec ton code ça me donne ça :

Failed to open ~/.pypanelrc -

Non-ASCII character '\xc2' in file /home/mori/.pypanelrc on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (.pypanelrc, line 3)
Ricard a écrit :
XeloS a écrit :
Sinon personne n'a d'idée pour flash ? c'est très embêtant.
:gne: T'as pas parlé d'un problème avec Flash....
Si tu veux parler de sudo, la réponse à ton problème est expliquée noir sur blanc dans le wiki. Il suffit de lire.
Avec visudo:

Code : Tout sélectionner

Autoriser l'utilisateur “jean” à éteindre l'ordinateur:
 jean  localhost=/sbin/shutdown -h now
Justement c'est ce que j'ai mis mais ça ne fonctionne pas, bref je réessaye.
Sinon pour flash, c'est plus haut, j'avais dit qu'il ne fonctionnait qu'en root.