Fluxbox (Italiano)
From ArchWiki
| i18n |
|---|
| English |
| Italiano |
Contents |
[edit] Installare Fluxbox
Installa fluxbox dai repository. I nuovi utenti potrebbero voler installare anche menumaker e/o fluxconf.
pacman -Sy fluxbox fluxconf
Menumaker è stato spostato in unsupported, per installarlo avrai bisogno dell'archivio su AUR.
wget http://aur.archlinux.org/packages/menumaker/menumaker.tar.gz tar xvf menumaker.tar.gz cd menumaker makepkg
Installazione:
pacman -U menumaker-0.99.7-2-i686.pkg.tar.gz
Modificalo se ti sembra necessario.
Rimuovi fluxconf e menumaker se vuoi un'installazione minima, sarà spiegato come utilizzarli ma non sono richiesti.
[edit] Avvio di Fluxbox
[edit] Metodo 1: kdm/gdm
Entrambi aggiungeranno la voce fluxbox al menu. Selezionatela.
Note: Si dovrà avere un login manager attivato. Per istruzioni su come fare ciò, guarda qui.
[edit] Metodo 2: xinitrc
Nella tua home aggiungi questo codice alla fine del file .xinitrc
exec fluxbox
o se preferisci usare 'startfluxbox' inserisci:
exec startfluxbox
E' consigliato usare 'startfluxbox', perchè solo in questo modo il file ~/.fluxbox/startup verrà letto. Ricorda: ci può essere una solo linea exec in .xinitrc
Note : se si interrompe l'avvio, potresti avere problemi con locale.. Imposta LC_ALL al valore "C", ma se continua a non avviarsi. 1 Puoi avviare fluxbox con il comando startx.
[edit] Configurare Fluxbox
[edit] Menu
[edit] Metodo veloce:
dai il comando:
fluxbox-generate_menu
questo comando genera il file .fluxbox/menu/ basato sui programmi installati. C'è anche un "helper / regenerate menu" nel menu di fluxbox.
[edit] Archlinux xdg menu
Richiede Archlinux xdg menu
xdg_menu --fullmenu --format fluxbox --root-menu /etc/xdg/menus/arch-applications.menu >~/.fluxbox/menu
Suggerimento: sostituisci xterm/urxvt
sed -i 's/xterm/urxvt/g' ~/.fluxbox/menu
Altre informazioni
xdg_menu --help
Vedi anche: Archlinux xdg menu
[edit] Crea un menu personalizzato con fluxconf
Per iniziare la sezione del menu di fluxconf, esegui::
fluxmenu
Nella finestra che apparirà, noterete tre colonne: Type, Title, e Command/Comment.
Cliccare su una scrittura, vi permetterà di modificarla.
Cliccare su "Add sub" aggiungerà un sottomenu.
Cliccare su "Add exec" aggiungerà un comando da eseguire.
la colonna type ha molti opzion valide:
- begin, required to start the menu file. The title option is the menu header.
- submenu, a "folder" inside the menu. Title is the name of the submenu.
- exec, a command line. Title is what is shown and Command/Comment is the command to be executed.
- separator, a divider in the menu. No arguments to this one.
- workspaces, a list of workspaces and what applications are running on each. Title is what will be shown to the user.
- stylesdir, a directory containing styles. Title is the path to the dir. Recommended that you put this into its own subdirectory as it can get quite large. directories to use: /usr/share/fluxbox/styles ~/.fluxbox/styles .
- config, a menu with many options for configuring behavior of fluxbox. Title is the name of the menu shown to the user.
- reconfig, reloads the config file. Title is the title shown to the user.
- restart, restarts fluxbox. Title is the title shown to the user.
- exit, exit fluxbox, will drop back to the desktop manager or exit X depending on the startup method you used. Title is the title shown to the user.
Remember to hit save before closing
[edit] Manualy
Use comand:
nano ~/.fluxbox/menu
Then write lines in this style:
[exec] (name) {command}
If you want to make submenu write:
[submenu] (Name) ... ... [end]
Then done save and exit. There is no need to restart fluxbox.
[edit] Hotkeys
Fluxbox offers a basic hotkeys functionality. fluxbox key file is:
~/.fluxbox/keys
fluxconf offers a method of editing this in GUI with the command:
fluxkeys
The Mod1 button corresponds to Alt and Mod4 corresponds to Meta (not a standard key but many map meta to the win key)
The First text box is for a button and the second is for an action. select execCommand to set a command and put the name of the command into the 3rd text box.
More functions of this can be used from the 2nd text box (A drop down menu is available)
[edit] Workspaces
Fluxbox defaults to having four workspaces available to the user. available with the alt+F1-4 keys or the arrows on the toolbar next to where it says "one"
Right clicking on desktop and going to your Workspaces menu (menumaker users: FluxBox>Workspaces, fluxconf users: the workspaces title) will let you interact with the workspaces.
Workspaces Menu:
Icons - shows minimized applications --separator-- Workspaces names (default: one,two,three,four) - Shows all the applications on that desktop --separator-- New Workspace - Adds a workspace Edit Current workspace name - lets you title your workspace whatever you want. Will show up on the left side of the toolbar Remove Last - Removes the last workspace on the list, dumps all of the applications running on that desktop into the one before it
[edit] Background
Setting the background requires a background setter you will need to install one of these packages:
- eterm (recommended)
- feh (lacks menu transparency)
there are others but these are the most recommended two, to see others check out the fbsetbg documentation in the "Additional Links section" To set the background:
fbsetbg /path/to/background.image
Fluxbox however does not set your background on bootup however you can make it do so by adding the below code to a bootup script, covered below:
fbsetbg -l
(It is of use only if you have previously issued the command with a valid image)
You can also add (or modify) the following line to the file ~/.fluxbox/init to something like this:
session.screen0.rootCommand: fbsetbg /path/to/wallpaper
Or simply:
session.screen0.rootCommand: fbsetbg -l
Additional notes for people who like to change wallpaper a lot.
Place the following submenu in your fluxbox menu
[submenu] (Backgrounds) [wallpapers] (~/.fluxbox/backgrounds) [wallpapers] (/usr/share/fluxbox/backgrounds) [end]
Then put your background images into ~/.fluxbox/backgrounds or any other folder you specify, they will then appear in the same fashion as your styles.
[edit] Theming
Links to some theme sites are provided below.
To install a theme extract the archive to a stylesdir the default ones are:
- global - /usr/share/fluxbox/styles
- user only - ~/.fluxbox/styles
[edit] Autostarting Applications
xinitrc users should put all code into thier .xinitrc. However, fluxbox provides functionality to autostart applications on its own.
The ~/.fluxbox/startup file is a script for autostarting applications as well as starting fluxbox itself.
The # symbol denotes a comment.
a sample file:
fbsetbg -l # sets the last background set, very useful and recommended. # In the below commands the ampersand symbol (&) is required on all applications that do not terminate immediately. # failure to provide them will cause fluxbox not to start. idesk & xterm & # exec is for starting fluxbox itself, don't put an ampersand (&) after this or fluxbox will exit immediately exec /usr/bin/fluxbox # or if you want to keep a log, uncomment the below command and comment out the above command: # exec /usr/bin/fluxbox -log ~/.fluxbox/log
[edit] Additional Links
Fluxbox Homepage
gentoo-wiki Fluxbox HowTo
gentoo Fluxbox Documentation
Themes for Fluxbox
Fluxbox Wiki
fbsetbg documentation