EEEPC Asus France

Faire apparaitre et configurer le menu "Démarrer"

Un article de Wikeee Asustek EEE.

Sommaire

Généralités sur IceWM

Le EEE de Asus, dans son interface simplifiée, utilise le gestionnaire de fenêtre IceWM. Il est possible de le configurer de manière un peu plus poussée à travers la modification de ses fichiers de configuration.

Les paramètres de IceWM sont stockés à deux niveaux différents : dans le dossier de chaque utilisateur (~/.icewm/) et à l'échelle du système (/etc/X11/icewm/). Les fichiers utilisateurs sont prioritaires sur les fichiers système, c'est donc ceux-ci que nous allons éditer pour éviter les pépins graves en cas de problème. Lorsque IceWM ne trouve pas de fichiers de configuration utilisateur, il se base sur les préférences au niveau système.

Copier les fichiers système vers son compte utilisateur

Pour éviter les ennuis, nous ne modifierons que les fichiers de configuration au niveau utilisateur. En cas de problème, il suffira donc de supprimer le dossier ~/.icewm/ pour rétablir la situation.

IceWM utilise sur le EEE par défaut les préférences systèmes, aucun fichier de configuration utilisateur n'existe. Nous allons donc créer le dossier de configuration au niveau utilisateur, et le remplir par une copie directe des fichiers système comme base de travail.

Pour cela, ouvrez un Terminal et exécutez ces commandes :

