mon .bbkeysrc





Bbkeys -sauf pour les mordus de la souris- est le complément obligatoire de Blackbox, permettant son pilotage au clavier. L'édition fine de ce fichier offre une ergonomie excellente, et permet de se passer de xbindkeys.





mon .bbkeysrc version moderne
(Slackware, à la maison)


[begin] (bbkeys configuration file)
[config]
[option]   (stylefile)   {/home/eb/.systeme/minimal}
[option]   (honorModifiers)   {false}
[option]   (raiseWhileCycling)   {false}
[option]   (showCycleMenu)   {true}
[option]   (menuTextJustify)   {right}
[option]   (autoConfig)   {true}
[option]   (autoConfigCheckTimeout)   {2}
[option]   (workspaceColumns)   {4}
[option]   (workspaceRows)   {2}
[option]   (cycleMenuX)   {20}
[option]   (cycleMenuY)   {20}
[end]


[keybindings] (begin keybindings)
[toggleMaximizeFull]     (Mod1-Down)
[resizeWindowHeight]   (Mod1-Up) {-40}
# Ouf ! La commande ci-dessous permet de supprimer les "décorations de fenêtres", que
Blackbox ne sait pas éradiquer nativement, à l'inverse de Fluxbox, Openbox et Ratpoison ; c'est d'ailleurs le principal inconvénient que je reproche à Blackbox.
[toggleDecorations]      (Mod4-space)
[moveWindowUp]       (Mod1-Control-Up)
[moveWindowDown]   (Mod1-Control-Down)
[moveWindowLeft]     (Mod1-Control-Left)
[moveWindowRight]   (Mod1-Control-Right)
[NextWindow]      (Mod1-Tab)
[Close]      (Mod1-F4)
[changeWorkspace]   (Mod4-KP_1)   {1}
[changeWorkspace]   (Mod4-KP_2)   {2}
[changeWorkspace]   (Mod4-KP_3)   {3}
[changeWorkspace]   (Mod4-KP_4)   {4}
[changeWorkspace]   (Mod4-KP_5)   {5}
[changeWorkspace]   (Mod4-KP_6)   {6}
[changeWorkspace]   (Mod4-KP_7)   {7}
[changeWorkspace]   (Mod4-KP_8)   {8}
[changeWorkspace]   (Mod4-KP_9)   {9}
[sendToWorkspace]   (Mod4-1)   {1}
[sendToWorkspace]   (Mod4-2)   {2}
[sendToWorkspace]   (Mod4-3)   {3}
[sendToWorkspace]   (Mod4-4)   {4}
[sendToWorkspace]   (Mod4-5)   {5}
[sendToWorkspace]   (Mod4-6)   {6}
[sendToWorkspace]   (Mod4-7)   {7}
[sendToWorkspace]   (Mod4-8)   {8}
[sendToWorkspace]   (Mod4-9)   {9}
[prevWorkspace]       (Mod4-Left)
[nextWorkspace]       (Mod4-Right)
[Execute]   (Mod4-Up)       {amixer set Master 3%+}
[Execute]   (Mod4-Down)   {amixer set Master 3%-}
[Execute]   (Mod4-Home)   {amixer set Master 100%}
[Execute]   (Mod4-End)      {amixer set Master 0%}
[Execute]   (Mod4-A)   {abiword -g 1600x1160}
[Execute]   (Mod4-C)   {xterm -fullscreen -font -*-fixed-*-r-*-*-20-*-*-*-*-*-*-* -e calcurse}
[Execute]   (Mod4-D)   {dillo}
[Execute]   (Mod4-F)   {firefox}
[Execute]   (Mod4-G)   {geeqie}
[Execute]   (Mod4-M)   {xterm -fullscreen -font -*-fixed-*-r-*-*-20-*-*-*-*-*-*-* -e mc}
[Execute]   (Mod4-N)   {gnumeric}
[Execute]   (Mod4-O)   {soffice}
[Execute]   (Mod4-P)   {pinta}
[Execute]   (Mod4-S)   {sylpheed}
[Execute]   (Mod4-T)   {transmission-gtk}
[Execute]   (Mod4-U)   {urxvt -transparent -shading 30 -ls -bg black -fg white -fn "xft:Bitstream Vera Sans Mono:pixelsize=18"}
[Execute]   (Mod4-V)   {vlc}
[Execute]   (Mod4-W)   {swriter}
[Execute]   (Mod4-X)   {xterm -ls -fullscreen -bg black -fg white -font -*-fixed-*-r-*-*-20-*-*-*-*-*-*-*}
[Execute]   (Mod4-Y)   {seamonkey}
[Execute]   (Mod4-Print)      {sleep 3 && import capture.png}
[Execute]   (Mod4-Pause)   {sudo eject /dev/cdrom}
[end] (end keybindings)
[end] (end bbkeys configuration)


