How-To :: Gentoo + FluxBox


Ultimamente também tenho utilizado o ótimo gerenciador de janelas FluxBox, tanto no Slackware como no Gentoo, o que ocorre é que a minha configuração no Gentoo estava como um velho fusquinha 66 e a do Slack como um Volvo! rsrs, este post visa corrigir isto 😉

Gentoo + FluxBox + Conky + Tint2 + Sakura & Screenfetch + fbmenugen

Se você já está com o FluxBox instalado no Gentoo, ótimo! do contrário, instale-o assim:

$ sudo emerge --sync
$ sudo USE="-slit" emerge fluxbox
reinstalação cancelada do FluxBox…

Você também pode usar:

$ su -c 'echo "x11-wm/fluxbox -slit" > /etc/portage/package.use/fluxbox'
ou
$ su -c 'echo "x11-wm/fluxbox -slit" >> /etc/portage/package.use'
$ sudo emerge --sync
$ sudo emerge fluxbox

Em seguida trate de adicioná-lo ao seu ~/.xinitrc:

$ cp -v ~/.xinitrc ~/.xinitrc.old
$ echo "exec startfluxbox" >> ~/.xinitrc

Dependendo do seu método de login, escolha o FluxBox no seu Display Manager, atualmente estou em login automático sem Display Manager.

Se tudo der certo, seu FluxBox iniciará e apresentar-se-a horrivelmente assim:

horrível é pouco!

Instalação de Programas.

Menu.

A começar pelo menu do FluxBox, você poderia executar o seguinte para melhorá-lo:

$ fluxbox-generate_menu -is -ds

Mais ainda é muito pouco! diria que de horrível a péssimo! façamos o seguinte:

$ sudo emerge --sync
$ sudo emerge Data-Dump File-DesktopEntry File-MimeInfo Gtk2 Linux-DesktopFiles

Em seguida baixemos o fbmenugen (não a última versão, porque essa depende de uma versão mais atualizada do Linux-DesktopFiles), baixaremos a release 0.81:

$ wget https://github.com/trizen/fbmenugen/archive/0.81/fbmenugen-0.81.tar.gz
$ tar xvf fbmenugen-0.81.tar.gz
$ mkdir ~/bin
$ cp -v fbmenugen-0.81/fbmenugen ~/bin
$ mkdir ~/.config/fbmenugen
$ cp -v fbmenugen-0.81/schema.pl ~/.config/fbmenugen

Feito isto, bastará executar o comando abaixo para ter um menu decente e com ícones! (ou não) caso não queira isto:

$ fbmenugen -i # com ícones
ou
$ fbmenugen    # sem ícones

Caso não funcione, isto indica que o diretório $HOME/bin não está em seu $PATH, para contornar você pode executar assim:

$ sh ~/bin/fbmenugen -i # com ícones
ou
$ sh ~/bin/fbmenugen    # sem ícones

Ou simplesmente nos arquivos ~/.bashrc ou ~/.zshrc, adicione este diretório em seu $PATH, :

if [ -d "$HOME/bin" ]; then
    PATH="$HOME/bin:$PATH"
fi

Se não funcionar, se mate! rsrs