mkdir ~/.icewm
cp /etc/X11/icewm/* /home/user/.icewm/

Maintenant, tous les fichiers éditables sont cachés dans votre dossier utilisateur.

Afficher le menu principal

Allez dans le dossier ~/.icewm et éditez le fichier "preferences". En ligne de commandes, cela donne :

cd ~/.icewm
kwrite preferences

(si vous souhaitez utiliser KWrite, un éditeur de texte simple en mode graphique installé par défaut sur le Xandros embarqué)

Cherchez la ligne

#  Show 'Start' menu on task bar
# TaskBarShowStartMenu=1 #0/1
TaskBarShowStartMenu=0

et changez le "0" en "1" ainsi :

#  Show 'Start' menu on task bar
# TaskBarShowStartMenu=1 #0/1
TaskBarShowStartMenu=1

Enregistrez et appuyez sur Ctrl + Alt + Ret. Arrière afin de redémarrer l'interface graphique. Le menu sera alors présent.

Configuration avancée du menu

Les entrées du menu de IceWM sont enregistrées dans le fichier "menu" dans ~/.icewm/ - on peut les éditer assez facilement. Contrairement à d'autres gestionnaires de fenêtre, elles ne sont pas modifiées automatiquement lors de l'ajout ou de la suppression de programmes, il faut donc mettre la main à la pâte.

Les lignes du menu ont la structure suivante :

type "Nom" icône programme

avec la possibilité de lister des programmes, des sous-menus, etc.

Les différents types possibles sont :

  • prog - Programme
  • separator - Ligne de séparation
  • menu - Gérer un sous-menu (encadrez les éléments inclus par { })
  • restart - Lancer un autre gestionnaire de fenêtre
  • menufile
  • menuprog

Par exemple, la ligne

 prog "Configuration" kcontrol kcontrol

permet d'obtenir une entrée pour le panneau de configuration KDE, dans lequel on retrouve des choses utiles comme la disposition du clavier ou les imprimantes.

Exemple de configuration du menu Démarrer

Ce fichier de configuration permet de retrouver toutes les applications installées dans le Xandros embarqué, classées selon les mêmes catégories. Vous pouvez le copier-coller intégralement dans le fichier menu comme base de travail, et ajouter/supprimer des lignes à votre guise.

Attention, la version française (SFR) du Eee n'inclut pas forcément toutes les applications énumérées ci-dessous. Dans le cas où le menu ne trouve pas l'application, il ne l'affichera pas même si sa ligne de configuration est présente dans ce fichier.

#########################################################################################
 #           Template for IceWM menu file that replicates the structure                    #
 #           of the tabs on the Asus eee Mini notebook version 2.0                         #                                   
 ########################################################################################
prog "Firefox" /usr/share/pixmaps/firefox.png firefox
prog "Terminal" xterm xterm
prog "Desktop Mode" /opt/xandros/share/AsusLauncher/desktop_mode_norm.png /usr/bin/display-settings
separator
 ########################################################################################
menu Internet folder {
    menu "Web Mail" folder {
        prog "Gmail" /opt/xandros/share/AsusLauncher/gmail_norm.png firefox -new-tab www.gmail.com
        prog "Hotmail" /opt/xandros/share/AsusLauncher/webmail_norm.png firefox -new-tab www.hotmail.com
        prog "Yahoo" /opt/xandros/share/AsusLauncher/webmail_norm.png firefox -new-tab http://login.yahoo.com/
        prog "AOL" /opt/xandros/share/AsusLauncher/webmail_norm.png firefox -new-tab www.aolmail.com/
}
    prog "Web (Firefox)" /usr/share/pixmaps/firefox.png firefox
    prog "Acrobat Reader" /usr/share/pixmaps/AdobeReader.png acroread
    prog "Infomation" /opt/xandros/share/AsusLauncher/information_norm.png firefox -new-tab http://www.google.com/ig/
    prog "Messenger" /opt/xandros/share/AsusLauncher/messenger_norm.png pidgin
    prog "Skype" /usr/share/pixmaps/skype.png skype
    prog "Network" /opt/xandros/share/AsusLauncher/network_norm.png kdesu xncswizard
    prog "eBook" /opt/xandros/share/AsusLauncher/ebook_norm.png kdesu FBReader
    prog "Google Docs" /opt/xandros/share/AsusLauncher/google_doc_norm.png firefox -new-tab docs.google.com
    prog "World Clock" /opt/xandros/share/AsusLauncher/kworldclock_norm.png kworldclock
    prog "Wikipedia" /opt/xandros/share/AsusLauncher/wikipedia_norm.png firefox -new-tab www.wikipedia.com
    prog "Internet Radio" /opt/xandros/share/AsusLauncher/internet_radio_norm.png firefox -new-tab www.mediayou.net/english
    prog "Wireless Networks" /opt/xandros/share/AsusLauncher/wireless_networks_norm.png sudo /usr/bin/xandrosncs-proxy --launch-wireless-tool
}
 ########################################################################################
menu Work folder {
    menu "Accessories" folder {
        prog "Calculator" /opt/xandros/share/AsusLauncher/calculator_norm.png kcalc
        prog "PIM" /opt/xandros/share/AsusLauncher/kontact_norm.png kontact
        prog "Screen Capture" /opt/xandros/share/AsusLauncher/ksnapshot_norm.png ksnapshot
}
    prog "Documents" /opt/xandros/share/AsusLauncher/documents_norm.png ooffice -writer
    prog "Spreadsheets" /opt/xandros/share/AsusLauncher/spreadsheet_norm.png ooffice -calc
    prog "Presentations" /opt/xandros/share/AsusLauncher/presentation_norm.png ooffice -impress
    prog "PDF Reader" /opt/xandros/share/AsusLauncher/kpdf_norm.png acroread
    prog "Mail (Thunderbird)" /opt/xandros/share/AsusLauncher/mail_norm.png /opt/thunderbird/thunderbird
    prog "File Manager" /opt/xandros/share/AsusLauncher/file_manager_norm.png /usr/bin/XandrosFileManager -caption File\ Manager -maximized
    prog "Dictionary" /opt/xandros/share/AsusLauncher/dictionary_norm.png /usr/bin/xlex
    prog "Notes" /opt/xandros/share/AsusLauncher/notes_norm.png knotes
separator
    prog "Text Editor (Kwrite)" /usr/share/pixmaps/kwrite.xpm kwrite
    prog "Text Editor (xedit)" /usr/share/pixmaps/khexedit.xpm xedit
}
 ########################################################################################
menu Learn folder {
    menu "Science" folder {
        prog "Periodic Table" /opt/xandros/share/AsusLauncher/kalzium_norm.png kalzium
        prog "Planetarium" /opt/xandros/share/AsusLauncher/kstars_norm.png kstars
}
    menu "Language" folder {
        prog "Typing" /opt/xandros/share/AsusLauncher/tuxtyping_norm.png /usr/games/tuxtype
        prog "Letter Game" /opt/xandros/share/AsusLauncher/kmessedwords_norm.png kmessedwords
        prog "Hangman Game" /opt/xandros/share/AsusLauncher/khangman_norm.png khangman
}
    menu "Math" folder {
        prog "Fraction Tutorial" /opt/xandros/share/AsusLauncher/kbruch_norm.png kbruch
        prog "TuxMath" /opt/xandros/share/AsusLauncher/tux_math_norm.png tuxmath
        prog "Geometry" /opt/xandros/share/AsusLauncher/kig_norm.png kig
        prog "Function Plotter" /opt/xandros/share/AsusLauncher/kmplot_norm.png kmplot
}
    menu "Paint" folder {
        prog "Paint" /opt/xandros/share/AsusLauncher/mtpaint_norm.png mtpaint
        prog "Tux Paint" /opt/xandros/share/AsusLauncher/tuxpaint_norm.png /usr/bin/tuxpaint --fullscreen --800x480
}
    prog "Web Learn" /opt/xandros/share/AsusLauncher/skool_norm.png /opt/firefox/firefox http://www.skoool.ie/
}
 ########################################################################################
menu Play folder {
    menu "Games" folder {
        prog "Solitaire" /opt/xandros/share/AsusLauncher/solitaire_norm.png /usr/games/kpat
        prog "Frozen Bubble" /opt/xandros/share/AsusLauncher/frozen_bubble_norm.png frozen-bubble --fullscreen
        prog "Crack Attack" /opt/xandros/share/AsusLauncher/crack_attack_norm.png crack-attack --solo --res 422
        prog "Penguin Racer" /opt/xandros/share/AsusLauncher/ppracer_norm.png ppracer
        prog "Sudoku" /opt/xandros/share/AsusLauncher/sudoku_norm.png gnome-sudoku
        prog "Potato Guy" /opt/xandros/share/AsusLauncher/potato_guy_norm.png ktuberling
        prog "LTris" /opt/xandros/share/AsusLauncher/ltris_norm.png /usr/games/ltris
}
    prog "Media Player (SMPlayer)" /opt/xandros/share/AsusLauncher/media_player_norm.png /usr/bin/smplayer
    prog "Music Manager (Amarok)" /opt/xandros/share/AsusLauncher/music_library_norm.png amarok
    prog "Photo Manager" /opt/xandros/share/AsusLauncher/photo_manager_norm.png /usr/bin/gwenview /home/user/My\ Documents/My\ Pictures
    prog "Video Manager" /opt/xandros/share/AsusLauncher/video_manager_norm.png /usr/bin/XandrosVideoManager -maximized
    prog "Webcam" /opt/xandros/share/AsusLauncher/camera_norm.png ucview
    prog "Sound Recorder" /opt/xandros/share/AsusLauncher/krecord_norm.png /usr/bin/krecord-hijack
}
 ########################################################################################
menu Settings folder {
    prog "Anti-Virus" /opt/xandros/share/AsusLauncher/antivirus_norm.png xav --show --raise
    prog "Volume" /opt/xandros/share/AsusLauncher/volume_control_norm.png /usr/bin/minimixer
    prog "Instant Shutdown" /opt/xandros/share/AsusLauncher/instant_shutdown_norm.png /opt/xandros/bin/shutdown_dialog shutdown
    prog "Printers" /opt/xandros/share/AsusLauncher/xprinters_norm.png kcmshell --lang `basename $LANG .UTF-8` --caption Printers xprinters
    prog "System Info" /opt/xandros/share/AsusLauncher/sysinfo_norm.png /opt/xandros/bin/system_info
    prog "Date & Time" /opt/xandros/share/AsusLauncher/date_time_norm.png /usr/bin/kcmshell --lang=`basename $LANG .UTF-8` --caption 'Date & Time' clock
    prog "Personalization" /opt/xandros/share/AsusLauncher/personalization_norm.png /opt/xandros/bin/password_dialog
    prog "Add/Remove Software" /opt/xandros/share/AsusLauncher/add_remove_soft_norm.png /usr/bin/sudo /opt/xandros/bin/XNLite
    prog "Touchpad" /opt/xandros/share/AsusLauncher/touchpad_norm.png gsynaptics
    prog "Disk Utility" /opt/xandros/share/AsusLauncher/disk_utility_norm.png /usr/bin/sudo /usr/bin/diskutil
    prog "Diagnostic Tools" /opt/xandros/share/AsusLauncher/diagnostics_norm.png /opt/asusdiag-0.1/runDiag
    prog "Desktop Mode" /opt/xandros/share/AsusLauncher/desktop_mode_norm.png /usr/bin/display-settings
    prog "VoiceCommand" /opt/xandros/share/AsusLauncher/voice_recognition_norm.png /usr/bin/voiceExecute
 separator
    prog "Package Manager" /usr/share/pixmaps/synaptic.png sudo /usr/sbin/synaptic
    prog "Font Selector" xfontsel xfontsel
    prog "Clock" xclock xclock
    prog "Magnify" xmag xmag
    prog "Calculator" xcalc xcalc
    prog "Clipboard" xclip xclipboard
    prog "xkill bomb" xkill xkill
}

Sources