Quentin Demoulière

Mon blog personnel

Marre de KDE et GNOME ? Passez à FluxBox !

Rédigé par Quentin Demouliere - - 1 commentaire

J'utilise sur mon PC de fonction une distribution ArchLinux depuis le début de l'année avec KDE  4. J'ai choisi ce bureau car beaucoup d'applications que j'utilise quotidiennement sont basées sur QT. Mais honnêtement, cela fait plusieurs années que je ne trouve pas de bureau qui me convienne sous Linux.

Aussi j'ai décidé qu'il fallait que cela change et sur les conseils d'amis, je suis passé à FluxBox que j'avais déjà testé dans un passé lointain. Depuis la mise en place de ce bureau, je suis plus que satisfait. Il est toutefois évident que ce type de Desktop est réservé à un public d'initiés car la configuration de celui-ci se passe uniquement en ligne de commande.

Voilà une synthèse de l'installation et de mes paramètrages :

# Mise à jour du système

[root@archSIO ~]#pacman -Suy

 

# Installation des paquets nécessaires

[root@archSIO ~]#pacman -S fluxbox feh fbpanel conky

 

# Supression de KDE et KDM en conservant certains logiciels que je continue à utiliser

[root@archSIO ~]# pacman -Rsn archlinux-themes-kdm kde-agent kdebase-kdepasswd kdebase-plasma kdebase-workspace ksshaskpass libreoffice-kde4 oxygen-gtk polkit-kde qtcurve-gtk2 kdeplasma-addons-runners-kopete kdeplasma-applets-networkmanagement

 

# Installation d'un gestionnaire de démarrage plus léger que KDM, LXDM

[root@archSIO ~]# pacman -S lxdm

Il y a quatre outils à distinguer : le bureau fluxbox, la barre d'application rappelant celle de gnome fbpanel (optionnelle), le gestionnaire de session lxdm et le widget conky (optionnel) qui sert à afficher des informations systèmes. Ces quatre outils sont à paramétrer à l'aide de fichiers de configuration. Voici ensuite les fichiers existants que j'ai modifié pour les adapter à mes besoins:

~/.fluxbox/startup

#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Change your keymap:
xmodmap "/home/toto/.Xmodmap"

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
idesk &
conky &
xcompmgr -c &
fbpanel &
kmix &
nm-applet &
xfce4-power-manager &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
# or if you want to keep a log:
exec fluxbox -log "/home/toto/.fluxbox/log"
sleep 1 && feh --bg-center /home/toto/wallpaper/fluxbox.jpg &

~/.fluxbox/init

session.screen0.slit.placement: RightBottom
session.screen0.slit.autoHide:  false
session.screen0.slit.acceptKdeDockapps: true
session.screen0.slit.onhead:    0
session.screen0.slit.layer:     Dock
session.screen0.slit.alpha:     150
session.screen0.slit.maxOver:   false
session.screen0.iconbar.usePixmap:      true
session.screen0.iconbar.iconTextPadding:        10
session.screen0.iconbar.iconWidth:      128
session.screen0.iconbar.alignment:      Relative
session.screen0.iconbar.mode:   {static groups} (workspace)
session.screen0.tabs.usePixmap: true
session.screen0.tabs.maxOver:   false
session.screen0.tabs.intitlebar:        true
session.screen0.clientMenu.usePixmap:   true
session.screen0.menu.alpha:     150
session.screen0.window.focus.alpha:     255
session.screen0.window.unfocus.alpha:   150
session.screen0.tab.placement:  TopLeft
session.screen0.tab.width:      64
session.screen0.toolbar.height: 0
session.screen0.toolbar.placement:      TopCenter
session.screen0.toolbar.onhead: 1
session.screen0.toolbar.widthPercent:   100
session.screen0.toolbar.layer:  Dock
session.screen0.toolbar.autoHide:       false
session.screen0.toolbar.maxOver:        false
session.screen0.toolbar.visible:        true
session.screen0.toolbar.alpha:  150
session.screen0.toolbar.tools:  prevworkspace, workspacename, nextworkspace, iconbar, systemtray, clock
session.screen0.tooltipDelay:   500
session.screen0.edgeSnapThreshold:      10
session.screen0.maxDisableMove: false
session.screen0.autoRaise:      true
session.screen0.tabFocusModel:  ClickToTabFocus
session.screen0.windowPlacement:        RowMinOverlapPlacement
session.screen0.opaqueMove:     true
session.screen0.windowMenu:     /home/toto/.fluxbox/windowmenu
session.screen0.allowRemoteActions:     false
session.screen0.maxDisableResize:       false
session.screen0.focusNewWindows:        true
session.screen0.clickRaises:    true
session.screen0.workspaceNames: Bureau 1,Bureau 2,Bureau 3,Bureau 4,
session.screen0.menuDelay:      200
session.screen0.noFocusWhileTypingDelay:        0
session.screen0.defaultDeco:    NORMAL
session.screen0.fullMaximization:       false
session.screen0.workspacewarping:       true
session.screen0.rowPlacementDirection:  LeftToRight
session.screen0.strftimeFormat: %k:%M
session.screen0.workspaces:     4
session.screen0.maxIgnoreIncrement:     true
session.screen0.showwindowposition:     false
session.screen0.focusModel:     ClickFocus
session.screen0.colPlacementDirection:  TopToBottom
session.styleOverlay:   /home/toto/.fluxbox/overlay
session.menuFile:       ~/.fluxbox/menu
session.cacheMax:       200
session.tabsAttachArea: Window
session.slitlistFile:   /home/toto/.fluxbox/slitlist
session.forcePseudoTransparency:        false
session.tabPadding:     0
session.colorsPerChannel:       4
session.keyFile:        ~/.fluxbox/keys
session.autoRaiseDelay: 250
session.cacheLife:      5
session.appsFile:       /home/qdemouliere/.fluxbox/apps
session.ignoreBorder:   false
session.styleFile:      /usr/share/fluxbox/styles/bora_black
session.doubleClickInterval:    250
session.configVersion:  13
session.forcePseudoTransparency.true
session.screen0.rootCommand: fbsetbg -f /home/toto/wallpaper/fluxbox.jpg