Com a cópia do arquivo schema.pl, o menu ficará ligeiramente modificado do meu (por exemplo, na configuração padrão, o editor de textos é o Geany e o terminal é o Xterm, aqui substitui pelo Leafpad e Sakura (depois de configurado estes dois poderão ser alterados em ~/.config/fbmenugen/config.pl. Além disso, criei os submenus Programas, Gentoo, Themes e alterei as opções de desligamento, reinício e saída, etc, caso queiram utilizar as minhas configs, salve os conteúdos abaixo, nos arquivos ~/.config/fbmenugen/confi.pl e ~/.config/fbmenugen/schema.pl e em seguida re-execute o fbmenugen:

~/.config/fbmenugen/config.pl:

#!/usr/bin/perl

# fbmenugen - configuration file
# This file will be updated automatically.
# Any additional comment and/or indentation will be lost.

=for comment

|| FILTERING
    | skip_filename_re    : Skip a .desktop file if its name matches the regex.
                            Name is from the last slash to the end. (e.g.: name.desktop)
                            Example: qr/^(?:gimp|xterm)\b/,    # skips 'gimp' and 'xterm'

    | skip_entry          : Skip a desktop file if the value from a given key matches the regex.
                            Example: [
                                {key => 'Name',       re => qr/(?:about|terminal)/i},
                                {key => 'Exec',       re => qr/^xterm/},
                                {key => 'OnlyShowIn', re => qr/XFCE/},
                            ],

    | substitutions       : Substitute, by using a regex, in the values of the desktop files.
                            Example: [
                                {key => 'Exec', re => qr/xterm/, value => 'sakura'},
                                {key => 'Exec', re => qr/\\\\/,  value => '\\', global => 1},    # for wine apps
                            ],

|| ICON SETTINGS
    | gtk_rc_filename     : Absolute path to the GTK configuration file.
    | missing_icon        : Use this icon for missing icons (default: gtk-missing-image)
    | icon_size           : Preferred size for icons. (default: 32)
    | generic_fallback    : Try to shorten icon name at '-' characters before looking at inherited themes. (default: 0)
    | force_icon_size     : Always get the icon scaled to the requested size. (default: 0)

|| KEYS
    | name_keys           : Valid keys for application name.
                            Example: ['Name[fr]', 'GenericName[fr]', 'Name'],   # french menu

|| PATHS
    | desktop_files_paths   : Absolute paths which contain .desktop files.
                              Example: [
                                '/usr/share/applications',
                                "$ENV{HOME}/.local/share/applications",
                                glob("$ENV{HOME}/.local/share/applications/wine/Programs/*"),
                              ],

|| NOTES
    | Regular expressions:
        * use qr/.../ instead of '...'
        * use qr/.../i for case insensitive mode

=cut

our $CONFIG = {
  "editor"              => "leafpad",
  "force_icon_size"     => 0,
  "generic_fallback"    => 0,
  "gtk_rc_filename"     => "$ENV{HOME}/.gtkrc-2.0",
  "icon_size"           => 32,
  "Linux::DesktopFiles" => {
                             desktop_files_paths     => ["/usr/share/applications"],
                             gtk_rc_filename         => "$ENV{HOME}/.gtkrc-2.0",
                             icon_dirs_first         => undef,
                             icon_dirs_last          => undef,
                             icon_dirs_second        => undef,
                             keep_unknown_categories => 1,
                             skip_entry              => undef,
                             skip_filename_re        => undef,
                             skip_svg_icons          => 1,
                             strict_icon_dirs        => undef,
                             substitutions           => undef,
                             terminalization_format  => "%s -e '%s'",
                             terminalize             => 1,
                             unknown_category_key    => "other",
                           },
  "menu_title"          => "Fluxbox",
  "missing_icon"        => "gtk-missing-image",
  "name_keys"           => ["Name"],
  "terminal"            => "sakura",
  "VERSION"             => 0.81,
}

~/.config/fbmenugen/schema.pl:

#!/usr/bin/perl

# fbmenugen - schema file

=for comment

    item:      add an item inside the menu               {item => ["command", "label", "icon"]},
    cat:       add a category inside the menu             {cat => ["name", "label", "icon"]},
    sep:       horizontal line separator                  {sep => undef}, {sep => "label"},
    raw:       any valid Fluxbox menu entry               {raw => q(...)},
    beg:       begin of a category                        {beg => ["name", "icon"]},
    end:       end of a category                          {end => undef},
    fluxbox:   the default Fluxbox config menu        {fluxbox => ["label", "icon"]},
    exit:      default "Exit" action                     {exit => ["label", "icon"]},

=cut

# NOTE:
#    * Keys and values are case sensitive. Keep all keys lowercase.
#    * ICON can be a either a direct path to an icon or a valid icon name
#    * Category names are case insensitive. (X-XFCE and x_xfce are equivalent)

require "$ENV{HOME}/.config/fbmenugen/config.pl";

## Text editor
my $editor = $CONFIG->{editor};

our $SCHEMA = [

    #          COMMAND                 LABEL              ICON
    {sep => 'Gentoo FluxBox Desktop '},
    {item => ['xfce4-screenshooter', 'Captura de tela',              'applets-screenshooter']},
    {item => ['leafpad',             'Editor de Texto',              'accessories-text-editor']},
    {item => ['sakura',              'Emulador de Terminal',         'gnome-terminal']},
    {item => ['thunar',              'Gerenciador de Arquivos',      'system-file-manager']},
    {item => ['opera',               'Navegador Web',                'web-browser']},
    {sep => undef},   

    #          NAME            LABEL                ICON
    {cat => ['utility',     'Accessories', 'applications-utilities']},
    {cat => ['development', 'Development', 'applications-development']},
    {cat => ['education',   'Education',   'applications-science']},
    {cat => ['game',        'Games',       'applications-games']},
    {cat => ['graphics',    'Graphics',    'applications-graphics']},
    {cat => ['audiovideo',  'Multimedia',  'applications-multimedia']},
    {cat => ['network',     'Network',     'applications-internet']},
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['other',       'Other',       'applications-other']},
    {cat => ['settings',    'Settings',    'applications-accessories']},
    {cat => ['system',      'System',      'applications-system']},

    ## Custom advanced settings
    {sep => undef},
    {beg => ['Configurações do Sistema', 'applications-engineering']},

    # fbmenugen category
    {beg => ['Fbmenugen', 'accessories-text-editor']},

    {item => ["$editor ~/.config/fbmenugen/schema.pl", 'Menu Schema', 'text-x-generic']},
    {item => ["$editor ~/.config/fbmenugen/config.pl", 'Menu Config', 'text-x-generic']},
    {sep  => undef},
    {item => ['~/bin/fbmenugen -i', 'Generate a menu with icons',     'accessories-text-editor']},
    {item => ['~/bin/fbmenugen',    'Generate a menu without icons',  'accessories-text-editor']},
    {sep  => undef},
    {item => ['~/bin/fbmenugen -d', 'Refresh cache', 'view-refresh']},
    {end => undef},

    # Gentoo category.
    {beg => ['Gentoo', 'distributor-logo-gentoo']},
    {item      => ["sudo $editor /etc/portage/repos.conf/gentoo.conf", 'Editar repos.conf/gentoo.conf',    $editor]},
    {item      => ["sudo $editor /etc/portage/make.conf", 'Editar make.conf',    $editor]},
    {item      => ["sudo $editor /etc/portage/package.accept_keywords",  'Editar package.accept.keywords',     $editor]},
    {item      => ["sudo $editor /etc/portage/package.mask",  'Editar package.mask',     $editor]},
    {item      => ["sudo $editor /etc/portage/package.unmask",  'Editar package.unmask',     $editor]},
    {item      => ["sudo $editor /etc/portage/package.license",  'Editar package.license',     $editor]},
    {end => undef},

    # Programs category.
    {beg => ['Programas', 'gnome-settings']},
    {item      => ["$editor ~/.conkyrc",              'Editar conkyrc',    $editor]},
    {item      => ["$editor ~/.config/tint2/tint2rc", 'Editar tint2rc',    $editor]},
    {item      => ["$editor ~/.zshrc",                'Editar bashrc',      $editor]},
    {item      => ["$editor .oh-my-zsh/custom/aliases.zsh",                'Editar Aliases for Bash',      $editor]},
    {item      => ["$editor .oh-my-zsh/custom/functions.zsh",                'Editar Functions for Bash',      $editor]},
    {item      => ["$editor ~/.zshrc",                'Editar zshrc',      $editor]},
    {item      => ["$editor .oh-my-zsh/custom/aliases.zsh",                'Editar Aliases for ZSH',      $editor]},
    {item      => ["$editor .oh-my-zsh/custom/functions.zsh",                'Editar Functions for ZSH',      $editor]},
    {item      => ["$editor .oh-my-zsh/custom/clean.zsh",                'Editar Cleaner',      $editor]},
    {end => undef},

    # Themes category.
    {beg => ['Themes', 'preferences-desktop-theme']},
    {item      => ["lxappearance",              'Alterar Aparência',    'preferences-desktop-theme']},
    {item      => ['nitrogen ~/Imagens',        'Trocar Wallpaper (Nitrogen)',     'nitrogen']},
    {item      => ['pcmanfm --desktop-pref',        'Trocar Wallpaper (PCManFM)',     'user-desktop']},
    {end => undef},

    # Fluxbox category
    {fluxbox => ['Fluxbox', 'preferences-desktop']},
    {regenerate => ['Atualizar menu', 'view-refresh']},
    {end => undef},
    {sep => undef},
    {item => ['gmrun',                      'Executar comando...',       'gtk-execute']},
    {sep => undef},
    {item => ['xscreensaver-command -lock', 'Bloquear tela',             'locked']},
    {sep => undef},
    {item => ['sudo halt',           'Desligar',                      'system-shutdown']},
    {item => ['sudo reboot',           'Reiniciar',                      'system-restart']},
    {exit => ['Exit',           'system-log-out']},
]

Painel e Volume Mixer.

Sugiro o levíssimo e adaptável Tint2, como painel, mas se quiser o que não faltam são opções: lxpanel, pypanel, fbpanel, entre outros:

$ sudo emerge -av tint2

Se optou pelo Tint2, convém também instalar um controlador de volume (desnecessário se for o LxPanel, Xfce4-panel), aqui optei pelo volumeicon:

$ sudo emerge -av volumeicon

Efeitos.

Para que seu FluxBox tenha efeitos ao minimizar, restaurar e mesmo transparências, temos como opção os Composite Managers: xcompmgr e o compton, faça sua escolha:

$ sudo emerge -av compton
ou
$ sudo emerge -av xcompmgr

Wallpaper.

Pode-se usar o Nitrogen para gerir os wallpapers, ou pode-se usar o feh, aqui optei pelo Nitrogen

$ sudo emerge -av nitrogen
$ nitrogen <caminho-da-pasta-de-imagens>

Tecla NumLock.

Para iniciar com a tecla NumLock ligada, instale o numlockx:

$ sudo emerge -av numlockx

Automount/Gerenciador de Arquivos.

Caso use o Thunar como gerenciador de arquivos, será necessário instalar o pacote udiskie:

$ sudo emerge -av udiskie thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman

Além disso, o lançador para o Gerenciador de Arquivos no arquivo ~/.config/fbmenugen/schema.pl deverá ser modificado, em vez de:

xdg-open .

ou

thunar

Use:

dbus-launch thunar

* talvez isso não seja necessário se usar o spacefm (mas instalado em conjunto com o pacote udevil:

$ sudo emerge -av spacefm udevil

Monitor de Sistema.

Lógico que é o Conky!:

$ sudo emerge -av conky

Ou como eu, pulando a USE nvidia:

$ sudo USE="-nvidia" emerge -av conky

Segue uma cópia do meu ~/.conkyrc-gentoo:

 conky.config = {
    own_window = true,
    own_window_transparent = true,
    own_window_type =  'desktop',
    background = true,
    use_xft = true,
    xftalpha = 0.5,
    update_interval = 1.0,
    total_run_times = 0,
    double_buffer = true,
    draw_shades = true,
    draw_outline = true,
    draw_borders = false,
    draw_graph_borders = true,
    minimum_size  = 200,
    minimum_height = 1000,
    maximum_width = 200,
    border_width = 0,
    default_color = 'white',
    default_shade_color = 'black',
    default_outline_color ='black',
    font = 'DejaVu Sans Mono:size=9',
    alignment =  'top_right',
    gap_x = 20,
    gap_y = 10,
    no_buffers = true,
    cpu_avg_samples = 2,
    override_utf8_locale = true,
    use_spacer =  'right'
}
conky.text = [[
${scroll 12 $nodename - $sysname $kernel on $machine | }
$hr
${color white}Uptime:$color $uptime
${color white}Frequência (en MHz):$color $freq
${color white}Frequência (en GHz):$color $freq_g
${color white}CPU Usado:$color $cpu% ${cpubar 4}
${color white}Processos:$color $processes  ${color white}
$hr
${font Droid Sans:style=Bold:size=6}
${font Droid Sans:size=10}${alignc}${time %H:%M}${font}
${alignc}${time %d %B %Y}

${voffset 6}${font Droid Sans:style=Bold:size=6}CPU${font}${offset -20}${voffset 10}${cpubar cpu0 4,18}
${voffset -23}${goto 40}Core 1: ${font Droid Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 7,70 EEEEEE}
#${voffset 1}${goto 40}Core 2: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 7,70 EEEEEE}
#${voffset 1}${goto 40}Core 3: ${font Droid Sans:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}${cpubar cpu3 7,70 EEEEEE}

${voffset 6}${font Droid Sans:style=Bold:size=8}RAM${font}${goto 40}RAM: ${font Droid Sans:style=Bold:size=8}$memperc%${font}
${voffset 6}${offset 1}${voffset -8}${membar 4,18}${voffset 4}${goto 40}${voffset -2}Livre: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font} ${goto 110}   Usada: ${font Droid Sans:style=Bold:size=8}${mem}${font}

${voffset 5}${font Droid Sans:style=Bold:size=8}SWAP${font}${goto 40}Swap: ${font Droid Sans:style=Bold:size=8}${swapperc}%${font}
${voffset 4}${offset 1}${voffset -7}${swapbar 4,18}${voffset 4}${goto 40}Livre: ${font Droid Sans:style=Bold:size=8}$swapmax${font} ${goto 110}   Usada: ${font Droid Sans:style=Bold:size=8}$swap${font}
$hr

${color white}Processos:
${color white}Name              PID   CPU%   MEM%
${color white}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey}${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey}${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey}${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey}${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color lightgrey}${top_mem name 6} ${top_mem pid 6} ${top_mem cpu 6} ${top_mem mem 6}
${color lightgrey}${top_mem name 7} ${top_mem pid 7} ${top_mem cpu 7} ${top_mem mem 7}
${color lightgrey}${top_mem name 8} ${top_mem pid 8} ${top_mem cpu 8} ${top_mem mem 8}
${color lightgrey}${top_mem name 9} ${top_mem pid 9} ${top_mem cpu 9} ${top_mem mem 9}
${color lightgrey}${top_mem name 10} ${top_mem pid 10} ${top_mem cpu 10} ${top_mem mem 10}
$hr

${voffset 4}${goto 20}/: ${font Droid Sans:style=Bold:size=6}${fs_used_perc /}%${font}${goto 100}${alignr}${fs_bar 6,68 /}
${offset 7}Livre: ${font Droid Sans:style=Bold:size=6}${fs_free /}${font} ${alignr 1}Usado: ${font Droid Sans:style=Bold:size=8}${fs_used /}${font}
${voffset 4}${goto 20}Home: ${font Droid Sans:style=Bold:size=6}${fs_used_perc /home}%${font}${goto 100}${alignr}${fs_bar 6,68 /home}
${offset 7}Livre: ${font Droid Sans:style=Bold:size=6}${fs_free /home}${font} ${alignr 1}Usado: ${font Droid Sans:style=Bold:size=8}${fs_used /home}${font}

${voffset 4}${goto 20}Temperatura: ${font Droid Sans:style=Bold:size=6}${execi 120 sudo hddtemp /dev/sda -n --unit=C}?C${font}${alignr}/dev/sda
${voffset 4}${goto 20}Temperatura: ${font Droid Sans:style=Bold:size=6}${execi 120 sudo hddtemp /dev/sdb -n --unit=C}?C${font}${alignr}/dev/sdb
${voffset 4}${goto 20}Temperatura: ${font Droid Sans:style=Bold:size=6}${execi 120 sudo hddtemp /dev/sdb -n --unit=C}?C${font}${alignr}/dev/sdb
$hr

Active Interface ${alignr}$gw_iface
Gateway IP ${alignr}$gw_ip
DNS ${alignr}$nameserver
TOR Status ${alignr}${if_running tor} Active${else}Disabled${endif}
Upload speed:${alignr}${upspeed eth0}kb/s
$alignr${downspeedgraph eth0 20,200 556B2F 9ACD32}${color}
Download speed:${alignr}${downspeedf eth0}kb/s
$alignr${downspeedgraph eth0 20,200 556B2F 9ACD32}${color}
]]

