Richard Bruno
navigation
Home
admin









Fluxbox
October 18th, 2016

Table des matières


Installer Fluxbox sur une centOS 6
Installer Fluxbox sur une Debian wheezy
Fluxbox startup
Customisation
wbar
Dell D430 (portable)
Problème de polices avec Debian

Installer Fluxbox (centOS 6)



wget http://mir01.syntis.net/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-5.noarch.rpm
yum install fluxbox



+ des infos sur EPEL : http://fedoraproject.org/wiki/EPEL

Installer Fluxbox sur une Debian wheezy



apt-get install fluxbox



Dans mon compte :

cat .xsession
exec startfluxbox



Fluxbox startup



Un exemple de fichier de démarrage :

cat .fluxbox/startup
#!/bin/sh
#
# fluxbox startup-script:
[...]
# supprimer le bip
xset b 0 &
idesk &
nm-applet &
gkrellm -w &
(sleep 2s && wbar -above-desk -pos right -vbar) &



Customisation



Nom des workspaces
Par défaut le nom des workspaces est "Bureau 1", "Bureau 2", etc.
Il est possible de modifier ces noms en éditant le fichier .fluxbox/init


Gestion des touches (fichier keys)

Pour passer de workspace en workspace avec les touches <touche windows><tab> :

cat keys
[...]
# change to previous/next workspace
Mod4 Left :PrevWorkspace
Mod4 Right :NextWorkspace
Mod4 Tab :NextWorkspace
Mod4 Shift Tab :PrevWorkspace
[...]



Sources :
http://fluxbox-wiki.org/index.php/Keyboard_shortcuts
http://fluxbox.sourceforge.net/docbook/fr/html/x246.html

En général (cf. xmodmap -pm) :

Mod1 == Alt
Mod4 == Windows key
Control == Ctrl
Shift == Shift



Par défaut ctrl-alt-suppr ferme la session...J'ai préféré remplacer la fermeture par un lockage de la session :

#Control Mod1 Delete :Exit
Control Mod1 Delete :ExecCommand xscreensaver-command -lock




wbar



"cp /usr/share/wbar/dot.wbar ~/.wbar

Enfin, nous allons éditer ce fichier /home/login/.wbar. La syntaxe est toute simple, voici un exemple pour Firefox :

i: /usr/share/wbar/iconpack/wbar.osx/firefox.png
c: firefox
t: Firefox

i correspond au chemin de l'icône qui s'affichera sur votre dock
c correspond à la commande qui sera exécutée en cliquant sur l'icône
f correspond au texte qui s'affichera au survol du curseur sur l'icône"

Source : http://www.generation-linux.fr/index.php?post/2009/04/26/Wbar-un-dock-tres-leger

cat .wbar
i: /usr/share/wbar/iconpack/wbar.osx/osxbarback.png
c: wbar -bpress -above-desk -pos center -zoomf 1.3 -isize 72 -idist 4 -jumpf 1 -nanim 3 -balfa 25
t: /usr/share/wbar/iconpack/wbar.osx/font/16

i: /usr/share/icons/hicolor/32x32/apps/iceweasel.png
c: iceweasel
t: iceweasel

i: /usr/share/icons/hicolor/32x32/apps/icedove.png
c: icedove
t: icedove

i: /usr/share/pixmaps/terminal.xpm
c: xfce4-terminal
t: terminal

i: /home/bruno/images/virtualbox.jpeg
c: virtualbox
t: virtualbox

i: /usr/share/pixmaps/other/XPDF.png
c: xpdf
t: XPDF

i: /usr/share/pixmaps/other/OpenOffice.png
c: ooffice
t: OpenOffice.Org

i: /usr/share/pixmaps/other/GIMP.png
c: gimp
t: GIMP




Dell D430 (portable)



Suspension à la fermeture du capot

L'événement lidbtn est déclenché qd je ferme le capot.
J'ai commenté trois lignes dans le fichier /etc/acpi/lid.sh :

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
# . /usr/share/acpi-support/screenblank
# if [ x$LID_SLEEP = xtrue ]; then
pm-suspend
# fi



Problème de polices avec Debian


Si vous n'utilisez ni gnome ni kde, les polices de la Debian sont affreuses.
Une solution simple :
rajoutez le code suivant

Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault


dans les fichiers ~/.Xresources et /etc/X11/Xresources/fonts-default.
Et tout devient beau...
Source : http://lovingthepenguin.blogspot.fr/2011/07/fixing-ugly-qt-fonts-in-openbox-fluxbox.html




Dernières modifs
Systemd (October 24th, 2020)
TP - rsyslogd (June 20th, 2017)
Gestion de la memoire (June 20th, 2017)
Ansible (November 10th, 2016)
Fichiers et systèmes de fichiers (November 8th, 2016)
X (October 20th, 2016)
Obtenir des informations sur le système (October 19th, 2016)

Contact
Pour m'envoyer un mail,
Pour me laisser un commentaire :
richard.brunooo
chez
gmail.com


powered by kure, modified by Bruno