~/.fluxbox/menu

# Generated by fluxbox-generate_menu
#
# If you read this it means you want to edit this file manually, so here
# are some useful tips:
#
# - You can add your own menu-entries to ~/.fluxbox/usermenu
#
# - If you miss apps please let me know and I will add them for the next
#   release.
#
# - The -r option prevents removing of empty menu entries and lines which
#   makes things much more readable.
#
# - To prevent any other app from overwriting your menu
#   you can change the menu name in ~/.fluxbox/init to:
#     session.menuFile: ~/.fluxbox/my-menu
[begin] (Fluxbox-1.3.2)
[encoding] {UTF-8}
      [exec] (konsole) {konsole}
      [exec] (xterm) {xterm}
      [exec]   (Run) {fbrun}
[submenu] (Editors)
      [exec]   (kate) {kate}
      [exec]   (mcedit) {xterm -e mcedit}
      [exec]   (vim) {xterm -e vim}
[end]
[submenu] (Programmation)
      [exec]   (PgAdmin3) {pgadmin3}
      [exec]   (MySQL Workbench) {mysql-workbench}
      [exec]   (IDE QT) {}
[end]
[submenu] (Applications KDE)
      [exec]   (k3b) {k3b}
      [exec]   (kopete) {kopete}
[end]
[submenu] (Applications Internet)$
      [exec]   (Mutt) {xterm -e mutt}
end]
[submenu] (Fluxbox menu)
      [config] (Configure)
[submenu] (System Styles) {Choose a style...}
      [stylesdir] (/usr/share/fluxbox/styles)
[end]
[submenu] (User Styles) {Choose a style...}
      [stylesdir] (~/.fluxbox/styles)
[end]
      [workspaces] (Workspace List)
[submenu] (Tools)
      [exec] (Run) {fbrun}
      [exec] (Regen Menu) {fluxbox-generate_menu}
[end]
      [commanddialog] (Fluxbox Command)
      [reconfig] (Reload config)
      [restart] (Restart)
      [exec] (About) {(fluxbox -v; fluxbox -info | sed 1d) | xmessage -file - -center}
      [separator]
      [exit] (Exit)
[end]
[endencoding]
[end]

~/.fbpanel/default

# fbpanel <profile> config file
# see http://fbpanel.sf.net/docs.html for complete configuration guide

Global {
    edge = bottom
    allign = center
    margin = 0
    widthtype = percent
    width = 36
    height = 40
    transparent = true
    tintcolor = #ffffff
    alpha = 38
    setdocktype = true
    setpartialstrut = true
    autohide = false
    heightWhenHidden = 2
}

Plugin {
    type = launchbar
    config {
        button {
            image = ~/.fbpanel/gnome-fs-home.png
            action = konqueror
        }
        button {
            image = ~/.fbpanel/beast.png
            action = amarok
        }
        button {
            image = ~/.fbpanel/firefox.png
            action = firefox
        }
        button {
             image = ~/.fbpanel/konsole.png
             action = konsole
        }
        button {
             image = ~/.fbpanel/xmind.png
             action = ./Software/X-mind/XMind_Linux_64bit/xmind
        }
        button {
             image = ~/.fbpanel/firstclass.png
             action = wine /home/toto/.wine/drive_c/Program\ Files\ \(x86\)/FirstClass/fcc32.exe
        }
    }
}
Plugin {
    type = pager
    config {
        showwallpaper = true
    }
}

/etc/lxdm/lxdm.conf

## uncomment and set autologin username to enable autologin
# autologin=dgod

## uncomment and set timeout to enable timeout autologin,
## the value should >=5
# timeout=10

## default session or desktop used when no systemwide config
# session=/usr/bin/startlxde

## uncomment and set to set numlock on your keyboard
numlock=1

## set this if you don't want to put xauth file at ~/.Xauthority
# xauth_path=/tmp

## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk

[server]
## arg used to start xserver, not fully function
# arg=/usr/bin/X -background vt1

[display]
## gtk theme used by greeter
gtk_theme=Clearlooks

## background of the greeter
bg=/usr/share/lxdm/themes/Industrial/archlinuxlxdm.png

## if show bottom pane
bottom_pane=1

## if show language select control
lang=1

## if show keyboard layout select control
keyboard=0

## the theme of greeter
theme=Industrial

[input]

[userlist]
## if disable the user list control at greeter
disable=1

## whitelist user
white=

## blacklist user
black=

~/.conkyrc

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

alignment top_right
background yes
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=12
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
$nodename - $sysname $kernel on $machine
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

Je dispose maintenant d'un système beaucoup plus sobre, léger, performant et surtout moins "usine à gaz" (genre des processus qui tournent sans que l'on sache à quoi cela correspond).

 

Debian and Unix Addict

1 commentaire

#1 Fernie a dit :

session.screen0.rootCommand: fbsetbg -f /home/toto/wallpaper/fluxbox.jpg

that actually has to be: fbsetbg -l

rootCommand has been deprecated.

Écrire un commentaire

Quelle est la dernière lettre du mot ibdp ? :