Screensaver e Bloqueio de Tela.

$ sudo emerge -av x11-misc/xscreensaver x11-misc/xlockmore x11-misc/xautolock

Executar aplicações gráficas como root.

Isto já está incluso no arquivo ~/.fluxbox.startup:

xhost +

Ajustes no FluxBox.

Startup.

Abaixo segue a configuração do arquivo ~/.fluxbox/startup:

#!/bin/sh
#
# Update on 20180517, based on Gentoo Wiki:
# https://wiki.gentoo.org/wiki/Fluxbox
# by @edps on edpsblog.wordpress.com

## Enabling privileged operations through polkit.
## GNOME PolicyKit and Keyring.
sleep 1 && /usr/libexec/polkit-gnome-authentication-agent-1 &
eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &

## Desktop Wallpaper.
(nitrogen --restore) &

## NumLock.
(numlockx on) &

## Compositor.
## (compton -cCGb) &
(xcompmgr -cfF -I-.016 -O-.03 -D2 -t-1 -l-1 -r4.2 -o.5) &

## Tint2.
(tint2 -c ~/.config/tint2/horizontal-dark-opaque.tint2rc) &

## Volumeicon.
(volumeicon) &

## Automount para o Thunar.
(udiskie -a) &

## Thunar (daemon mode).
if [ "$(readlink -f $(which Thunar))" = "$(which thunar)" ]
then
    dbus-launch thunar --daemon &
