FAQ/it
| Outdated Page The following page has been marked as outdated, it should be updated to apply to version 3 of the awesome window manager. |
Awesome
Perchè awesome?
Il nome awesome deriva dalla parola inglese awesome spesso usata da Barney Stinson.
Installazione
Quali sono le dipendenze di awesome?
Vedi nel README.
Configurazione
How can I lock the screen when I'm away?
Potete usare uno strumento esterno come 'xlock' o 'xscreensaver'. I uso xlock in questo modo:
keybinding({ modkey }, "F12", function () awful.spawn('xlock') end):add()
Le applicazioni grafiche di Java appaiono come una schermata grigia!
man awesome:
Le applicazioni Java che usano XToolkit/XAWT potrebbero avere solo una schermata grigia. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early JDK 1.6 versions, because it assumes a reparenting window manager. As a workaround you can use JDK 1.4 (which doesn´t contain the XToolkit/XAWT backend) or you can set the following environment variable (to use the older Motif backend instead): AWT_TOOLKIT=MToolkit
A workaround for using Java applications which require JDK 1.5 or higher is to use a nested X server, such as Xephyr. For example, to use the Java OpenStreetMap application, you can use the following snippet:
$ cat bin/josm #!/bin/sh Xephyr :1 -screen 1280x1000 -once -br & export DISPLAY=:1 josm $1 killall Xephyr
Of course, this example assumes you are running only one instance of a Java program, might not look nice at resolutions other than 1280x1024, and launching a whole X server is quite a waste of resources... But you get the idea.
Gaps! There are gaps! How do I get rid of the gaps at the top/bottom of the screen?
In your .awesomerc, under whichever screen section(s) you don't want the gaps to appear, set the following. Your .awesomerc may not have this section - if it does not, add it.
general
{
resize_hints = false
}
Le titlebar sono belle, ma come posso disabilitarle per una determinata applicazione?
Nella sezione rules in awesomerc, aggiungete:
titlebar {
position = off
}
Come posso nascondere / visualizzare la statusbars in awesome 3.0?
Codice Lua:
mystatusbar.position = "off"
o
mystatusbar.screen = nil
Per usare Modkey-b per nascondere/visualizzare la statusbar attiva sullo schermo (come da di default awesome 2.3), aggiungete al vostro awesome/rc.lua:
keybinding({ modkey }, "b", function ()
if mystatusbar[mouse.screen].screen == nil then
mystatusbar[mouse.screen].screen = mouse.screen
else
mystatusbar[mouse.screen].screen = nil
end
end):add()
In awesome 2.3 si può inserire un menu facilmente. E' molto semplice da usare, create un file da qualche parte con delle linee formattate come in questo esempio:
~/.awesome/menu contiene:
xterm firefox pidgin
Quindi aggiungete questo codice in.awesomerc:
key {
modkey = {"Mod4"}
key = "p"
command = "spawn"
arg = "exec `cat ~/.awesome/menu | awesome-menu`"
}
Vedete awesome-menu per ulteriori dettagli su questo.
Oppure, potete usare software alternativi come:
- dmenu - un program launcher
e.g. key { modkey = {"Mod4"} key = "p" command = "spawn" arg = "exec `dmenu_path | dmenu -b`" }
- dzen - x-menu / statusbar e altro...
- 9menu - un semplice x-menu
e.g.: 9menu -file ~/.9menurc
- apwal - per le icone nella finestra principale
- Gmrun - Run-menu (GTK+)
Non c'è la tray! Come posso ricevere le notifiche di pidgin?
Awesome capisce il tag 'URGENT' inviato da Pidgin, ed è possibile gestirlo sulla tag nel modo appropriato. Per fare questo, avviate Pidgin, andate in Strumenti -> Plugins, e siate sicuri che 'Notica messaggi' sia abilitato. Selezionate 'Notifica Messaggi', e cliccate sul pulsante 'Configura' in basso allo schermo. Siate sicuri che la voce 'Imposta lo stato 'URGENT' nel Window Manager' sia selezionato.
Il prossimo passo, è essere sicuri che questi valori sono nella sezione 'colors' in ~/.awesomerc (Per awesome-2.2)
colors {
urgent_fg = "#ffffff"
urgent_bg = "#D53737"
}
In awesome-2.3:
styles {
urgent
{
fg = "#FFFFFF"
bg = "#D53737"
}
}
Avviate awesome -k per verificare che la configurazione è valida, e riavviate.
In awesome-3 edit ~/.config/awesome/themes/<theme>
bg_urgent = #ff0000 fg_urgent = #ffffff
Ora, quando riceverete un messaggio in Pidgin, il display della tag nella barra si colorerà di rosso.
Posso modificare la configurazione di awesome mentre è avviato?
Si, potete. Dovrete riavviare Awesome o i cambiamenti effettuati sul file di configurazione non avranno effetto. La scorciatoria da tastiera di default per riavviare Awesome 3.0 è Mod4 + Ctrl + r
Posso cambiare il tema del cursone in awesome?
Potete impostare il tema preferito con il comando xsetroot
xsetroot -cursor_name TEMA
Questo potete anche aggiungerlo in ~/.xinitrc
Uso
Come posso avviare un'altra sessione di X
In KDE posso avviare una seconda sessione di X e passare da una sessione all'altra con F7 e F8. Come posso farlo usando awesome?
Potete passare in un nuovo terminale virtuale (VT) usando Ctrl+Alt+F8 per esempio, quindi entrate normalmente, e avviate X per un nuovo schermo virtuale, con il comando startx
UNANSWERED: Starting programs should be more comfortable
I can start programs by pressing mod + F1, but I do not see, if they are loading, or if I mistyped the program name.
It would also be great, if there would be some way to see the output of the program, whether there are errors, or to be able to start a program with sudo and enter the root password.
Come posso sospendere / riavviare / riprendere il mio computer?
Inviato da Gregor Best nella fomailing list:
"For logging out, simply kill your XServer by pressing Ctrl+Alt+Backspace. There's a keybinding for cleanly exiting, but I removed that a long time ago, so I don't remember it."
Potete normalmente usare la linea di comando, shutdown -h now per spegnere, shutdown -r now per riavviare, etc...
UNANSWERED: Where is the clipboard? How do I copy and paste?
One possibility provided by X is to mark text with the mouse and to paste it somewhere else with the middle mouse button or with <SHIFT>-<INSERT>.
??Another would be to install any kind of clipboard???
Ho avviato awesome, ma non ho idea di cosa fare. Come posso usarlo?
man awesome è un'ottima guida, include le scorciatoie da tastiera di default.
In awesome 1.x usavo la pipe per mandare qualcosa a stdin (come in dwm), ma questo non funziona in awesome 2.0, perchè?
Perchè noi abbiamo implementato un sistema migliore. Se vuole può usare awesome-client che legge da stdin: #screen uicb arg
Potete anche cambiare il testo della statusbar sullo schermo 0, semplicemente con:
echo "0 setstatustext \"Hello, awesome world\!\"" | awesome-client
Mentre se volete vedere un tag sullo schermo 1:
echo "1 tag_view 3" | awesome-client
Note: Questo funziona solo per la versione 2.0. Per la sintassi corrente guardate awesome-client(1).
Sviluppo
Ho trovato un bug, cosa posso fare?
Per prima cosa, prova la versione in sviluppo per vedere se il bug esiste ancora. Se il bug ha un comportamento inaspettatto, spiegateci perfavore quando si verifica. Se il bug è un "segmentation fault", includete anche tutto il backtrace (usate gdb).
E possibilmente copiatelo qui: http://awesome.naquadah.org/bugs/
In ogni caso, provate a spiegarci come riprodurlo.
Accettate patch e abbellimenti?
Certo. Potete inviarmele direttamente a me oppure in mailing list. Date anche un'occhiata alla pagina dei sviluppatori.
Come tenere traccia dei branch di awesome
Per clonare la versione (git) in sviluppo:
git-clone git://git.naquadah.org/awesome.git/ cd awesome/
Per prendere il branch come 'awesome-3':
git-fetch origin awesome-3:awesome-3 git-checkout awesome-3
con git-branch potete sapere quali branch state usando. In alcune distribuzioni potete usare <tab> per il completamento del nome di un branch (e altro) quando usate git.
Per essere sempre aggiornati al branch 'awesome-3'm eseguite questi comandi dalla directory di awesome:
git-fetch origin git-reset --hard origin/awesome-3
Note: il branch 'awesome-3' è già passato a XCB, e necessita di xcb-util. Per rendere la vita facile agli Arcieri, ho creato temporaneamente un PKGBUILD per xcb-util qui
Per creare una patch:
git-clone git://git.naquadah.org/awesome.git/ edit file git-commit filename git-format-patch origin
Questo produce un file con un nome simile:
0001-the-title-you-gave-it.patch
Come posso prendere il nome radice per creare una regola?
Potete usare il comando xprop - Eseguite questi comandi (questo è per Pidgin):
me@myhost:~$ xprop | grep WM_NAME WM_NAME(STRING) = "Lista Contatti" _NET_WM_NAME(UTF8_STRING) = 0x42, 0x75, 0x64, 0x64, 0x79, 0x20, 0x4c, 0x69, 0x73, 0x74
WM_NAME è il nome della regola che stiamo creando.
rules
{
rule {
name = "Lista Contatti"
tags = "one"
float = true
}
}