J'ai personnalisé principalement le deuxième paragraphe des raccourcis-clavier [keybindings], ce qui me permet de n'avoir besoin du menu que très rarement.
- la touche 5 du pavé numérique s'appelle donc "KP_5" : le nom des touches (difficile à deviner !) est obtenu avec "xev"
- la touche "windows" s'appelle "Mod4" : idem ! comme quoi Windows peut rendre service même sur Linux (Mod1, c'est "Alt")
- mon idée est donc d'affecter toujours la même application au même espace, qu'on peut appeler par son numéro : ça va vite, c'est très pratique. Par exemple, pour aller sur l'espace n°3, je tape windows-3, et pour y ouvrir Firefox, windows-F





mon .bbkeysrc ancienne version
(Suse, à mon cabinet)


KeyToGrab(a), WithModifier(Mod1), WithAction(ExecCommand), DoThis(/usr/alorv/AbiSuite/bin/abiword -geometry 1024x800+0+0)
KeyToGrab(g), WithModifier(Mod1), WithAction(ExecCommand), DoThis(gimp)
KeyToGrab(m), WithModifier(Mod1), WithAction(ExecCommand), DoThis(xterm -geometry 1024x800+0+0 -font -*-fixed-*-r-*-*-20-*-*-*-*-*-*-* -e mc)
KeyToGrab(o), WithModifier(Mod1), WithAction(ExecCommand), DoThis(/usr/alor/alor_station/j4_lin.bat)
KeyToGrab(s), WithModifier(Mod1), WithAction(ExecCommand), DoThis(/home/eb/officenew/program/soffice)
KeyToGrab(x), WithModifier(Mod1), WithAction(ExecCommand), DoThis(xterm -ls -geometry 90x15+20+10 -bg black -fg white -font -*-fixed-*-r-*-*-20-*-*-*-*-*-*-* -name eb)
KeyToGrab(z), WithModifier(Mod1), WithAction(ExecCommand), DoThis(/usr/alorv/mozilla/mozilla)
KeyToGrab(Down), WithModifier(Mod1), WithAction(MaximizeWindow)
KeyToGrab(F4), WithModifier(Mod1), WithAction(Close)
KeyToGrab(q), WithModifier(Control), WithAction(Close)
KeyToGrab(KP_1), WithModifier(Mod1), WithAction(Workspace1)
KeyToGrab(KP_2), WithModifier(Mod1), WithAction(Workspace2)
KeyToGrab(KP_3), WithModifier(Mod1), WithAction(Workspace3)
KeyToGrab(KP_4), WithModifier(Mod1), WithAction(Workspace4)
KeyToGrab(Right), WithModifier(Mod1), WithAction(NextWorkspace)
KeyToGrab(Left), WithModifier(Mod1), WithAction(PrevWorkspace)


À mon cabinet, sur tous mes clients légers qui font tourner mon logiciel professionnel "Oplus" installé sur une Suse_8.0, j'ai remplacé le KDE d'origine par
Blackbox épaulé par Bbkeys ; ce qui me permet un démarrage beaucoup plus rapide, une meilleure ergonomie, et un fonctionnement plus réactif.
En plus de Bbkeys, si l'on souhaite faire démarrer automatiquement un logiciel -ici Oplus-, il suffit d'ajouter les lignes qui conviennent à la fin du fichier .xinitrc, juste avant celle qui démarre le gestionnaire de fenêtres
Blackbox :
           /usr/alor/alor_station/j4_lin.bat &
           /usr/X11R6/bin/bbkeys &
           exec /usr/X11R6/bin/blackbox
Ici, je n'ai pas pu utiliser "Mod4" car mon très vieux -mais très solide- clavier n'a pas de touche Windows !!






Conçu pour Blackbox, Bbkeys est capable d'épauler d'autres gestionnaires de fenêtres, comme Fluxbox ou Openbox, mais pas Twm.


mon Linux


accueil