fi

## Conky.
(conky -c ~/.conkyrc-gentoo) &

## Xscreensaver.
(xscreensaver -no-splash) &

## Display locking
(xautolock -time 20 -locker "xlock -mode blank" -secure) &

## Libera a abertura de aplicativos gráficos como root.
(xhost +) &

## Inicia o FluxBox.
exec fluxbox

Init.

E agora a configuração do arquivo ~/.fluxbox/init:

session.screen0.menu.alpha:	180
session.screen0.iconbar.iconTextPadding:	10
session.screen0.iconbar.alignment:	Relative
session.screen0.iconbar.iconWidth:	70
session.screen0.iconbar.mode:	{static groups} (workspace)
session.screen0.iconbar.usePixmap:	true
session.screen0.toolbar.maxOver:	false
session.screen0.toolbar.placement:	TopCenter
session.screen0.toolbar.alpha:	180
session.screen0.toolbar.widthPercent:	100
session.screen0.toolbar.height:	0
session.screen0.toolbar.visible:	false
session.screen0.toolbar.tools:	
session.screen0.toolbar.layer:	Dock
session.screen0.toolbar.autoHide:	false
session.screen0.toolbar.onhead:	0
session.screen0.titlebar.left:	Stick 
session.screen0.titlebar.right:	Minimize Maximize Close 
session.screen0.slit.maxOver:	false
session.screen0.slit.placement:	BottomCenter
session.screen0.slit.alpha:	180
session.screen0.slit.layer:	Dock
session.screen0.slit.acceptKdeDockapps:	true
session.screen0.slit.onhead:	0
session.screen0.slit.autoHide:	true
session.screen0.window.focus.alpha:	180
session.screen0.window.unfocus.alpha:	200
session.screen0.tabs.usePixmap:	true
session.screen0.tabs.maxOver:	false
session.screen0.tabs.intitlebar:	true
session.screen0.overlay.lineWidth:	1
session.screen0.overlay.lineStyle:	LineSolid
session.screen0.overlay.joinStyle:	JoinMiter
session.screen0.overlay.capStyle:	CapNotLast
session.screen0.tab.placement:	TopLeft
session.screen0.tab.width:	64
session.screen0.clientMenu.usePixmap:	true
session.screen0.clickRaises:	true
session.screen0.rootCommand:	
session.screen0.maxDisableResize:	false
session.screen0.focusSameHead:	false
session.screen0.fullMaximization:	true
session.screen0.strftimeFormat:	%d %b, %a %02k:%M:%S
session.screen0.noFocusWhileTypingDelay:	0
session.screen0.tabFocusModel:	ClickToTabFocus
session.screen0.edgeSnapThreshold:	10
session.screen0.followModel:	SemiFollow
session.screen0.focusNewWindows:	true
session.screen0.maxIgnoreIncrement:	true
session.screen0.menuMode:	Delay
session.screen0.workspaceNames:	\303\201rea de Trabalho 1,\303\201rea de Trabalho 2,\303\201rea de Trabalho 3,\303\201rea de Trabalho 4,
session.screen0.colPlacementDirection:	TopToBottom
session.screen0.windowPlacement:	RowMinOverlapPlacement
session.screen0.rowPlacementDirection:	LeftToRight
session.screen0.menuDelayClose:	200
session.screen0.autoRaise:	true
session.screen0.workspacewarping:	true
session.screen0.opaqueMove:	true
session.screen0.workspaces:	1
session.screen0.maxDisableMove:	false
session.screen0.focusModel:	ClickFocus
session.screen0.defaultDeco:	NORMAL
session.screen0.allowRemoteActions:	false
session.screen0.showwindowposition:	true
session.screen0.windowMenu:	~/.fluxbox/windowmenu
session.screen0.menuDelay:	200
session.screen0.userFollowModel:	SemiFollow
session.screen0.tooltipDelay:	500
session.styleOverlay:	~/.fluxbox/overlay
session.doubleClickInterval:	250
session.autoRaiseDelay:	250
session.cacheLife:	5
session.configVersion:	13
session.tabsAttachArea:	Window
session.cacheMax:	200
session.ignoreBorder:	false
session.styleFile:	~/.fluxbox/styles/Blue_Black
session.menuSearch:	itemstart
session.appsFile:	~/.fluxbox/apps
session.tabPadding:	0
session.colorsPerChannel:	4
session.forcePseudoTransparency:	true
session.slitlistFile:	~/.fluxbox/slitlist
session.menuFile:	~/.fluxbox/menu
session.keyFile:	~/.fluxbox/keys

Menu (de novo).

E apenas como um exemplo, segue uma cópia do meu arquivo ~/.fluxbox/menu, o qual está aqui apenas a título informativo, você não deve copiá-lo (a menos que queira alterar uma série de edpss rsrs:

#
## Menu generated with fbmenugen v0.81
#

[begin] (Fluxbox)
[encoding] {UTF-8}
[separator]
  [exec] (Captura de tela) {xfce4-screenshooter} </home/edps/.config/fbmenugen/icons/57c4f20a74d6e0375012ea1960d5e6a1.png>
  [exec] (Editor de Texto) {leafpad} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Emulador de Terminal) {sakura} </home/edps/.config/fbmenugen/icons/32408d8cadefd1d162702b5267f57fe8.png>
  [exec] (Gerenciador de Arquivos) {thunar} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
  [exec] (Navegador Web) {opera} </home/edps/.config/fbmenugen/icons/afb4428ca9f0048c7349bb6eed5dd9c9.png>
[separator]
[submenu] (Accessories) </home/edps/.config/fbmenugen/icons/378316819535dbb35f6de942b0dbbb22.png>
  [exec] (About Xfce) {xfce4-about} </home/edps/.config/fbmenugen/icons/9e1a903dfba62c8bb1cfd1cd6a4631bd.png>
  [exec] (Bulk Rename) {/usr/lib64/Thunar/ThunarBulkRename} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
  [exec] (compton) {compton} <>
  [exec] (Engrampa Archive Manager) {engrampa} </home/edps/.config/fbmenugen/icons/fd428ecdd1dcbce5335f20c646f9a480.png>
  [exec] (File Manager) {exo-open --launch FileManager} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
  [exec] (Galculator) {galculator} </home/edps/.config/fbmenugen/icons/ef65ed86c5cffdf5a70b90f6b76d60bf.png>
  [exec] (HP Device Manager) {hp-toolbox} </home/edps/.config/fbmenugen/icons/f08018c4db4c0bb1154ca225bd7fa95e.png>
  [exec] (Image Viewer) {gpicview} </home/edps/.config/fbmenugen/icons/6cb697e66d0e77265bea91875914845e.png>
  [exec] (Leafpad) {leafpad} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (nitrogen) {nitrogen} </home/edps/.config/fbmenugen/icons/f21bc20e202661aa67c8db3ada1a812e.png>
  [exec] (Sakura) {sakura} </home/edps/.config/fbmenugen/icons/32408d8cadefd1d162702b5267f57fe8.png>
  [exec] (Screenshot) {xfce4-screenshooter} </home/edps/.config/fbmenugen/icons/57c4f20a74d6e0375012ea1960d5e6a1.png>
  [exec] (SpaceFM File Search) {spacefm --find-files} </home/edps/.config/fbmenugen/icons/93f3ecf144a2755fee9d0c1e0ce20ef7.png>
  [exec] (SpaceFM) {spacefm} </home/edps/.config/fbmenugen/icons/84302f044606bea75a3e367a61c540e4.png>
  [exec] (Terminal Emulator) {exo-open --launch TerminalEmulator} </home/edps/.config/fbmenugen/icons/32408d8cadefd1d162702b5267f57fe8.png>
  [exec] (Thunar File Manager) {thunar} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
[end]
[submenu] (Development) </home/edps/.config/fbmenugen/icons/5bb9df7f7707a9fa941ef4d8413ffff9.png>
  [exec] (sandbox) {sakura -e 'sandbox'} </home/edps/.config/fbmenugen/icons/2e1907526566c75a48b44a0cdb5384ae.png>
[end]
[submenu] (Education) </home/edps/.config/fbmenugen/icons/752aadc8bccd026c4305bd4fe084543c.png>
  [exec] (LibreOffice Math) {libreoffice --math} </home/edps/.config/fbmenugen/icons/68e48ab1f2d663c47f7b55548779f2e0.png>
[end]
[submenu] (Graphics) </home/edps/.config/fbmenugen/icons/ceb7b3d0e4199ef9110cca83ef07f3a3.png>
  [exec] (FontForge) {fontforge} </home/edps/.config/fbmenugen/icons/1dce820b7741da1ab36d36762c6715c8.png>
  [exec] (Image Viewer) {gpicview} </home/edps/.config/fbmenugen/icons/6cb697e66d0e77265bea91875914845e.png>
  [exec] (LibreOffice Draw) {libreoffice --draw} </home/edps/.config/fbmenugen/icons/2aff87f0714c7742586e729c3b3d852d.png>
  [exec] (MATE Color Selection) {mate-color-select} </home/edps/.config/fbmenugen/icons/927eb5f851f3cded3c8e9e671e5ae913.png>
  [exec] (mtPaint) {mtpaint} </home/edps/.config/fbmenugen/icons/734b2b5bc671dfd2b4a1ea7d916e3d8d.png>
  [exec] (MuPDF) {mupdf} </home/edps/.config/fbmenugen/icons/f3ebca9999048f5d88ff7512d9797d1a.png>
[end]
[submenu] (Multimedia) </home/edps/.config/fbmenugen/icons/1c7406a2b8938c3349587020cfa52f98.png>
  [exec] (Flacon) {flacon} </home/edps/.config/fbmenugen/icons/8f4b80ac63944b1889f4f274dfdb609e.png>
  [exec] (fre:ac) {freac} </home/edps/.config/fbmenugen/icons/ce88daf5f70794241d36a717183c23ea.png>
  [exec] (HandBrake) {ghb} </home/edps/.config/fbmenugen/icons/9f940116fd3f62a97e99606f9eebbb91.png>
  [exec] (mpv Media Player) {mpv --player-operation-mode=pseudo-gui --} </home/edps/.config/fbmenugen/icons/8de37f3493b611515a033ac8f414b118.png>
  [exec] (Pogo) {pogo} </home/edps/.config/fbmenugen/icons/799bd2aad66d8137ed79207490abc893.png>
  [exec] (SMPlayer) {smplayer} </home/edps/.config/fbmenugen/icons/66682ce07e52fe05ffecf6a7b337bb11.png>
  [exec] (Sound Converter) {soundconverter} </home/edps/.config/fbmenugen/icons/30d66bbc28ffcaddf5e73c1f71cc4862.png>
  [exec] (XCFA) {xcfa} </home/edps/.config/fbmenugen/icons/1be782963f227d629f68fb1510a3c771.png>
[end]
[submenu] (Network) </home/edps/.config/fbmenugen/icons/eabe33d34af694cd6da480f1d4f367ff.png>
  [exec] (FreeRapid) {/usr/bin/freerapid} </home/edps/.config/fbmenugen/icons/0343c73e413eea64b9f7b07fb91d673a.png>
  [exec] (Google Chrome) {/usr/bin/google-chrome-stable} </home/edps/.config/fbmenugen/icons/bdecb5ee1aa7a9f0dd8f5db6cb62aad2.png>
  [exec] (Mail Reader) {exo-open --launch MailReader} </home/edps/.config/fbmenugen/icons/a63a04cdcc16a07a41f7d9c1d56943ad.png>
  [exec] (Opera Next) {/usr/bin/opera-next} </home/edps/.config/fbmenugen/icons/a207292da575171d1d7360a474bfe519.png>
  [exec] (Opera) {/usr/bin/opera} </home/edps/.config/fbmenugen/icons/49ed299420b2f07cf1b6f20acfcec6c4.png>
  [exec] (Transmission) {transmission-gtk} </home/edps/.config/fbmenugen/icons/0a902084ab2aa7903900258d6d4ee8b7.png>
  [exec] (Web Browser) {exo-open --launch WebBrowser} </home/edps/.config/fbmenugen/icons/afb4428ca9f0048c7349bb6eed5dd9c9.png>
[end]
[submenu] (Office) </home/edps/.config/fbmenugen/icons/12e459053bba5c157632211b35005dda.png>
  [exec] (Atril Document Viewer) {atril} </home/edps/.config/fbmenugen/icons/77339153dc39bc079858d26eb336204f.png>
  [exec] (LibreOffice Base) {libreoffice --base} </home/edps/.config/fbmenugen/icons/2ee18ecdf4bb686f90cc8bb24611e035.png>
  [exec] (LibreOffice Calc) {libreoffice --calc} </home/edps/.config/fbmenugen/icons/e5317101ba726389adc236530f190216.png>
  [exec] (LibreOffice Draw) {libreoffice --draw} </home/edps/.config/fbmenugen/icons/2aff87f0714c7742586e729c3b3d852d.png>
  [exec] (LibreOffice Impress) {libreoffice --impress} </home/edps/.config/fbmenugen/icons/519d2cfe8dfa254fb4c4325e8c5c55a3.png>
  [exec] (LibreOffice Math) {libreoffice --math} </home/edps/.config/fbmenugen/icons/68e48ab1f2d663c47f7b55548779f2e0.png>
  [exec] (LibreOffice Writer) {libreoffice --writer} </home/edps/.config/fbmenugen/icons/12e459053bba5c157632211b35005dda.png>
  [exec] (LibreOffice) {libreoffice} </home/edps/.config/fbmenugen/icons/a01e842d000e77c6767e4da0915ed277.png>
[end]
[submenu] (Settings) </home/edps/.config/fbmenugen/icons/378316819535dbb35f6de942b0dbbb22.png>
  [exec] (Adobe Flash Player) {flash-player-properties} </home/edps/.config/fbmenugen/icons/ba62a7e411c0ddd4bde88531b56cae33.png>
  [exec] (Customize Look and Feel) {lxappearance} </home/edps/.config/fbmenugen/icons/0ca9a45c383329deca6d4f4790696fbf.png>
  [exec] (File Manager) {thunar-settings} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
  [exec] (Openbox Configuration Manager) {obconf} </home/edps/.config/fbmenugen/icons/a2291ffd62e62effa109cb01925f416c.png>
  [exec] (Panel) {xfce4-panel --preferences} </home/edps/.config/fbmenugen/icons/4b99b37e5e333459602861d84472f505.png>
  [exec] (Preferred Applications) {exo-preferred-applications} </home/edps/.config/fbmenugen/icons/285be947c03691d9caaf1ad6d71d4bc9.png>
  [exec] (Preferred Applications) {libfm-pref-apps} </home/edps/.config/fbmenugen/icons/d31cc20bf608b6ab0b9b74dc48f2a944.png>
  [exec] (Print Settings) {system-config-printer} </home/edps/.config/fbmenugen/icons/341305ab8672bfc05528faebf86b6834.png>
  [exec] (Removable Drives and Media) {thunar-volman-settings} </home/edps/.config/fbmenugen/icons/81f990e4d039605a37ad933ee9b1090c.png>
  [exec] (Screensaver) {xscreensaver-demo} </home/edps/.config/fbmenugen/icons/a1d996b1672e810f2afb8f34015340d5.png>
[end]
[submenu] (System) </home/edps/.config/fbmenugen/icons/804cd266867830c1f51571abfbd77278.png>
  [exec] (BleachBit) {bleachbit} </home/edps/.config/fbmenugen/icons/cbc0ec7b8284045ffc74db39df654bad.png>
  [exec] (Bulk Rename) {/usr/lib64/Thunar/ThunarBulkRename} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
  [exec] (Htop) {sakura -e 'htop'} </home/edps/.config/fbmenugen/icons/1e7391a715ce55d235dfc582c2af4a2e.png>
  [exec] (Manage Printing) {/usr/bin/xdg-open http://localhost:631/} </home/edps/.config/fbmenugen/icons/23e6bf96ad0a4150053d6f86582067b7.png>
  [exec] (Print Settings) {system-config-printer} </home/edps/.config/fbmenugen/icons/341305ab8672bfc05528faebf86b6834.png>
  [exec] (Sakura) {sakura} </home/edps/.config/fbmenugen/icons/32408d8cadefd1d162702b5267f57fe8.png>
  [exec] (SpaceFM) {spacefm} </home/edps/.config/fbmenugen/icons/84302f044606bea75a3e367a61c540e4.png>
  [exec] (Thunar File Manager) {thunar} </home/edps/.config/fbmenugen/icons/12c40387f7cca64b04cb5601a9311696.png>
  [exec] (Tint2) {tint2} </home/edps/.config/fbmenugen/icons/d470a1e1e3117cdfe0b100bedf557a17.png>
  [exec] (UXTerm) {uxterm} </home/edps/.config/fbmenugen/icons/7981a46c7022d532c3c1bb6a09fedbce.png>
  [exec] (XTerm) {xterm -fa monaco -fs 12 -bg black -fg green} </home/edps/.config/fbmenugen/icons/7981a46c7022d532c3c1bb6a09fedbce.png>
[end]
[separator]
[submenu] (Configurações do Sistema) </home/edps/.config/fbmenugen/icons/804cd266867830c1f51571abfbd77278.png>
[submenu] (Fbmenugen) </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Menu Schema) {leafpad ~/.config/fbmenugen/schema.pl} </home/edps/.config/fbmenugen/icons/2cb2c99fa754b3e172e70703cbfcd41c.png>
  [exec] (Menu Config) {leafpad ~/.config/fbmenugen/config.pl} </home/edps/.config/fbmenugen/icons/2cb2c99fa754b3e172e70703cbfcd41c.png>
[separator]
  [exec] (Generate a menu with icons) {~/bin/fbmenugen -i} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Generate a menu without icons) {~/bin/fbmenugen} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
[separator]
  [exec] (Refresh cache) {~/bin/fbmenugen -d} </home/edps/.config/fbmenugen/icons/e0512e7bfb76fd5f2e17127d766ec198.png>
[end]
[submenu] (Gentoo) <>
  [exec] (Editar repos.conf/gentoo.conf) {sudo leafpad /etc/portage/repos.conf/gentoo.conf} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar make.conf) {sudo leafpad /etc/portage/make.conf} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar package.accept.keywords) {sudo leafpad /etc/portage/package.accept_keywords} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar package.mask) {sudo leafpad /etc/portage/package.mask} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar package.unmask) {sudo leafpad /etc/portage/package.unmask} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar package.license) {sudo leafpad /etc/portage/package.license} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
[end]
[submenu] (Programas) </home/edps/.config/fbmenugen/icons/633f0dc339916a70cdf25310ff677208.png>
  [exec] (Editar conkyrc) {leafpad ~/.conkyrc} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar tint2rc) {leafpad ~/.config/tint2/tint2rc} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar bashrc) {leafpad ~/.zshrc} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar Aliases for Bash) {leafpad .oh-my-zsh/custom/aliases.zsh} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar Functions for Bash) {leafpad .oh-my-zsh/custom/functions.zsh} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar zshrc) {leafpad ~/.zshrc} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar Aliases for ZSH) {leafpad .oh-my-zsh/custom/aliases.zsh} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar Functions for ZSH) {leafpad .oh-my-zsh/custom/functions.zsh} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
  [exec] (Editar Cleaner) {leafpad .oh-my-zsh/custom/clean.zsh} </home/edps/.config/fbmenugen/icons/bae62081bc455477b8f9a8c762bcfb61.png>
[end]
[submenu] (Themes) </home/edps/.config/fbmenugen/icons/0ca9a45c383329deca6d4f4790696fbf.png>
  [exec] (Alterar Aparência) {lxappearance} </home/edps/.config/fbmenugen/icons/0ca9a45c383329deca6d4f4790696fbf.png>
  [exec] (Trocar Wallpaper (Nitrogen\)) {nitrogen ~/Imagens} </home/edps/.config/fbmenugen/icons/f21bc20e202661aa67c8db3ada1a812e.png>
  [exec] (Trocar Wallpaper (PCManFM\)) {pcmanfm --desktop-pref} </home/edps/.config/fbmenugen/icons/7e3c8187e0b218b130affae892e868aa.png>
[end]
[submenu] (Fluxbox) </home/edps/.config/fbmenugen/icons/d31cc20bf608b6ab0b9b74dc48f2a944.png>
[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] (Screenshot - JPG) {import screenshot.jpg && display -resize 50% screenshot.jpg}
  [exec] (Screenshot - PNG) {import screenshot.png && display -resize 50% screenshot.png}
  [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]
  [exec] (Atualizar menu) {/usr/bin/perl \/home\/edps\/bin\/fbmenugen -i -S \/home\/edps\/\.config\/fbmenugen\/schema\.pl -C \/home\/edps\/\.config\/fbmenugen\/config\.pl -o \/home\/edps\/\.fluxbox\/menu} </home/edps/.config/fbmenugen/icons/e0512e7bfb76fd5f2e17127d766ec198.png>
[end]
[separator]
  [exec] (Executar comando...) {gmrun} </home/edps/.config/fbmenugen/icons/46477f639214bde092a8ea7d25227a5b.png>
[separator]
  [exec] (Bloquear tela) {xscreensaver-command -lock} </home/edps/.config/fbmenugen/icons/2f197f91229e6e79391e20f90f9ee589.png>
[separator]
  [exec] (Desligar) {sudo halt} </home/edps/.config/fbmenugen/icons/3fd63eed803c3db77125550940c9d7c6.png>
  [exec] (Reiniciar) {sudo reboot} </home/edps/.config/fbmenugen/icons/e0512e7bfb76fd5f2e17127d766ec198.png>
[exit] (Exit) </home/edps/.config/fbmenugen/icons/207a69b4f6cb34243c33fb6674755b03.png>

[endencoding]
[end]

Temas.

Você pode baixá-los de FluxBox Themes @ Box-Look.org, ou no DeviantArt e salvá-los em ~/.fluxbox/styles.

Ou nativamente do Gentoo, você pode instalar alguns pacotes:

$ sudo emerge -av commonbox-styles commonbox-styles-extra fluxbox-styles-fluxmod gentoo-artwork

Referẽncia.

Fluxbox @ Gentoo Wiki.

Enjoy!

Anúncios
How-To :: Gentoo + FluxBox

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair /  Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair /  Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair /  Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair /  Alterar )

Conectando a %s