https://wiki.archlinux.org/api.php?action=feedcontributions&user=N0dix&feedformat=atomArchWiki - User contributions [en]2024-03-28T14:43:52ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Archup&diff=100733Archup2010-03-20T19:25:18Z<p>N0dix: </p>
<hr />
<div>[https://code.launchpad.net/~r0rschach/+junk/archup archup] is a small (just 44 lines of code) C application which informs the user when system-updates for [http://www.archlinux.org Archlinux] are available. It's licenced under the [http://www.gnu.org/licenses/gpl-3.0.html GPLv3].<br />
In contrast to other update notifiers archup is intended to be lightweight and just do what it should: notify about possible updates.<br />
<br />
archup uses [http://www.gtk.org/ GTk+] and [http://www.galago-project.org libnotify] to show a desktop notification if updates are available. It uses [http://www.archlinux.org/pacman/ pacman] to get the list of the pending updates. A cronjob updates the database and executes archup.<br />
<br />
Screenshots:<br />
* [http://developer.berlios.de/dbimage.php?id=4687 Screenshot 1]<br />
* [http://developer.berlios.de/dbimage.php?id=4688 Screenshot 2]<br />
<br />
= Download =<br />
== PKGBUILD ==<br />
# Contributor: Rorschach <r0rschach@lavabit.com> <br />
<br />
pkgname=archup<br />
pkgver=1.1<br />
pkgrel=1<br />
pkgdesc="Small and lightweight update-notifier for archlinux."<br />
url="https://"<br />
arch=('i686' 'x86_64')<br />
license="GPL"<br />
depends=('pacman' 'libnotify')<br />
makedepends=('libnotify' 'autoconf')<br />
source=(http://bazaar.launchpad.net/%7Er0rschach/%2Bjunk/archup/download/r0rschach%40lavabit.com-20100320180744-y0jw6cure6t9l3pw/archup1.1.tar.gz-20100320180743-4r662d1lv6l8v8f1-1/$pkgname-$pkgver.tar.gz)<br />
md5sums=('f1c5d4946c9e0f212a776818e8594415')<br />
<br />
build() {<br />
cd src<br />
autoconf || return 1<br />
./configure || return 1<br />
make || return 1<br />
install -Dm755 archup $pkgdir/usr/bin/archup<br />
install -Dm744 README $pkgdir/usr/share/doc/archup/README<br />
install -Dm744 INSTALL $pkgdir/usr/share/doc/archup/INSTALL<br />
install -Dm744 COPYING $pkgdir/usr/share/doc/archup/COPYING<br />
install -Dm744 VERSION $pkgdir/usr/share/doc/archup/VERSION<br />
install -Dm744 cronhourly.example $pkgdir/usr/share/doc/archup/cronhourly.example<br />
}<br />
<br />
== source ==<br />
Get current source-code:<br />
[http://bazaar.launchpad.net/%7Er0rschach/%2Bjunk/archup/download/r0rschach%40lavabit.com-20100320180744-y0jw6cure6t9l3pw/archup1.1.tar.gz-20100320180743-4r662d1lv6l8v8f1-1/archup-1.1.tar.gz archup-1.1.tar.gz]<br />
<br />
== bazaar ==<br />
Get a working-copy of archup:<br />
bzr branch http://bazaar.launchpad.net/~r0rschach/+junk/archup<br />
= Installation =<br />
You need autoconf, libnotify and pacman installed to build archup.</p><br />
<br />
For source and bazaar installation first untar the archive. Then create the configure-script:<br />
$ autoconf<br />
,execute it<br />
$ ./configure<br />
compile archup<br />
$ make<br />
and finally install it<br />
$ sudo make install<br />
= Configuration =<br />
Now all you have to do is setting up a cronjob.<br />
<br />
You could put something like this into '''/etc/cron.hourly''':<br />
#!/bin/bash<br />
<br />
arch_user=rorschach<br />
<br />
if [ -z "$(pgrep pacman)" ];then<br />
/usr/bin/pacman -Sy > /dev/null<br />
fi<br />
XAUTHORITY=/home/$arch_user/.Xauthority DISPLAY=:0.0 /usr/bin/archup<br />
= Links =<br />
* [https://code.launchpad.net/~r0rschach/+junk/archup archup at launchpad codes]</div>N0dixhttps://wiki.archlinux.org/index.php?title=Awesome3_(Espa%C3%B1ol)&diff=93614Awesome3 (Español)2010-01-25T19:56:00Z<p>N0dix: </p>
<hr />
<div>[[Category:Entornos de escritorio (Español)]]<br />
[[Category:CÓMOs (Español)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|Awesome (Česky)}}<br />
{{i18n_entry|English|Awesome3}}<br />
{{i18n_entry|Español|Awesome3(Español)}}<br />
{{i18n_entry|简体中文|Awesome_(简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
Desde el sitio web awesome:<br />
<br />
"''[http://awesome.naquadah.org/ awesome] es altamente configurable y es la próxima generación para administradores de ventanas para el X. Es muy rápido, extensible y está bajo la licencia GNU GPLv2.<br />
<br />
Esta pensado principalmente para usuarios con experiencia, desarrolladores y personas que lidian cada día con tareas computacionales y que desean un control detallado de su entorno gráfico.''"<br />
<br />
==Instalación==<br />
<br />
Awesome 3.x está disponible en los repositorios de la comunidad, haga:<br />
# pacman -S awesome<br />
<br />
===Awesome-git===<br />
La versión para desarrolladores basada en Git está disponible en AUR, ver [http://aur.archlinux.org/packages.php?ID=13916 awesome-git]<br />
<br />
Hay muchas formas para instalarlo.<br />
<br />
La manera más fácil es usar "yaourt" (también disponible en AUR). Si se tiene yaourt instalado, haga:<br />
# yaourt -S awesome-git<br />
<br />
<br />
==Cómo Empezar==<br />
<br />
===Usando awesome===<br />
Para ejecutar awesome sin un manejador de sesión, sólo agregue '''<tt>exec awesome</tt>''' a el script de inicio de su elección (e.g. ~/.xinitrc.)<br />
<br />
Si tiene problemas con algunos dispositivos (como montar usbs, leer dvds) asegúrese de leer la documentación sobre [[HAL]] y su policykit. Cuando no utilice un manejador de sesión, nada es automático. En algunos casos, usando '''<tt>exec ck-launch-session awesome</tt>''' puede solucionar sus problemas.<br />
<br />
Para iniciar awesome desde un manejador de sesión, ver [[Agregando un manejador de sesión (KDM, GDM, o XDM) para automatizar el arranque de inicio | este artículo]].<br />
<br />
'''[[SLIM]]''' es un popular y liviano manejador de sesión que es altamente recomendado. Debería hacer esto:<br />
<br />
1) Editar /etc/slim.conf para iniciar la sesión de awesome, agregue awesome en la sección. <br>Por ejemplo: <br />
sessions awesome,wmii,xmonad<br />
2) Editar el archivo ~/.xinitrc <br />
DEFAULT_SESSION=awesome<br />
case $1 in<br />
awesome) exec awesome ;;<br />
wmii) exec wmii ;;<br />
xmonad) exec xmonad ;;<br />
*) exec $DEFAULT_SESSION ;;<br />
esac<br />
<br />
Sin embargo, se puede también iniciar awesome como usuario preestablecido sin ningún manejador de sesión y sin una contraseña, después que edite ~/.xinitrc y /etc/inittab adecuadamente. Ver el artículo [[Start X at boot]].<br />
<br />
==Configuración==<br />
<br />
Awesome incluye una buena configuración inicial, pero temprano o tarde tendrá que cambiar algo. El archivo de configuración basado en lua se encuentra en <tt>~/.config/awesome/rc.lua</tt>.<br />
<br />
===Creando el archivo de configuración=== <br />
Siempre que sea compilado, awesome intentará utilizar cualquier configuración personalizada que se encuentre en ~/.config/awesome/rc.lua. Este archivo no se crea por defecto, por lo tanto, es necesario copiar el archivo primero:<br />
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua<br />
<br />
La sintaxis para configurar el archivo usualmente cambia cuando se realiza una actualización de awesome. Por lo tanto, recuerde repetir el comando de arriba cuando obtenga un comportamiento extraño o quiera modificar la configuración.<br />
<br />
Para mayor información sobre la configuración de awesome, observe <br />
[http://awesome.naquadah.org/wiki/Awesome_3_configuration configuración de awesome en el wiki]<br />
<br />
===Mas recursos de configuración===<br />
{{Observe|La sintaxis de awesome cambia regularmente, por lo tanto, probablemente tendrán que modificar cualquier archivo que se descargue.}}<br />
<br />
Varios buenos ejemplos de rc.lua son los siguientes: <br />
<br />
* http://git.sysphere.org/awesome-configs/tree/ - Awesome 3.4 configuración por Adrian C. (anrxc)<br />
* http://pastebin.com/f6e4b064e - Darthlukan's awesome 3.4 configuración. <br />
* http://www.calmar.ws/dotfiles/dotfiledir/dot_awesomerc.lua<br />
* http://github.com/wolgri/wolgri.config/tree/master/.config/awesome/rc.lua<br />
* http://oxmoz.no-ip.org/awesome/rc.lua<br />
* http://www.ugolnik.info/downloads/awesome/rc.lua (screen) - Awesome 3 con una pequeña barra de titulo y barra de estado.<br />
* http://github.com/bash/dotfiles/blob/master/.config/awesome/rc.lua<br />
* http://github.com/nblock/config/blob/master/.config/awesome/rc.lua<br />
* User Configuration Files http://awesome.naquadah.org/wiki/User_Configuration_Files<br />
<br />
===Depurando rc.lua usando Xephyr===<br />
Esta es la forma que prefiero depurar rc.lua, sin la necesidad de cerrar mi escritorio actual. Primero copio mi rc.lua en un nuevo archivo, rc.lua.new, y lo modifico si es necesario. Luego, ejecuto la nueva instancia de awesome en Xephyr (permitiendo ejecutar un X adjunto a otro cliente X's - [http://www.dante4d.cz/pub/screenie/2009-08-01-025216_1920x1200_scrot.png screenshot]), reemplazando rc.lua.new como el archivo de configuración, de esta forma:<br />
<br />
$ Xephyr -ac -br -noreset -screen 1152x720 :1 &<br />
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new<br />
<br />
La gran ventaja de esta enfoque es que si se rompe el rc.lua.new, no se necesita cerrar el escritorio awesome actual (y probablemente dañe todas las aplicaciones X, perdiendo las cosas que no se salvaron...). Una vez que este satisfecho con los nuevos cambios, mover el rc.lua.new a rc.lua y reiniciar awesome. Y puede estar seguro de que el trabajo de configuración y reinicio de la nueva configuración no dañe las cosas.<br />
<br />
==Temas==<br />
<br />
Beautiful es la biblioteca de lua que le permite cambiar de tema en awesome usando un archivo externo, de manera que es muy fácil cambiar dinamicamente todo los colores de awesome y el fondo de escritorio sin la necesidad de cambiar el archivo rc.lua.<br />
<br />
El tema por defecto está en /usr/share/awesome/themes/default. Cópielo <br />
~/.config/awesome/themes/default y cambie la ruta_del_tema en rc.lua. <br />
<br />
Para más detalles [http://awesome.naquadah.org/wiki/Beautiful aquí]<br />
<br />
Algunos ejemplos [http://awesome.naquadah.org/wiki/Beautiful_themes temas]<br />
<br />
<br />
===Cración de su fondo de escritorio===<br />
Beautiful puede manejar su fondo de escritorio, de manera que no tenga que agregarlo en su archivo .xinitrc o .xsession. Este le permite tener un fondo de escritorio especifico por cada tema. Si observa el tema por defecto observará una entrada llamada wallpaper_cmd, este comando es ejecutado cuando el beautiful.init("ruta_archivo_del_tema") este corriendo. Usted puede colocar allí su propio comando o eliminar/comentar la entrada si no quiere que Beautiful interfiera con el fondo de escritorio. <br />
<br />
Para una instancia, si usa awsetbg para establecer su fondo de escritorio, usted puede escribir:<br />
<br />
wallpaper_cmd = { "awsetbg -f .config/awesome/themes/awesome-wallpaper.png" }<br />
<br />
====Imagen de Fondo Aleatoria===<br />
Para rotar el fondo de escritorio aleatoriamente, necesita comentar la línea wallpaper_cmd, y agregar un script en su .xinitrc con el código siguiente: <br />
<pre><br />
while true;<br />
do<br />
awsetbg -r <path/to/the/directory/of/your/wallpapers><br />
sleep 15m<br />
done &<br />
</pre><br />
<br />
==Consejos & Trucos==<br />
<br />
Siéntete libre de agregar cualquier consejo o truco que te gustaría compartir con otros usuarios de awesome.<br />
<br />
===Expose efecto como compiz===<br />
Revelar el resultado de todos sus clientes abiertos; clic-izquierdo en un cliente abrirá una ventana emergente con la primera etiqueta visible que le permite obtener el foco del cliente. Además, la tecla Enter desplegara una ventana emergente que se enfocará en el cliente actual, y la tecla Escape es para abortar.<br />
<br />
http://awesome.naquadah.org/wiki/Revelation<br />
<br />
===Esconder / mostrar wibox en awesome 3===<br />
La tecla ModKey-b le permite esconder/mostrar la barra de estado en una pantalla activa (por defecto en awesome 2.3), agregue a su ''clientkeys'' en rc.lua:<br />
<br />
awful.key({ modkey }, "b", function ()<br />
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible<br />
end),<br />
<br />
===Activar printscreens===<br />
Para habilitar prinscreens en awesome desde el tecla PrtScr necesita tener un programa de captura de pantalla.<br />
Scrot es la utilidad más fácil de utilizar para este propósito y esta disponible en los repositorios de Arch. <br />
<br />
Sólo escriba:<br />
# pacman -S scrot<br />
<br />
e instale las dependencias opcionales si cree que las necesitará.<br />
<br />
Lo siguiente que necesitamos obtener es el nombre para el tecla PrtScr, en muchos casos se llama "Print" pero no se puede estar seguro.<br />
<br />
Ejecute:<br />
<br />
# xev<br />
<br />
Y presione la tecla PrtScr, la salida debería ser algo como esto:<br />
KeyPress event ....<br />
root 0x25c, subw 0x0, ...<br />
state 0x0, keycode 107 (keysym 0xff61, '''Print'''), same_screen YES,<br />
....<br />
<br />
En mi caso como observan, el nombre de la tecla es Print.<br />
<br />
Ahora la configuración de awesome!<br />
<br />
En algún lado de su conjunto de teclas globales (no importa donde) escriba:<br />
<br />
Lua código:<br />
<br />
awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),<br />
<br />
Un buen lugar para colocar esto es debajo del keyhook para el spawning un terminal.<br />
Para encontrar esta línea busque por: awful.util.spawn(terminal) en su editor de texto favorito.<br />
<br />
También, esta función guarda el screenshots dentro de ~/screenshots/, editelo para ajustarlo a sus necesidades.<br />
<br />
===Etiquetado dinámico utilizando Eminent===<br />
<br />
TODO...<br />
[http://awesome.naquadah.org/wiki/index.php?title=Eminent]<br />
<br />
Observación: Eminent es un poco antiguo y desactualizado. Nosotros tenemos una nueva biblioteca llamada: Shifty. No ha sido incluida aun, pero es bastate prometedora. Yo recomiendo esperar por y después escribir su respectiva sección. [http://garoth.com/awesome/shifty.ogv Shifty Video (.ogv)]<br />
<br />
Observación2: Hay actualmente otra implementación para esta funcionalidad. Estoy esperando que se integre con Shifty, y estoy dirigiendo a los desarrolladores en esa dirección.<br />
<br />
===Invasores del Espacio===<br />
Invasores del Espacio es un demo que muestra las posibilidades de awesome Lua API.<br />
[http://awesome.naquadah.org/wiki/Space_Invaders]<br />
<br />
Por favor, tenga en cuenta que no esta incluido en los paquetes de Awesome desde la versión 3.4-rc1.<br />
<br />
===Vistosa notificación emergente===<br />
TODO<br />
[http://awesome.naquadah.org/wiki/index.php?title=Naughty]<br />
<br />
===Ventanas Emergentes en los Menus===<br />
Hay un solo menu por defecto en awesome3, y personalizarlo es muy fácil ahora. Sin embargo, si esta utilizando la versión 2.x de awesome, tiene que ver ''[http://awesome.naquadah.org/wiki/index.php?title=Awful.menu awful.menu]''.<br />
<br />
Un ejemplo para awesome3:<br />
<pre><br />
myawesomemenu = {<br />
{ "lock", "xscreensaver-command -activate" },<br />
{ "manual", terminal .. " -e man awesome" },<br />
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },<br />
{ "restart", awesome.restart },<br />
{ "quit", awesome.quit }<br />
}<br />
<br />
mycommons = {<br />
{ "pidgin", "pidgin" },<br />
{ "OpenOffice", "soffice-dev" },<br />
{ "Graphic", "gimp" }<br />
}<br />
<br />
mymainmenu = awful.menu.new({ items = { <br />
{ "terminal", terminal },<br />
{ "icecat", "icecat" },<br />
{ "Editor", "gvim" },<br />
{ "File Manager", "pcmanfm" },<br />
{ "VirtualBox", "VirtualBox" },<br />
{ "Common App", mycommons, beautiful.awesome_icon },<br />
{ "awesome", myawesomemenu, beautiful.awesome_icon }<br />
}<br />
})<br />
</pre><br />
<br />
===Mas Widgets en awesome===<br />
''Los Widgets en awesome son objetos que se pueden agregar a cualquier contenedor-widget (barra de estado y barra de títulos), ellos pueden proveer de varias informaciones sobre el sistema, y son muy útiles para tener acceso a esa información desde la manejador de ventanas. Los Widgets son fáciles de utilizar y comúnmente proporcionan mucha flexibilidad.'' -- Fuente [http://awesome.naquadah.org/wiki/Widgets_in_awesome Awesome Wiki: Widgets].<br />
<br />
Existe una biblioteca para widgets mayormente utilizada llamada '''Wicked''' (compatible con las versiones '''superiores a 3.4''' de awesome), que proveen de muchos widgets, como MPD widget, uso del CPU, uso de la memoria, etc. Para más detalles ver [http://awesome.naquadah.org/wiki/index.php?title=Wicked la página de Wicked].<br />
<br />
Un reemplazo para Wicked en awesome v3.4 es '''[http://awesome.naquadah.org/wiki/Vicious Vicious]''', '''[http://awesome.naquadah.org/wiki/Obvious Obvious]''' y '''[http://awesome.naquadah.org/wiki/Bashets Bashets]'''. Si elige vicious, se le recomienda ver <br />
[http://git.sysphere.org/vicious/tree/README vicious documentación].<br />
<br />
===Transparencia=== <br />
Awesome tiene soporte para transparencias (2D) con xcompmgr. Observe que probablemente querrá utilizar la versión git de xcompmgr, la cual es [http://aur.archlinux.org/packages.php?ID=16554 disponible en AUR].<br />
<br />
Agregue esto a su ~/.xinitrc:<br />
exec xcompmgr &<br />
Vea ''man xcompmgr'' o [[xcompmgr]] para más opciones.<br />
<br />
En awesome 3.4, la transparencia de la ventana puede ser establecida dinamicamente usandos señales. Por ejemplo, su rc.lua podría contener lo siguiente: <br />
<br />
client.add_signal("focus", function(c)<br />
c.border_color = beautiful.border_focus<br />
c.opacity = 1<br />
end)<br />
client.add_signal("unfocus", function(c)<br />
c.border_color = beautiful.border_normal<br />
c.opacity = 0.7<br />
end)<br />
<br />
Observe que si no esta usando conky, necesita establecerlo para crear su propia ventana en vez de usar la del escritorio. Para hacer esto, edite ~/.conkyrc para que contenga:<br />
<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_type desktop<br />
<br />
De lo contrario se comportará extrañamente, que todas las ventanas tengan toda la transparencia. Observe también que desde que conky va a crear transparencias en las ventanas de su escritorio, toda acción definida en el archivo de awesome rc.lua no funcionará para el escritorio actual. <br />
<br />
A partir de Awesome 3.1, está incorporada la pseudo-transparencia para los wiboxes. Para habilitarlo, agregue dos dígitos hexadecimales a los colores en el archivo del tema (~/.config/awesome/themes/default, el cual es usualmente una copia de /usr/share/awesome/themes/default), como se muestra abajo:<br />
<br />
bg_normal = #000000AA<br />
<br />
donde "AA" es el valor de transparencia.<br />
<br />
===Ejecutar automáticamente programas===<br />
Solo agregue el siguiente código en el archivo rc.lua, y reemplace las aplicaciones en la sección autorunsApps con cualquier cosa que le guste. Por ejemplo: <br />
-- Autorun programs<br />
autorun = true<br />
autorunApps = <br />
{ <br />
"swiftfox",<br />
"mutt",<br />
"consonance",<br />
"linux-fetion",<br />
"weechat-curses",<br />
}<br />
if autorun then<br />
for app = 1, #autorunApps do<br />
awful.util.spawn(autorunApps[app])<br />
end<br />
end<br />
or like this:<br />
os.execute("mutt &"),<br />
os.execute("weechat-curses &"),<br />
<br />
Para ejecutar una aplicación solo una vez, e.g. para reiniciar awesome, utilice esta función (tomado de [http://awesome.naquadah.org/wiki/Autostart awesome wiki]):<br />
function run_once(prg)<br />
if not prg then<br />
do return nil end<br />
end<br />
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")<br />
end<br />
<br />
-- AUTORUN APPS!<br />
run_once("parcellite")<br />
<br />
===Pasando contenido a un widget con awesome-client===<br />
You can easily send text to an awesome widget. Just create a new widget:<br />
Fácilmente se puede enviar texto a un widget de awesome. Solo cree un nuevo widget: <br />
<pre><br />
mywidget = widget({ type = "textbox", name = "mywidget" })<br />
mywidget.text = "initial text"<br />
</pre><br />
To update the text from an external source, use awesome-client:<br />
<pre> <br />
echo -e 'mywidget.text = "new text"' | awesome-client<br />
</pre><br />
No olvide agregar el widget a su wibox.<br />
<br />
==Solución de Problemas==<br />
<br />
===Tecla Mod4===<br />
La tecla Mod4 es por defecto la '''tecla Window'''. Si no está funcional por defecto, por alguna razón, usted puede verificar el código de la tecla de su tecla Mod4 con: <br />
<br />
$ xev<br />
<br />
Debería ser 115 como mínimo. Luego agréguela a su ~/.xinitrc<br />
<br />
xmodmap -e "keycode 115 = Super_L" -e "add mod4 = Super_L"<br />
exec awesome<br />
<br />
====Tecla Mod4 vs. usuario de IBM ThinkPad====<br />
IBM ThinkPads no vienen equipadas con la tecla Window (sin embargo Lenovo cambio esta tradición para sus ThinkPads). Como se ha escrito, la tecla Alt no está en uso para las combinaciones por defecto en rc.lua (vea el wiki de Awesome para la lista de comandos), pero puede utilizarse como reemplazo para la teclas Super/Mod 4/Win. Para hacer esto, edite su rc.lua y sustituya:<br />
<br />
modkey = "Mod4"<br />
<br />
by:<br />
<br />
modkey = "Mod1"<br />
<br />
Observación: Awesome tiene varias comandos que le permiten utilizar la tecla Mod4 en combinación con una simple letra. Cambiando Mod4 a Mod1/Alt podría causar choques para algunas combinaciones de teclas. La menor cantidad de instancias donde esto ocurre pueden ser cambiada en el archivo rc.lua.<br />
<br />
Si usted no le agrada cambiar los estándares de awesome, debe remapear una tecla. A veces la tecla de caps lock es inútil (para mi), por lo tanto, agrego lo siguiente al contenido de ~/.Xmodmap <br />
<br />
clear lock <br />
add mod4 = Caps_Lock<br />
<br />
y [http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg#Introduction_2 (re)cargo] el archivo.<br />
<br />
Se debe cambiar la tecla caps lock a la tecla mod4 y funciona bastante bien con el estándar de configuración de awesome. Además, si es necesario, la tecla mod4 es proporcionada por otros programas también.<br />
<br />
===Disminución de Memoria en Cairo===<br />
Si está experimentando [http://awesome.naquadah.org/bugs/index.php?do=details&task_id=396 disminución de memoria] entonces pruebe [http://aur.archlinux.org/packages.php?ID=9566 cairo-git] en AUR. [http://bbs.archlinux.org/viewtopic.php?pid=462021 Tema en el Foro].<br />
<br />
'''Actualización''': La versión actual de Cairo 1.8.6 se puede utilizar sin problemas, parece que la versión git soluciona el error.<br />
<br />
==Enlaces Externos==<br />
<br />
* http://awesome.naquadah.org/wiki/FAQ - FAQ<br />
* http://www.lua.org/pil/ - Programando en Lua (primera edición)<br />
* http://awesome.naquadah.org/ - Página oficial de Awesome<br />
* http://awesome.naquadah.org/wiki/Main_Page - El wiki de Awesome <br />
* http://www.penguinsightings.org/desktop/awesome/ - Un Análisis</div>N0dixhttps://wiki.archlinux.org/index.php?title=Awesome_(window_manager)&diff=93613Awesome (window manager)2010-01-25T19:52:42Z<p>N0dix: </p>
<hr />
<div>[[Category:Desktop environments (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|Awesome (Česky)}}<br />
{{i18n_entry|English|Awesome3}}<br />
{{i18n_entry|Español|Awesome3(Español)}}<br />
{{i18n_entry|简体中文|Awesome_(简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
From the awesome website:<br />
<br />
"''[http://awesome.naquadah.org/ awesome] is a highly configurable, next generation framework window manager for X. It is very fast, extensible and licensed under the GNU GPLv2 license.<br />
<br />
It is primarly targeted at power users, developers and any people dealing with every day computing tasks and who want to have fine-grained control on its graphical environment.''"<br />
<br />
==Installation==<br />
<br />
Awesome 3.x is available in the community repositories, just:<br />
# pacman -S awesome<br />
<br />
===Awesome-git===<br />
Git-based development versions are available from AUR, see [http://aur.archlinux.org/packages.php?ID=13916 awesome-git] <br />
<br />
There are several ways to install them.<br />
The easiest is to use "yaourt" (also available in the AUR). If you have yaourt installed, simply:<br />
# yaourt -S awesome-git<br />
<br />
==Getting Started==<br />
<br />
===Using awesome===<br />
To run awesome without a login manager, simply add '''<tt>exec awesome</tt>''' to the startup script of your choice (e.g. ~/.xinitrc.)<br />
<br />
If you have problems with some devices (like mounting usbkeys, reading dvds) be sure to read documentation about [[HAL]] and policykit. When you don't use a login manager, nothing is automated. In some cases, using '''<tt>exec ck-launch-session awesome</tt>''' can solve your problems.<br />
<br />
To start awesome from a login manager, see [[Adding a login manager (KDM, GDM, or XDM) to automatically boot on startup | this article]]. <br />
<br />
'''[[SLIM]]''' is a popular lightweight login manager and comes highly recommended. You should do like this:<br />
<br />
1) Edit /etc/slim.conf for start awesome session, add awesome to sessions line. <br>For example: <br />
sessions awesome,wmii,xmonad<br />
2) Edit ~/.xinitrc file <br />
DEFAULT_SESSION=awesome<br />
case $1 in<br />
awesome) exec awesome ;;<br />
wmii) exec wmii ;;<br />
xmonad) exec xmonad ;;<br />
*) exec $DEFAULT_SESSION ;;<br />
esac<br />
However, you can also start awesome as preferred user without any login manager and even without logging in, after editing ~/.xinitrc and /etc/inittab properly. Refer to the article [[Start X at boot]].<br />
<br />
==Configuration==<br />
Awesome includes some good default settings right out of the box, but sooner or later you'll want to change something. The lua based configuration file is at <tt>~/.config/awesome/rc.lua</tt>.<br />
<br />
===Creating the configuration file===<br />
Whenever compiled, awesome will attempt to use whatever custom settings are contained in ~/.config/awesome/rc.lua. This file is not created by default, so we must copy the template file first:<br />
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua<br />
<br />
The syntax of the configuration often changes when awesome updates. So, remember to repeate the command above when you get something strange with awesome, or you'd like to modify the configuration.<br />
<br />
For more information about configuring awesome, check out the [http://awesome.naquadah.org/wiki/Awesome_3_configuration configuration page at awesome wiki]<br />
<br />
===More configuration resources===<br />
{{Note|The syntax of awesome configuration changes regularly, so you will likely have to modify any file you download.}}<br />
<br />
Some good examples of rc.lua would be as follows:<br />
<br />
* http://git.sysphere.org/awesome-configs/tree/ - Awesome 3.4 configurations from Adrian C. (anrxc)<br />
* http://pastebin.com/f6e4b064e - Darthlukan's awesome 3.4 configuration. <br />
* http://www.calmar.ws/dotfiles/dotfiledir/dot_awesomerc.lua<br />
* http://github.com/wolgri/wolgri.config/tree/master/.config/awesome/rc.lua<br />
* http://oxmoz.no-ip.org/awesome/rc.lua<br />
* http://www.ugolnik.info/downloads/awesome/rc.lua (screen) - Awesome 3 with small titlebar and statusbar.<br />
* http://github.com/bash/dotfiles/blob/master/.config/awesome/rc.lua<br />
* http://github.com/nblock/config/blob/master/.config/awesome/rc.lua<br />
* User Configuration Files http://awesome.naquadah.org/wiki/User_Configuration_Files<br />
<br />
===Debug rc.lua using Xephyr===<br />
<br />
This is my prefered way to debug rc.lua, without breaking my curent desktop. I first copy my rc.lua into a new file, rc.lua.new, and modify it as needed. Then, I run new instance of awesome in Xephyr (allows you to run X nested in another X's client window - [http://www.dante4d.cz/pub/screenie/2009-08-01-025216_1920x1200_scrot.png screenshot]), supplying rc.lua.new as a config file like this:<br />
<br />
$ Xephyr -ac -br -noreset -screen 1152x720 :1 &<br />
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new<br />
<br />
Big advantage of this approach is that if I break rc.lua.new, I don't break my current awesome desktop (and possibly crash all my X apps, lose all unsaved things and so on...). Once I'm happy with my new settings, I move rc.lua.new to rc.lua and restart awesome. And I can be sure it will work and restarting with new config won't mess up things.<br />
<br />
==Themes==<br />
<br />
Beautiful is a lua library that allows you to theme awesome using an external file, it becomes very easy to dynamically change your whole awesome colours and wallpaper without changing your rc.lua. <br />
<br />
The default theme is at /usr/share/awesome/themes/default. Copy it to ~/.config/awesome/themes/default and change theme_path in rc.lua. <br />
<br />
More details [http://awesome.naquadah.org/wiki/Beautiful here]<br />
<br />
A few sample [http://awesome.naquadah.org/wiki/Beautiful_themes themes]<br />
<br />
===Setting up your wallpaper===<br />
<br />
Beautiful can handle your wallpaper, thus you don't need to set it up in your .xinitrc or .xsession files. This allows you to have a specific wallpaper for each theme. If you take a look at the default theme file you'll see a wallpaper_cmd key, the given command is executed when beautiful.init("path_to_theme_file") is run. You can put here you own command or remove/comment the key if you don't want Beautiful to interfere with your wallpaper business.<br />
<br />
For instance, if you use awsetbg to set your wallpaper, you can write:<br />
<br />
wallpaper_cmd = { "awsetbg -f .config/awesome/themes/awesome-wallpaper.png" }<br />
<br />
====Random Background Image====<br />
To rotate the wallpapers randomly, just comment the wallpaper_cmd line above, and add a script into your .xinitrc with the codes below:<br />
<pre><br />
while true;<br />
do<br />
awsetbg -r <path/to/the/directory/of/your/wallpapers><br />
sleep 15m<br />
done &<br />
</pre><br />
<br />
==Tips & Tricks==<br />
Feel free to add any tips or tricks that you would like to pass on to other awesome users.<br />
<br />
===Expose effect like compiz===<br />
<br />
Revelation brings up a view of all your open clients; left-clicking a client pops to the first tag that client is visible on and raises/focuses the client. In addition, the Enter key pops to the currently focused client, and Escape aborts. <br />
<br />
http://awesome.naquadah.org/wiki/Revelation<br />
<br />
===Hide / show wibox in awesome 3===<br />
<br />
To map Modkey-b to hide/show default statusbar on active screen (as default in awesome 2.3), add to your ''clientkeys'' in rc.lua:<br />
<br />
awful.key({ modkey }, "b", function ()<br />
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible<br />
end),<br />
<br />
===Enable printscreens===<br />
<br />
To enable printscreens in awesome through the PrtScr button you need to have a screen capturing program.<br />
Scrot is a easy to use utility for this purpose and is available in Arch repositories.<br />
<br />
Just type:<br />
# pacman -S scrot<br />
<br />
and install optional dependencies if you feel that you need them.<br />
<br />
Next of we need to get the key name for PrtScr, most often this is named "Print" but one can never be too sure.<br />
<br />
Start up:<br />
# xev<br />
<br />
And press the PrtScr button, the output should be something like:<br />
KeyPress event ....<br />
root 0x25c, subw 0x0, ...<br />
state 0x0, keycode 107 (keysym 0xff61, '''Print'''), same_screen YES,<br />
....<br />
<br />
In my case as you see, the keyname is Print.<br />
<br />
Now to the configuration of awesome!<br />
<br />
Somewhere in your globalkeys array (doesn't mather where) type:<br />
<br />
Lua code:<br />
<br />
awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),<br />
<br />
A good place to place this is bellow the keyhook for spawning a terminal.<br />
To find this line search for: awful.util.spawn(terminal) in your favourite text editor.<br />
<br />
Also, this function saves screenshots inside ~/screenshots/, edit this to fit your needs.<br />
<br />
===Dynamic tagging using Eminent===<br />
<br />
TODO...<br />
[http://awesome.naquadah.org/wiki/index.php?title=Eminent]<br />
<br />
Note: Eminent is a bit old and outdated. We have a new library in the works, Shifty. It hasn't been included with the main source yet, but is very promising. I'd recommend waiting for that and then writing this section for it. [http://garoth.com/awesome/shifty.ogv Shifty Video (.ogv)]<br />
<br />
Note2: There is actually yet another implementation of this feature. I'm hoping it merges with Shifty, and I'm poking the developers in that direction.<br />
<br />
===Space Invaders===<br />
Space Invaders is a demo to show the possibilities of the Awesome Lua API.<br />
[http://awesome.naquadah.org/wiki/Space_Invaders]<br />
<br />
Please note that it is no longer included in the Awesome package since the 3.4-rc1 release.<br />
<br />
===Naughty for popup notification===<br />
TODO<br />
[http://awesome.naquadah.org/wiki/index.php?title=Naughty]<br />
<br />
===Popup Menus===<br />
There's a simple menu by default in awesome3, and customed menus seem very easy now. However, if you're using 2.x awesome, have a look at ''[http://awesome.naquadah.org/wiki/index.php?title=Awful.menu awful.menu]''.<br />
<br />
An example for awesome3:<br />
<pre><br />
myawesomemenu = {<br />
{ "lock", "xscreensaver-command -activate" },<br />
{ "manual", terminal .. " -e man awesome" },<br />
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },<br />
{ "restart", awesome.restart },<br />
{ "quit", awesome.quit }<br />
}<br />
<br />
mycommons = {<br />
{ "pidgin", "pidgin" },<br />
{ "OpenOffice", "soffice-dev" },<br />
{ "Graphic", "gimp" }<br />
}<br />
<br />
mymainmenu = awful.menu.new({ items = { <br />
{ "terminal", terminal },<br />
{ "icecat", "icecat" },<br />
{ "Editor", "gvim" },<br />
{ "File Manager", "pcmanfm" },<br />
{ "VirtualBox", "VirtualBox" },<br />
{ "Common App", mycommons, beautiful.awesome_icon },<br />
{ "awesome", myawesomemenu, beautiful.awesome_icon }<br />
}<br />
})<br />
</pre><br />
<br />
===More Widgets in awesome===<br />
''Widgets in awesome are objects that you can add to any widget-box (statusbars and titlebars), they can provide various information about your system, and are useful for having access to this information, right from your window manager. Widgets are simple to use and offer a great deal of flexibility.'' -- Source [http://awesome.naquadah.org/wiki/Widgets_in_awesome Awesome Wiki: Widgets].<br />
<br />
There's a widely used widget library called '''Wicked''' (compatible with awesome versions '''prior to 3.4'''), that provides more widgets, like MPD widget, CPU usage, memory usage, etc. For more details see the [http://awesome.naquadah.org/wiki/index.php?title=Wicked Wicked page].<br />
<br />
As a replacement for Wicked in awesome v3.4 check '''[http://awesome.naquadah.org/wiki/Vicious Vicious]''', '''[http://awesome.naquadah.org/wiki/Obvious Obvious]''' and '''[http://awesome.naquadah.org/wiki/Bashets Bashets]'''. If you pick vicious, you are also suggested to take a good look at [http://git.sysphere.org/vicious/tree/README vicious documentation].<br />
<br />
===Transparency===<br />
Awesome has support for (2D) transparency through xcompmgr. Note that you'll probably want the git version of xcompmgr, which is [http://aur.archlinux.org/packages.php?ID=16554 available in AUR]. <br />
<br />
Add this to your ~/.xinitrc:<br />
exec xcompmgr &<br />
See ''man xcompmgr'' or [[xcompmgr]] for more options.<br />
<br />
In awesome 3.4, window transparency can be set dynamically using signals. For example, your rc.lua could contain the following:<br />
<br />
client.add_signal("focus", function(c)<br />
c.border_color = beautiful.border_focus<br />
c.opacity = 1<br />
end)<br />
client.add_signal("unfocus", function(c)<br />
c.border_color = beautiful.border_normal<br />
c.opacity = 0.7<br />
end)<br />
<br />
Note that if you are using conky, you must set it to create its own window instead of using the desktop. To do so, edit ~/.conkyrc to contain:<br />
<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_type desktop<br />
<br />
Otherwise strange behavior may be observed, such as all windows becoming fully transparent. Note also that since conky will be creating a transparent window on your desktop, any actions defined in awesome's rc.lua for the desktop will not work where conky is.<br />
<br />
As of Awesome 3.1, there is built-in pseudo-transparency for wiboxes. To enable it, append 2 hexadecimal digits to the colors in your theme file (~/.config/awesome/themes/default, which is usually a copy of /usr/share/awesome/themes/default), like shown here:<br />
<br />
bg_normal = #000000AA<br />
<br />
where "AA" is the transparency value.<br />
<br />
===Autorun programs===<br />
Just add the following codes in the rc.lua, and replace the applications in the autorunApps section with anything you like. Example:<br />
-- Autorun programs<br />
autorun = true<br />
autorunApps = <br />
{ <br />
"swiftfox",<br />
"mutt",<br />
"consonance",<br />
"linux-fetion",<br />
"weechat-curses",<br />
}<br />
if autorun then<br />
for app = 1, #autorunApps do<br />
awful.util.spawn(autorunApps[app])<br />
end<br />
end<br />
or like this:<br />
os.execute("mutt &"),<br />
os.execute("weechat-curses &"),<br />
<br />
To execute an application only once, e.g. for restarting awesome, use this function (from the [http://awesome.naquadah.org/wiki/Autostart awesome wiki]):<br />
function run_once(prg)<br />
if not prg then<br />
do return nil end<br />
end<br />
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")<br />
end<br />
<br />
-- AUTORUN APPS!<br />
run_once("parcellite")<br />
<br />
===Passing content to widgets with awesome-client===<br />
<br />
You can easily send text to an awesome widget. Just create a new widget:<br />
<pre><br />
mywidget = widget({ type = "textbox", name = "mywidget" })<br />
mywidget.text = "initial text"<br />
</pre><br />
To update the text from an external source, use awesome-client:<br />
<pre> <br />
echo -e 'mywidget.text = "new text"' | awesome-client<br />
</pre><br />
Don't forget to add the widget to your wibox.<br />
<br />
==Troubleshooting==<br />
<br />
===Mod4 key===<br />
<br />
The Mod4 is by default the '''Win key'''. If it's not mapped by default, for some reason, you can check the keycode of your Mod4 key with<br />
<br />
$ xev<br />
<br />
It should be 115 for the left one. Then add this to your ~/.xinitrc<br />
<br />
xmodmap -e "keycode 115 = Super_L" -e "add mod4 = Super_L"<br />
exec awesome<br />
<br />
====Mod4 key vs. IBM ThinkPad users====<br />
<br />
IBM ThinkPads do not come equipped with a Window key (although Lenovo have changed this tradition on their ThinkPads). As of writing, the Alt key is not used in command combinations by the default rc.lua (refer to the Awesome wiki for a table of commands), which allows it be used as a replacement for the Super/Mod4/Win key. To do this, edit your rc.lua and replace:<br />
<br />
modkey = "Mod4"<br />
<br />
by:<br />
<br />
modkey = "Mod1"<br />
<br />
Note: Awesome does a have a few commands that make use of Mod4 plus a single letter. Changing Mod4 to Mod1/Alt could cause overlaps for some key combinations. The small amount of instances where this happens can be changed in the rc.lua file.<br />
<br />
If you don't like to change the awesome standards, you might like to remap a key. For instance the caps lock key is rather useless (for me) adding the following contents to ~/.Xmodmap <br />
<br />
clear lock <br />
add mod4 = Caps_Lock<br />
<br />
and [http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg#Introduction_2 (re)load] the file.<br />
This will change the caps lock key into the mod4 key and works nicely with the standard awesome settings. In addition, if needed, it provides the mod4 key to other X-programs as well.<br />
<br />
===Cairo Memory Leak===<br />
If you experiencing [http://awesome.naquadah.org/bugs/index.php?do=details&task_id=396 memory leaks] then try [http://aur.archlinux.org/packages.php?ID=9566 cairo-git] in AUR. [http://bbs.archlinux.org/viewtopic.php?pid=462021 Forum Thread]<br />
<br />
'''Update''': The recent Cairo 1.8.6 release is also fine to use it seems as the fix from git should be in there.<br />
<br />
==External Links==<br />
* http://awesome.naquadah.org/wiki/FAQ - FAQ<br />
* http://www.lua.org/pil/ - Programming in Lua (first edition)<br />
* http://awesome.naquadah.org/ - The official awesome website<br />
* http://awesome.naquadah.org/wiki/Main_Page - the awesome wiki<br />
* http://www.penguinsightings.org/desktop/awesome/ - A review</div>N0dixhttps://wiki.archlinux.org/index.php?title=Awesome_(window_manager)&diff=93612Awesome (window manager)2010-01-25T19:52:02Z<p>N0dix: </p>
<hr />
<div>[[Category:Desktop environments (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|Awesome (Česky)}}<br />
{{i18n_entry|English|Awesome3}}<br />
{{i18n_entry|Awesome3(Español)}}<br />
{{i18n_entry|简体中文|Awesome_(简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
From the awesome website:<br />
<br />
"''[http://awesome.naquadah.org/ awesome] is a highly configurable, next generation framework window manager for X. It is very fast, extensible and licensed under the GNU GPLv2 license.<br />
<br />
It is primarly targeted at power users, developers and any people dealing with every day computing tasks and who want to have fine-grained control on its graphical environment.''"<br />
<br />
==Installation==<br />
<br />
Awesome 3.x is available in the community repositories, just:<br />
# pacman -S awesome<br />
<br />
===Awesome-git===<br />
Git-based development versions are available from AUR, see [http://aur.archlinux.org/packages.php?ID=13916 awesome-git] <br />
<br />
There are several ways to install them.<br />
The easiest is to use "yaourt" (also available in the AUR). If you have yaourt installed, simply:<br />
# yaourt -S awesome-git<br />
<br />
==Getting Started==<br />
<br />
===Using awesome===<br />
To run awesome without a login manager, simply add '''<tt>exec awesome</tt>''' to the startup script of your choice (e.g. ~/.xinitrc.)<br />
<br />
If you have problems with some devices (like mounting usbkeys, reading dvds) be sure to read documentation about [[HAL]] and policykit. When you don't use a login manager, nothing is automated. In some cases, using '''<tt>exec ck-launch-session awesome</tt>''' can solve your problems.<br />
<br />
To start awesome from a login manager, see [[Adding a login manager (KDM, GDM, or XDM) to automatically boot on startup | this article]]. <br />
<br />
'''[[SLIM]]''' is a popular lightweight login manager and comes highly recommended. You should do like this:<br />
<br />
1) Edit /etc/slim.conf for start awesome session, add awesome to sessions line. <br>For example: <br />
sessions awesome,wmii,xmonad<br />
2) Edit ~/.xinitrc file <br />
DEFAULT_SESSION=awesome<br />
case $1 in<br />
awesome) exec awesome ;;<br />
wmii) exec wmii ;;<br />
xmonad) exec xmonad ;;<br />
*) exec $DEFAULT_SESSION ;;<br />
esac<br />
However, you can also start awesome as preferred user without any login manager and even without logging in, after editing ~/.xinitrc and /etc/inittab properly. Refer to the article [[Start X at boot]].<br />
<br />
==Configuration==<br />
Awesome includes some good default settings right out of the box, but sooner or later you'll want to change something. The lua based configuration file is at <tt>~/.config/awesome/rc.lua</tt>.<br />
<br />
===Creating the configuration file===<br />
Whenever compiled, awesome will attempt to use whatever custom settings are contained in ~/.config/awesome/rc.lua. This file is not created by default, so we must copy the template file first:<br />
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua<br />
<br />
The syntax of the configuration often changes when awesome updates. So, remember to repeate the command above when you get something strange with awesome, or you'd like to modify the configuration.<br />
<br />
For more information about configuring awesome, check out the [http://awesome.naquadah.org/wiki/Awesome_3_configuration configuration page at awesome wiki]<br />
<br />
===More configuration resources===<br />
{{Note|The syntax of awesome configuration changes regularly, so you will likely have to modify any file you download.}}<br />
<br />
Some good examples of rc.lua would be as follows:<br />
<br />
* http://git.sysphere.org/awesome-configs/tree/ - Awesome 3.4 configurations from Adrian C. (anrxc)<br />
* http://pastebin.com/f6e4b064e - Darthlukan's awesome 3.4 configuration. <br />
* http://www.calmar.ws/dotfiles/dotfiledir/dot_awesomerc.lua<br />
* http://github.com/wolgri/wolgri.config/tree/master/.config/awesome/rc.lua<br />
* http://oxmoz.no-ip.org/awesome/rc.lua<br />
* http://www.ugolnik.info/downloads/awesome/rc.lua (screen) - Awesome 3 with small titlebar and statusbar.<br />
* http://github.com/bash/dotfiles/blob/master/.config/awesome/rc.lua<br />
* http://github.com/nblock/config/blob/master/.config/awesome/rc.lua<br />
* User Configuration Files http://awesome.naquadah.org/wiki/User_Configuration_Files<br />
<br />
===Debug rc.lua using Xephyr===<br />
<br />
This is my prefered way to debug rc.lua, without breaking my curent desktop. I first copy my rc.lua into a new file, rc.lua.new, and modify it as needed. Then, I run new instance of awesome in Xephyr (allows you to run X nested in another X's client window - [http://www.dante4d.cz/pub/screenie/2009-08-01-025216_1920x1200_scrot.png screenshot]), supplying rc.lua.new as a config file like this:<br />
<br />
$ Xephyr -ac -br -noreset -screen 1152x720 :1 &<br />
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new<br />
<br />
Big advantage of this approach is that if I break rc.lua.new, I don't break my current awesome desktop (and possibly crash all my X apps, lose all unsaved things and so on...). Once I'm happy with my new settings, I move rc.lua.new to rc.lua and restart awesome. And I can be sure it will work and restarting with new config won't mess up things.<br />
<br />
==Themes==<br />
<br />
Beautiful is a lua library that allows you to theme awesome using an external file, it becomes very easy to dynamically change your whole awesome colours and wallpaper without changing your rc.lua. <br />
<br />
The default theme is at /usr/share/awesome/themes/default. Copy it to ~/.config/awesome/themes/default and change theme_path in rc.lua. <br />
<br />
More details [http://awesome.naquadah.org/wiki/Beautiful here]<br />
<br />
A few sample [http://awesome.naquadah.org/wiki/Beautiful_themes themes]<br />
<br />
===Setting up your wallpaper===<br />
<br />
Beautiful can handle your wallpaper, thus you don't need to set it up in your .xinitrc or .xsession files. This allows you to have a specific wallpaper for each theme. If you take a look at the default theme file you'll see a wallpaper_cmd key, the given command is executed when beautiful.init("path_to_theme_file") is run. You can put here you own command or remove/comment the key if you don't want Beautiful to interfere with your wallpaper business.<br />
<br />
For instance, if you use awsetbg to set your wallpaper, you can write:<br />
<br />
wallpaper_cmd = { "awsetbg -f .config/awesome/themes/awesome-wallpaper.png" }<br />
<br />
====Random Background Image====<br />
To rotate the wallpapers randomly, just comment the wallpaper_cmd line above, and add a script into your .xinitrc with the codes below:<br />
<pre><br />
while true;<br />
do<br />
awsetbg -r <path/to/the/directory/of/your/wallpapers><br />
sleep 15m<br />
done &<br />
</pre><br />
<br />
==Tips & Tricks==<br />
Feel free to add any tips or tricks that you would like to pass on to other awesome users.<br />
<br />
===Expose effect like compiz===<br />
<br />
Revelation brings up a view of all your open clients; left-clicking a client pops to the first tag that client is visible on and raises/focuses the client. In addition, the Enter key pops to the currently focused client, and Escape aborts. <br />
<br />
http://awesome.naquadah.org/wiki/Revelation<br />
<br />
===Hide / show wibox in awesome 3===<br />
<br />
To map Modkey-b to hide/show default statusbar on active screen (as default in awesome 2.3), add to your ''clientkeys'' in rc.lua:<br />
<br />
awful.key({ modkey }, "b", function ()<br />
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible<br />
end),<br />
<br />
===Enable printscreens===<br />
<br />
To enable printscreens in awesome through the PrtScr button you need to have a screen capturing program.<br />
Scrot is a easy to use utility for this purpose and is available in Arch repositories.<br />
<br />
Just type:<br />
# pacman -S scrot<br />
<br />
and install optional dependencies if you feel that you need them.<br />
<br />
Next of we need to get the key name for PrtScr, most often this is named "Print" but one can never be too sure.<br />
<br />
Start up:<br />
# xev<br />
<br />
And press the PrtScr button, the output should be something like:<br />
KeyPress event ....<br />
root 0x25c, subw 0x0, ...<br />
state 0x0, keycode 107 (keysym 0xff61, '''Print'''), same_screen YES,<br />
....<br />
<br />
In my case as you see, the keyname is Print.<br />
<br />
Now to the configuration of awesome!<br />
<br />
Somewhere in your globalkeys array (doesn't mather where) type:<br />
<br />
Lua code:<br />
<br />
awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),<br />
<br />
A good place to place this is bellow the keyhook for spawning a terminal.<br />
To find this line search for: awful.util.spawn(terminal) in your favourite text editor.<br />
<br />
Also, this function saves screenshots inside ~/screenshots/, edit this to fit your needs.<br />
<br />
===Dynamic tagging using Eminent===<br />
<br />
TODO...<br />
[http://awesome.naquadah.org/wiki/index.php?title=Eminent]<br />
<br />
Note: Eminent is a bit old and outdated. We have a new library in the works, Shifty. It hasn't been included with the main source yet, but is very promising. I'd recommend waiting for that and then writing this section for it. [http://garoth.com/awesome/shifty.ogv Shifty Video (.ogv)]<br />
<br />
Note2: There is actually yet another implementation of this feature. I'm hoping it merges with Shifty, and I'm poking the developers in that direction.<br />
<br />
===Space Invaders===<br />
Space Invaders is a demo to show the possibilities of the Awesome Lua API.<br />
[http://awesome.naquadah.org/wiki/Space_Invaders]<br />
<br />
Please note that it is no longer included in the Awesome package since the 3.4-rc1 release.<br />
<br />
===Naughty for popup notification===<br />
TODO<br />
[http://awesome.naquadah.org/wiki/index.php?title=Naughty]<br />
<br />
===Popup Menus===<br />
There's a simple menu by default in awesome3, and customed menus seem very easy now. However, if you're using 2.x awesome, have a look at ''[http://awesome.naquadah.org/wiki/index.php?title=Awful.menu awful.menu]''.<br />
<br />
An example for awesome3:<br />
<pre><br />
myawesomemenu = {<br />
{ "lock", "xscreensaver-command -activate" },<br />
{ "manual", terminal .. " -e man awesome" },<br />
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },<br />
{ "restart", awesome.restart },<br />
{ "quit", awesome.quit }<br />
}<br />
<br />
mycommons = {<br />
{ "pidgin", "pidgin" },<br />
{ "OpenOffice", "soffice-dev" },<br />
{ "Graphic", "gimp" }<br />
}<br />
<br />
mymainmenu = awful.menu.new({ items = { <br />
{ "terminal", terminal },<br />
{ "icecat", "icecat" },<br />
{ "Editor", "gvim" },<br />
{ "File Manager", "pcmanfm" },<br />
{ "VirtualBox", "VirtualBox" },<br />
{ "Common App", mycommons, beautiful.awesome_icon },<br />
{ "awesome", myawesomemenu, beautiful.awesome_icon }<br />
}<br />
})<br />
</pre><br />
<br />
===More Widgets in awesome===<br />
''Widgets in awesome are objects that you can add to any widget-box (statusbars and titlebars), they can provide various information about your system, and are useful for having access to this information, right from your window manager. Widgets are simple to use and offer a great deal of flexibility.'' -- Source [http://awesome.naquadah.org/wiki/Widgets_in_awesome Awesome Wiki: Widgets].<br />
<br />
There's a widely used widget library called '''Wicked''' (compatible with awesome versions '''prior to 3.4'''), that provides more widgets, like MPD widget, CPU usage, memory usage, etc. For more details see the [http://awesome.naquadah.org/wiki/index.php?title=Wicked Wicked page].<br />
<br />
As a replacement for Wicked in awesome v3.4 check '''[http://awesome.naquadah.org/wiki/Vicious Vicious]''', '''[http://awesome.naquadah.org/wiki/Obvious Obvious]''' and '''[http://awesome.naquadah.org/wiki/Bashets Bashets]'''. If you pick vicious, you are also suggested to take a good look at [http://git.sysphere.org/vicious/tree/README vicious documentation].<br />
<br />
===Transparency===<br />
Awesome has support for (2D) transparency through xcompmgr. Note that you'll probably want the git version of xcompmgr, which is [http://aur.archlinux.org/packages.php?ID=16554 available in AUR]. <br />
<br />
Add this to your ~/.xinitrc:<br />
exec xcompmgr &<br />
See ''man xcompmgr'' or [[xcompmgr]] for more options.<br />
<br />
In awesome 3.4, window transparency can be set dynamically using signals. For example, your rc.lua could contain the following:<br />
<br />
client.add_signal("focus", function(c)<br />
c.border_color = beautiful.border_focus<br />
c.opacity = 1<br />
end)<br />
client.add_signal("unfocus", function(c)<br />
c.border_color = beautiful.border_normal<br />
c.opacity = 0.7<br />
end)<br />
<br />
Note that if you are using conky, you must set it to create its own window instead of using the desktop. To do so, edit ~/.conkyrc to contain:<br />
<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_type desktop<br />
<br />
Otherwise strange behavior may be observed, such as all windows becoming fully transparent. Note also that since conky will be creating a transparent window on your desktop, any actions defined in awesome's rc.lua for the desktop will not work where conky is.<br />
<br />
As of Awesome 3.1, there is built-in pseudo-transparency for wiboxes. To enable it, append 2 hexadecimal digits to the colors in your theme file (~/.config/awesome/themes/default, which is usually a copy of /usr/share/awesome/themes/default), like shown here:<br />
<br />
bg_normal = #000000AA<br />
<br />
where "AA" is the transparency value.<br />
<br />
===Autorun programs===<br />
Just add the following codes in the rc.lua, and replace the applications in the autorunApps section with anything you like. Example:<br />
-- Autorun programs<br />
autorun = true<br />
autorunApps = <br />
{ <br />
"swiftfox",<br />
"mutt",<br />
"consonance",<br />
"linux-fetion",<br />
"weechat-curses",<br />
}<br />
if autorun then<br />
for app = 1, #autorunApps do<br />
awful.util.spawn(autorunApps[app])<br />
end<br />
end<br />
or like this:<br />
os.execute("mutt &"),<br />
os.execute("weechat-curses &"),<br />
<br />
To execute an application only once, e.g. for restarting awesome, use this function (from the [http://awesome.naquadah.org/wiki/Autostart awesome wiki]):<br />
function run_once(prg)<br />
if not prg then<br />
do return nil end<br />
end<br />
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")<br />
end<br />
<br />
-- AUTORUN APPS!<br />
run_once("parcellite")<br />
<br />
===Passing content to widgets with awesome-client===<br />
<br />
You can easily send text to an awesome widget. Just create a new widget:<br />
<pre><br />
mywidget = widget({ type = "textbox", name = "mywidget" })<br />
mywidget.text = "initial text"<br />
</pre><br />
To update the text from an external source, use awesome-client:<br />
<pre> <br />
echo -e 'mywidget.text = "new text"' | awesome-client<br />
</pre><br />
Don't forget to add the widget to your wibox.<br />
<br />
==Troubleshooting==<br />
<br />
===Mod4 key===<br />
<br />
The Mod4 is by default the '''Win key'''. If it's not mapped by default, for some reason, you can check the keycode of your Mod4 key with<br />
<br />
$ xev<br />
<br />
It should be 115 for the left one. Then add this to your ~/.xinitrc<br />
<br />
xmodmap -e "keycode 115 = Super_L" -e "add mod4 = Super_L"<br />
exec awesome<br />
<br />
====Mod4 key vs. IBM ThinkPad users====<br />
<br />
IBM ThinkPads do not come equipped with a Window key (although Lenovo have changed this tradition on their ThinkPads). As of writing, the Alt key is not used in command combinations by the default rc.lua (refer to the Awesome wiki for a table of commands), which allows it be used as a replacement for the Super/Mod4/Win key. To do this, edit your rc.lua and replace:<br />
<br />
modkey = "Mod4"<br />
<br />
by:<br />
<br />
modkey = "Mod1"<br />
<br />
Note: Awesome does a have a few commands that make use of Mod4 plus a single letter. Changing Mod4 to Mod1/Alt could cause overlaps for some key combinations. The small amount of instances where this happens can be changed in the rc.lua file.<br />
<br />
If you don't like to change the awesome standards, you might like to remap a key. For instance the caps lock key is rather useless (for me) adding the following contents to ~/.Xmodmap <br />
<br />
clear lock <br />
add mod4 = Caps_Lock<br />
<br />
and [http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg#Introduction_2 (re)load] the file.<br />
This will change the caps lock key into the mod4 key and works nicely with the standard awesome settings. In addition, if needed, it provides the mod4 key to other X-programs as well.<br />
<br />
===Cairo Memory Leak===<br />
If you experiencing [http://awesome.naquadah.org/bugs/index.php?do=details&task_id=396 memory leaks] then try [http://aur.archlinux.org/packages.php?ID=9566 cairo-git] in AUR. [http://bbs.archlinux.org/viewtopic.php?pid=462021 Forum Thread]<br />
<br />
'''Update''': The recent Cairo 1.8.6 release is also fine to use it seems as the fix from git should be in there.<br />
<br />
==External Links==<br />
* http://awesome.naquadah.org/wiki/FAQ - FAQ<br />
* http://www.lua.org/pil/ - Programming in Lua (first edition)<br />
* http://awesome.naquadah.org/ - The official awesome website<br />
* http://awesome.naquadah.org/wiki/Main_Page - the awesome wiki<br />
* http://www.penguinsightings.org/desktop/awesome/ - A review</div>N0dixhttps://wiki.archlinux.org/index.php?title=Awesome3_(Espa%C3%B1ol)&diff=93598Awesome3 (Español)2010-01-25T17:06:26Z<p>N0dix: Created page with 'Category:Entornos de escritorio (Español) Category:CÓMOs (Español) {{i18n_links_start}} {{i18n_entry|Česky|Awesome (Česky)}} {{i18n_entry|English|Awesome3}} {{i18n_e…'</p>
<hr />
<div>[[Category:Entornos de escritorio (Español)]]<br />
[[Category:CÓMOs (Español)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|Česky|Awesome (Česky)}}<br />
{{i18n_entry|English|Awesome3}}<br />
{{i18n_entry|简体中文|Awesome_(简体中文)}}<br />
{{i18n_links_end}}<br />
<br />
Desde el sitio web awesome:<br />
<br />
"''[http://awesome.naquadah.org/ awesome] es altamente configurable y es la próxima generación para administradores de ventanas para el X. Es muy rápido, extensible y está bajo la licencia GNU GPLv2.<br />
<br />
Esta pensado principalmente para usuarios con experiencia, desarrolladores y personas que lidian cada día con tareas computacionales y que desean un control detallado de su entorno gráfico.''"<br />
<br />
==Instalación==<br />
<br />
Awesome 3.x está disponible en los repositorios de la comunidad, haga:<br />
# pacman -S awesome<br />
<br />
===Awesome-git===<br />
La versión para desarrolladores basada en Git está disponible en AUR, ver [http://aur.archlinux.org/packages.php?ID=13916 awesome-git]<br />
<br />
Hay muchas formas para instalarlo.<br />
<br />
La manera más fácil es usar "yaourt" (también disponible en AUR). Si se tiene yaourt instalado, haga:<br />
# yaourt -S awesome-git<br />
<br />
<br />
==Cómo Empezar==<br />
<br />
===Usando awesome===<br />
Para ejecutar awesome sin un manejador de sesión, sólo agregue '''<tt>exec awesome</tt>''' a el script de inicio de su elección (e.g. ~/.xinitrc.)<br />
<br />
Si tiene problemas con algunos dispositivos (como montar usbs, leer dvds) asegúrese de leer la documentación sobre [[HAL]] y su policykit. Cuando no utilice un manejador de sesión, nada es automático. En algunos casos, usando '''<tt>exec ck-launch-session awesome</tt>''' puede solucionar sus problemas.<br />
<br />
Para iniciar awesome desde un manejador de sesión, ver [[Agregando un manejador de sesión (KDM, GDM, o XDM) para automatizar el arranque de inicio | este artículo]].<br />
<br />
'''[[SLIM]]''' es un popular y liviano manejador de sesión que es altamente recomendado. Debería hacer esto:<br />
<br />
1) Editar /etc/slim.conf para iniciar la sesión de awesome, agregue awesome en la sección. <br>Por ejemplo: <br />
sessions awesome,wmii,xmonad<br />
2) Editar el archivo ~/.xinitrc <br />
DEFAULT_SESSION=awesome<br />
case $1 in<br />
awesome) exec awesome ;;<br />
wmii) exec wmii ;;<br />
xmonad) exec xmonad ;;<br />
*) exec $DEFAULT_SESSION ;;<br />
esac<br />
<br />
Sin embargo, se puede también iniciar awesome como usuario preestablecido sin ningún manejador de sesión y sin una contraseña, después que edite ~/.xinitrc y /etc/inittab adecuadamente. Ver el artículo [[Start X at boot]].<br />
<br />
==Configuración==<br />
<br />
Awesome incluye una buena configuración inicial, pero temprano o tarde tendrá que cambiar algo. El archivo de configuración basado en lua se encuentra en <tt>~/.config/awesome/rc.lua</tt>.<br />
<br />
===Creando el archivo de configuración=== <br />
Siempre que sea compilado, awesome intentará utilizar cualquier configuración personalizada que se encuentre en ~/.config/awesome/rc.lua. Este archivo no se crea por defecto, por lo tanto, es necesario copiar el archivo primero:<br />
$ cp /etc/xdg/awesome/rc.lua ~/.config/awesome/rc.lua<br />
<br />
La sintaxis para configurar el archivo usualmente cambia cuando se realiza una actualización de awesome. Por lo tanto, recuerde repetir el comando de arriba cuando obtenga un comportamiento extraño o quiera modificar la configuración.<br />
<br />
Para mayor información sobre la configuración de awesome, observe <br />
[http://awesome.naquadah.org/wiki/Awesome_3_configuration configuración de awesome en el wiki]<br />
<br />
===Mas recursos de configuración===<br />
{{Observe|La sintaxis de awesome cambia regularmente, por lo tanto, probablemente tendrán que modificar cualquier archivo que se descargue.}}<br />
<br />
Varios buenos ejemplos de rc.lua son los siguientes: <br />
<br />
* http://git.sysphere.org/awesome-configs/tree/ - Awesome 3.4 configuración por Adrian C. (anrxc)<br />
* http://pastebin.com/f6e4b064e - Darthlukan's awesome 3.4 configuración. <br />
* http://www.calmar.ws/dotfiles/dotfiledir/dot_awesomerc.lua<br />
* http://github.com/wolgri/wolgri.config/tree/master/.config/awesome/rc.lua<br />
* http://oxmoz.no-ip.org/awesome/rc.lua<br />
* http://www.ugolnik.info/downloads/awesome/rc.lua (screen) - Awesome 3 con una pequeña barra de titulo y barra de estado.<br />
* http://github.com/bash/dotfiles/blob/master/.config/awesome/rc.lua<br />
* http://github.com/nblock/config/blob/master/.config/awesome/rc.lua<br />
* User Configuration Files http://awesome.naquadah.org/wiki/User_Configuration_Files<br />
<br />
===Depurando rc.lua usando Xephyr===<br />
Esta es la forma que prefiero depurar rc.lua, sin la necesidad de cerrar mi escritorio actual. Primero copio mi rc.lua en un nuevo archivo, rc.lua.new, y lo modifico si es necesario. Luego, ejecuto la nueva instancia de awesome en Xephyr (permitiendo ejecutar un X adjunto a otro cliente X's - [http://www.dante4d.cz/pub/screenie/2009-08-01-025216_1920x1200_scrot.png screenshot]), reemplazando rc.lua.new como el archivo de configuración, de esta forma:<br />
<br />
$ Xephyr -ac -br -noreset -screen 1152x720 :1 &<br />
$ DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua.new<br />
<br />
La gran ventaja de esta enfoque es que si se rompe el rc.lua.new, no se necesita cerrar el escritorio awesome actual (y probablemente dañe todas las aplicaciones X, perdiendo las cosas que no se salvaron...). Una vez que este satisfecho con los nuevos cambios, mover el rc.lua.new a rc.lua y reiniciar awesome. Y puede estar seguro de que el trabajo de configuración y reinicio de la nueva configuración no dañe las cosas.<br />
<br />
==Temas==<br />
<br />
Beautiful es la biblioteca de lua que le permite cambiar de tema en awesome usando un archivo externo, de manera que es muy fácil cambiar dinamicamente todo los colores de awesome y el fondo de escritorio sin la necesidad de cambiar el archivo rc.lua.<br />
<br />
El tema por defecto está en /usr/share/awesome/themes/default. Cópielo <br />
~/.config/awesome/themes/default y cambie la ruta_del_tema en rc.lua. <br />
<br />
Para más detalles [http://awesome.naquadah.org/wiki/Beautiful aquí]<br />
<br />
Algunos ejemplos [http://awesome.naquadah.org/wiki/Beautiful_themes temas]<br />
<br />
<br />
===Cración de su fondo de escritorio===<br />
Beautiful puede manejar su fondo de escritorio, de manera que no tenga que agregarlo en su archivo .xinitrc o .xsession. Este le permite tener un fondo de escritorio especifico por cada tema. Si observa el tema por defecto observará una entrada llamada wallpaper_cmd, este comando es ejecutado cuando el beautiful.init("ruta_archivo_del_tema") este corriendo. Usted puede colocar allí su propio comando o eliminar/comentar la entrada si no quiere que Beautiful interfiera con el fondo de escritorio. <br />
<br />
Para una instancia, si usa awsetbg para establecer su fondo de escritorio, usted puede escribir:<br />
<br />
wallpaper_cmd = { "awsetbg -f .config/awesome/themes/awesome-wallpaper.png" }<br />
<br />
====Imagen de Fondo Aleatoria===<br />
Para rotar el fondo de escritorio aleatoriamente, necesita comentar la línea wallpaper_cmd, y agregar un script en su .xinitrc con el código siguiente: <br />
<pre><br />
while true;<br />
do<br />
awsetbg -r <path/to/the/directory/of/your/wallpapers><br />
sleep 15m<br />
done &<br />
</pre><br />
<br />
==Consejos & Trucos==<br />
<br />
Siéntete libre de agregar cualquier consejo o truco que te gustaría compartir con otros usuarios de awesome.<br />
<br />
===Expose efecto como compiz===<br />
Revelar el resultado de todos sus clientes abiertos; clic-izquierdo en un cliente abrirá una ventana emergente con la primera etiqueta visible que le permite obtener el foco del cliente. Además, la tecla Enter desplegara una ventana emergente que se enfocará en el cliente actual, y la tecla Escape es para abortar.<br />
<br />
http://awesome.naquadah.org/wiki/Revelation<br />
<br />
===Esconder / mostrar wibox en awesome 3===<br />
La tecla ModKey-b le permite esconder/mostrar la barra de estado en una pantalla activa (por defecto en awesome 2.3), agregue a su ''clientkeys'' en rc.lua:<br />
<br />
awful.key({ modkey }, "b", function ()<br />
mywibox[mouse.screen].visible = not mywibox[mouse.screen].visible<br />
end),<br />
<br />
===Activar printscreens===<br />
Para habilitar prinscreens en awesome desde el tecla PrtScr necesita tener un programa de captura de pantalla.<br />
Scrot es la utilidad más fácil de utilizar para este propósito y esta disponible en los repositorios de Arch. <br />
<br />
Sólo escriba:<br />
# pacman -S scrot<br />
<br />
e instale las dependencias opcionales si cree que las necesitará.<br />
<br />
Lo siguiente que necesitamos obtener es el nombre para el tecla PrtScr, en muchos casos se llama "Print" pero no se puede estar seguro.<br />
<br />
Ejecute:<br />
<br />
# xev<br />
<br />
Y presione la tecla PrtScr, la salida debería ser algo como esto:<br />
KeyPress event ....<br />
root 0x25c, subw 0x0, ...<br />
state 0x0, keycode 107 (keysym 0xff61, '''Print'''), same_screen YES,<br />
....<br />
<br />
En mi caso como observan, el nombre de la tecla es Print.<br />
<br />
Ahora la configuración de awesome!<br />
<br />
En algún lado de su conjunto de teclas globales (no importa donde) escriba:<br />
<br />
Lua código:<br />
<br />
awful.key({ }, "Print", function () awful.util.spawn("scrot -e 'mv $f ~/screenshots/ 2>/dev/null'") end),<br />
<br />
Un buen lugar para colocar esto es debajo del keyhook para el spawning un terminal.<br />
Para encontrar esta línea busque por: awful.util.spawn(terminal) en su editor de texto favorito.<br />
<br />
También, esta función guarda el screenshots dentro de ~/screenshots/, editelo para ajustarlo a sus necesidades.<br />
<br />
===Etiquetado dinámico utilizando Eminent===<br />
<br />
TODO...<br />
[http://awesome.naquadah.org/wiki/index.php?title=Eminent]<br />
<br />
Observación: Eminent es un poco antiguo y desactualizado. Nosotros tenemos una nueva biblioteca llamada: Shifty. No ha sido incluida aun, pero es bastate prometedora. Yo recomiendo esperar por y después escribir su respectiva sección. [http://garoth.com/awesome/shifty.ogv Shifty Video (.ogv)]<br />
<br />
Observación2: Hay actualmente otra implementación para esta funcionalidad. Estoy esperando que se integre con Shifty, y estoy dirigiendo a los desarrolladores en esa dirección.<br />
<br />
===Invasores del Espacio===<br />
Invasores del Espacio es un demo que muestra las posibilidades de awesome Lua API.<br />
[http://awesome.naquadah.org/wiki/Space_Invaders]<br />
<br />
Por favor, tenga en cuenta que no esta incluido en los paquetes de Awesome desde la versión 3.4-rc1.<br />
<br />
===Vistosa notificación emergente===<br />
TODO<br />
[http://awesome.naquadah.org/wiki/index.php?title=Naughty]<br />
<br />
===Ventanas Emergentes en los Menus===<br />
Hay un solo menu por defecto en awesome3, y personalizarlo es muy fácil ahora. Sin embargo, si esta utilizando la versión 2.x de awesome, tiene que ver ''[http://awesome.naquadah.org/wiki/index.php?title=Awful.menu awful.menu]''.<br />
<br />
Un ejemplo para awesome3:<br />
<pre><br />
myawesomemenu = {<br />
{ "lock", "xscreensaver-command -activate" },<br />
{ "manual", terminal .. " -e man awesome" },<br />
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },<br />
{ "restart", awesome.restart },<br />
{ "quit", awesome.quit }<br />
}<br />
<br />
mycommons = {<br />
{ "pidgin", "pidgin" },<br />
{ "OpenOffice", "soffice-dev" },<br />
{ "Graphic", "gimp" }<br />
}<br />
<br />
mymainmenu = awful.menu.new({ items = { <br />
{ "terminal", terminal },<br />
{ "icecat", "icecat" },<br />
{ "Editor", "gvim" },<br />
{ "File Manager", "pcmanfm" },<br />
{ "VirtualBox", "VirtualBox" },<br />
{ "Common App", mycommons, beautiful.awesome_icon },<br />
{ "awesome", myawesomemenu, beautiful.awesome_icon }<br />
}<br />
})<br />
</pre><br />
<br />
===Mas Widgets en awesome===<br />
''Los Widgets en awesome son objetos que se pueden agregar a cualquier contenedor-widget (barra de estado y barra de títulos), ellos pueden proveer de varias informaciones sobre el sistema, y son muy útiles para tener acceso a esa información desde la manejador de ventanas. Los Widgets son fáciles de utilizar y comúnmente proporcionan mucha flexibilidad.'' -- Fuente [http://awesome.naquadah.org/wiki/Widgets_in_awesome Awesome Wiki: Widgets].<br />
<br />
Existe una biblioteca para widgets mayormente utilizada llamada '''Wicked''' (compatible con las versiones '''superiores a 3.4''' de awesome), que proveen de muchos widgets, como MPD widget, uso del CPU, uso de la memoria, etc. Para más detalles ver [http://awesome.naquadah.org/wiki/index.php?title=Wicked la página de Wicked].<br />
<br />
Un reemplazo para Wicked en awesome v3.4 es '''[http://awesome.naquadah.org/wiki/Vicious Vicious]''', '''[http://awesome.naquadah.org/wiki/Obvious Obvious]''' y '''[http://awesome.naquadah.org/wiki/Bashets Bashets]'''. Si elige vicious, se le recomienda ver <br />
[http://git.sysphere.org/vicious/tree/README vicious documentación].<br />
<br />
===Transparencia=== <br />
Awesome tiene soporte para transparencias (2D) con xcompmgr. Observe que probablemente querrá utilizar la versión git de xcompmgr, la cual es [http://aur.archlinux.org/packages.php?ID=16554 disponible en AUR].<br />
<br />
Agregue esto a su ~/.xinitrc:<br />
exec xcompmgr &<br />
Vea ''man xcompmgr'' o [[xcompmgr]] para más opciones.<br />
<br />
En awesome 3.4, la transparencia de la ventana puede ser establecida dinamicamente usandos señales. Por ejemplo, su rc.lua podría contener lo siguiente: <br />
<br />
client.add_signal("focus", function(c)<br />
c.border_color = beautiful.border_focus<br />
c.opacity = 1<br />
end)<br />
client.add_signal("unfocus", function(c)<br />
c.border_color = beautiful.border_normal<br />
c.opacity = 0.7<br />
end)<br />
<br />
Observe que si no esta usando conky, necesita establecerlo para crear su propia ventana en vez de usar la del escritorio. Para hacer esto, edite ~/.conkyrc para que contenga:<br />
<br />
own_window yes<br />
own_window_transparent yes<br />
own_window_type desktop<br />
<br />
De lo contrario se comportará extrañamente, que todas las ventanas tengan toda la transparencia. Observe también que desde que conky va a crear transparencias en las ventanas de su escritorio, toda acción definida en el archivo de awesome rc.lua no funcionará para el escritorio actual. <br />
<br />
A partir de Awesome 3.1, está incorporada la pseudo-transparencia para los wiboxes. Para habilitarlo, agregue dos dígitos hexadecimales a los colores en el archivo del tema (~/.config/awesome/themes/default, el cual es usualmente una copia de /usr/share/awesome/themes/default), como se muestra abajo:<br />
<br />
bg_normal = #000000AA<br />
<br />
donde "AA" es el valor de transparencia.<br />
<br />
===Ejecutar automáticamente programas===<br />
Solo agregue el siguiente código en el archivo rc.lua, y reemplace las aplicaciones en la sección autorunsApps con cualquier cosa que le guste. Por ejemplo: <br />
-- Autorun programs<br />
autorun = true<br />
autorunApps = <br />
{ <br />
"swiftfox",<br />
"mutt",<br />
"consonance",<br />
"linux-fetion",<br />
"weechat-curses",<br />
}<br />
if autorun then<br />
for app = 1, #autorunApps do<br />
awful.util.spawn(autorunApps[app])<br />
end<br />
end<br />
or like this:<br />
os.execute("mutt &"),<br />
os.execute("weechat-curses &"),<br />
<br />
Para ejecutar una aplicación solo una vez, e.g. para reiniciar awesome, utilice esta función (tomado de [http://awesome.naquadah.org/wiki/Autostart awesome wiki]):<br />
function run_once(prg)<br />
if not prg then<br />
do return nil end<br />
end<br />
awful.util.spawn_with_shell("pgrep -u $USER -x " .. prg .. " || (" .. prg .. ")")<br />
end<br />
<br />
-- AUTORUN APPS!<br />
run_once("parcellite")<br />
<br />
===Pasando contenido a un widget con awesome-client===<br />
You can easily send text to an awesome widget. Just create a new widget:<br />
Fácilmente se puede enviar texto a un widget de awesome. Solo cree un nuevo widget: <br />
<pre><br />
mywidget = widget({ type = "textbox", name = "mywidget" })<br />
mywidget.text = "initial text"<br />
</pre><br />
To update the text from an external source, use awesome-client:<br />
<pre> <br />
echo -e 'mywidget.text = "new text"' | awesome-client<br />
</pre><br />
No olvide agregar el widget a su wibox.<br />
<br />
==Solución de Problemas==<br />
<br />
===Tecla Mod4===<br />
La tecla Mod4 es por defecto la '''tecla Window'''. Si no está funcional por defecto, por alguna razón, usted puede verificar el código de la tecla de su tecla Mod4 con: <br />
<br />
$ xev<br />
<br />
Debería ser 115 como mínimo. Luego agréguela a su ~/.xinitrc<br />
<br />
xmodmap -e "keycode 115 = Super_L" -e "add mod4 = Super_L"<br />
exec awesome<br />
<br />
====Tecla Mod4 vs. usuario de IBM ThinkPad====<br />
IBM ThinkPads no vienen equipadas con la tecla Window (sin embargo Lenovo cambio esta tradición para sus ThinkPads). Como se ha escrito, la tecla Alt no está en uso para las combinaciones por defecto en rc.lua (vea el wiki de Awesome para la lista de comandos), pero puede utilizarse como reemplazo para la teclas Super/Mod 4/Win. Para hacer esto, edite su rc.lua y sustituya:<br />
<br />
modkey = "Mod4"<br />
<br />
by:<br />
<br />
modkey = "Mod1"<br />
<br />
Observación: Awesome tiene varias comandos que le permiten utilizar la tecla Mod4 en combinación con una simple letra. Cambiando Mod4 a Mod1/Alt podría causar choques para algunas combinaciones de teclas. La menor cantidad de instancias donde esto ocurre pueden ser cambiada en el archivo rc.lua.<br />
<br />
Si usted no le agrada cambiar los estándares de awesome, debe remapear una tecla. A veces la tecla de caps lock es inútil (para mi), por lo tanto, agrego lo siguiente al contenido de ~/.Xmodmap <br />
<br />
clear lock <br />
add mod4 = Caps_Lock<br />
<br />
y [http://wiki.archlinux.org/index.php/Extra_Keyboard_Keys_in_Xorg#Introduction_2 (re)cargo] el archivo.<br />
<br />
Se debe cambiar la tecla caps lock a la tecla mod4 y funciona bastante bien con el estándar de configuración de awesome. Además, si es necesario, la tecla mod4 es proporcionada por otros programas también.<br />
<br />
===Disminución de Memoria en Cairo===<br />
Si está experimentando [http://awesome.naquadah.org/bugs/index.php?do=details&task_id=396 disminución de memoria] entonces pruebe [http://aur.archlinux.org/packages.php?ID=9566 cairo-git] en AUR. [http://bbs.archlinux.org/viewtopic.php?pid=462021 Tema en el Foro].<br />
<br />
'''Actualización''': La versión actual de Cairo 1.8.6 se puede utilizar sin problemas, parece que la versión git soluciona el error.<br />
<br />
==Enlaces Externos==<br />
<br />
* http://awesome.naquadah.org/wiki/FAQ - FAQ<br />
* http://www.lua.org/pil/ - Programando en Lua (primera edición)<br />
* http://awesome.naquadah.org/ - Página oficial de Awesome<br />
* http://awesome.naquadah.org/wiki/Main_Page - El wiki de Awesome <br />
* http://www.penguinsightings.org/desktop/awesome/ - Un Análisis</div>N0dixhttps://wiki.archlinux.org/index.php?title=Quick_Arch_Linux_Install_(Espa%C3%B1ol)&diff=92856Quick Arch Linux Install (Español)2010-01-20T16:37:31Z<p>N0dix: </p>
<hr />
<div>[[Category:Obteniendo e instalando Arch (Español)]]<br />
[[Category:CÓMOs (Español)]]<br />
{{i18n|Quick Arch Linux Install}}<br />
{{translateme}}<br />
Este es un rápido vistazo para aquellos que no saben que es Arch y lo que es capaz de hacerse en el. Este documento está escrito principalmente para aquellas personas quienes tienen una partición de Windows en el disco duro, quieren configurar Arch Linux sin dañar la instalación de Windows y no quieren una guia extensa.<br />
<br />
Esta guia es para un hardware "normal"; nada especial (e.g. SCCI) se documenta.<br />
<br />
Se supone que existe Windows en la partición primaria del disco duro; de lo contrario, el GRUB no será capaz de encontrarlo.<br />
<br />
==Requisitos==<br />
* El CD Base de -Instalación- de Arch Linux o el CD de -Instalación- Completa. Se puede obtener [http://www.archlinux.org/download/ aquí].<br />
* Un disco duro vacío o con suficiente espacio libre para la partición. Se debe separar el espacio libre de la partición existente en Windows con una herramienta de particionado (e.g. PartitionMagic).<br />
<br />
==Instalación desde un CD/USB==<br />
* Inserte el CD/USB en la unidad, reinicie y comprobar que el BIOS arranque desde el CD-ROM. <br />
* Se le presentará un menu. Para la instalación, seleccione la opción "Boot ArchLive". Se configurará el sistema en el proceso.<br />
* Debería parecerse a esto:<br />
<br />
http://home.arcor.de/Langeland/1.png<br />
Imagen por defecto de Arch Live<br />
<br />
Para iniciar la instalación, inicie sesión como root y escriba:<br />
# /arch/setup<br />
<br />
Si obtiene la imagen de instalación de net (FTP), o desea obtener los paquetes más actualizados desde el servidor, seleccione instalar net. Este es el método recomendado. Si obtiene la imagen Core, usted puede opcionalmente instalar el paquete desde el CD/USB con el CD de instalación. Si usa la instalación net, trate de elegir un servidor cercano fisicamente. (e.g. ftp://cs.uwaterloo.com está cerca de las personas en el área de Greater Toronto.)<br />
<br />
El Menu Principal aparecerá:<br />
<br />
http://home.arcor.de/Langeland/6.png<br />
Menu Principal<br />
<br />
Para la instalación net, se necesita configurar la red. Si tiene un servidor DHCP conectado al computador por un cable Ethernet, probablemente funcione automáticamente. También puede utilizar ''ctrl-alt-F2'' para configurar la conexión de red desde la línea de comandos, usando ''ctrl-alt-F1''para regresarse al script de instalación.<br />
<br />
Si realiza una instalación utilizando el CD/USB, no hay necesidad de configurar la red ahora.<br />
<br />
===Partición===<br />
Si el disco duro está vacío, puede omitir estos pasos y elegir Auto-Partitioning. Tenga en cuenta que esto eliminará todas las particiones del disco duro. Si desea mantener una partición en el disco duro (como mantener una instalación de Windows), siga los siguientes pasos:<br />
<br />
* Seleccione Disco Duro Preparado<br />
* Seleccione Partición del Disco Duro<br />
* Seleccione el disco en el que desea instalar Arch Linux <br />
* La utilidad de particionado cfdisk debería abrirse y permitirle crear las particiones. Para una instalación base, solo es necesaria una partición. La partición swap es opcional.<br />
<br />
* En este punto, la pantalla puede parecerse a esto si tiene una partición NTFS de Windows XP. Vista o Windows 7 deben tener 2 particiones NTFS.<br />
<br />
http://home.arcor.de/Langeland/9.png<br />
cfdisk<br />
<br />
* No toque la partción/es NTFS en modo alguno, de lo contrario, usted puede perder Windows.<br />
* El tipo de la partición swap debe ser 82. El espacio swap es generalmente el doble del tamaño de la RAM que tiene, pero se puede utilizar menos.<br />
* Debe tener al menos una partición primaria y es recomendado tener el espacio para la swap. Una configuración más segura es tener una partición primaria de 100MB y todas las otras particiones para Arch Linux logicas. La partición primaria debe ser marcada de inicio. <br />
* Si desea salir de cfdisk sin guardar los cambios, seleccione salir; de lo contrario, seleccione guardar. Utilice salir si por accidente cambio la configuración de la partición de Windows.<br />
* Recuerde cuales particiones va a utilizar para cada cosa. Tome nota de el número de las particiones en la derecha. (e.g. sda1, sda2, etc.)<br />
<br />
===Puntos de Montaje===<br />
* Seleccione el punto 3: Configurar los Puntos de Montaje del Sistema de Ficheros.<br />
* Seleccione la partición que desea usar como '/' y úsela para montar '/' (sin comillas). La elección más común es el sistema ext4, pero cualquiera funcionaría.<br />
* Si tiene una partición para usar como '/boot', establezca '/boot' (de nuevo, sin comillas) como punto de montaje y ext2 como el sistema de fichero.<br />
* Seleccione la partición para usar el espacio swap, y eliga su punto de montaje. Ningún sistema de fichero necesita especificarse.<br />
* Seleccione 'DONE'.<br />
''El último paso es muy importante: muchas personas no lo realizan, sin embargo, ninguna acción es ejecutada hasta que se seleccione 'DONE'. Si no se hace el paso, la instalación parece funcionar, pero no se instala ningún archivo''.<br />
<br />
===Paquetes===<br />
* Seleccione Elegir Paquetes (O algo similar - se selecciona automáticamente después de establecer los puntos de montaje).<br />
* Debería parecerse a esto:<br />
<br />
* Por ahora, debe solo seleccionar base. Todos los paquetes marcados deberían no ser desmarcados al menos que sepa que no los necesitará.<br />
<br />
===Instalación===<br />
* Esto es bastante fácil: solo seleccione instalar paquetes, seleccione 'OK', y todo debe ser copiado desde el CD-ROM a el sistema de fichero seleccionado previamente.<br />
<br />
===Configuración===<br />
* Eliga nano para editar los archivos a menos que sepa utilizar Vi. Los comandos de Nano son listados en la parte de abajo y puede utilizar las flechas para mover el cursor. '' Tiene que editar el archivo rc.conf'' si desea cambiar la distribución del teclado. Por ejemplo, de es Alemán.<br />
* Establezca un nombre de dominio en el campo 'HOSTNAME='. (e.g. HOSTNAME='Taco')<br />
* nano es fácil entender: (Ctrl-X) guarda el archivo y sale de nano.<br />
* Este seguro de cambiar la contraseña de root en el último paso.<br />
<br />
===GRUB===<br />
Cuando este listo, edite los archivos de configuración, eliga la opción 'Install Bootloader' del menu principal.<br />
* Eliga instalar el GRUB a menos que sepa como configurar el bootloader usted mismo. Si no instala un nuevo bootloader, solo Windows iniciará.<br />
* Verá un archivo así:<br />
<br />
http://home.arcor.de/Langeland/13.png <br />
Menu.lst<br />
<br />
* Todo debe estar configurado correctamente para iniciar Arch desde el arranque dual, descomente la siguiente sesión hasta el final (elimine el símbolo # al principio de la línea):<br />
#title Windows<br />
rootnoverify (hd0,0)<br />
chainloader +1<br />
<br />
Guardelo y salga de nano.<br />
<br />
===Reiniciar===<br />
* Eliga hecho en el menu principal, escriba reboot y la computadora debería reiniciarse.<br />
* Retire el CD antes de tratar de iniciar el sistema otra vez.<br />
* Debería ser capaz de elegir entre Windows y Arch; por defecto es Arch. El tiempo límite es de 5 segundos.<br />
<br />
==Métodos alternativos de instalación==<br />
* [[Fast Arch Install from existing Linux System]]<br />
* [http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide The Official Arch Linux Installation Guide]</div>N0dixhttps://wiki.archlinux.org/index.php?title=Quick_Arch_Linux_Install_(Espa%C3%B1ol)&diff=92783Quick Arch Linux Install (Español)2010-01-20T01:35:55Z<p>N0dix: </p>
<hr />
<div>[[Category:Obteniendo e instalando Arch (Español)]]<br />
[[Category:CÓMOs (Español)]]<br />
{{i18n|Quick Arch Linux Install}}<br />
{{translateme}}<br />
Este es un rápido vistazo para aquellos que no saben que es Arch y lo que es capaz de hacerse en el. Este documento está escrito principalmente para aquellas personas quienes tienen una partición de Windows en el disco duro, quieren configurar Arch Linux sin dañar la instalación de Windows y no quieren una guia extensa.<br />
<br />
Esta guia es para un hardware "normal"; nada especial (e.g. SCCI) se documenta.<br />
<br />
Se supone que existe Windows en la partición primaria del disco duro; de lo contrario, el GRUB no será capaz de encontrarlo.<br />
<br />
==Requisitos==<br />
* El CD Base de -Instalación- de Arch Linux o el CD de -Instalación- Completa. Se puede obtener en [http://www.archlinux.org/download/ here].<br />
* Un disco duro vacío o con suficiente espacio libre para la partición. Se debe separar el espacio libre de la partición existente en Windows con una herramienta de particionado (e.g. PartitionMagic).<br />
<br />
==Instalación desde un CD/USB==<br />
* Inserte el CD/USB en la unidad, reinicie y comprobar que el BIOS arranque desde el CD-ROM. <br />
* Se le presentará un menu. Para la instalación, seleccione la opción "Boot ArchLive". Se configurará el sistema en el proceso.<br />
* Debería parecerse a esto:<br />
<br />
http://home.arcor.de/Langeland/1.png<br />
Imagen por defecto de Arch Live<br />
<br />
Para iniciar la instalación, inicie sesión como root y escriba:<br />
# /arch/setup<br />
<br />
Si obtiene la imagen de instalación de net (FTP), o desea obtener los paquetes más actualizados desde el servidor, seleccione instalar net. Este es el método recomendado. Si obtiene la imagen Core, usted puede opcionalmente instalar el paquete desde el CD/USB con el CD de instalación. Si usa la instalación net, trate de elegir un servidor cercano fisicamente. (e.g. ftp://cs.uwaterloo.com está cerca de las personas en el área de Greater Toronto.)<br />
<br />
El Menu Principal aparecerá:<br />
<br />
http://home.arcor.de/Langeland/6.png<br />
Menu Principal<br />
<br />
Para la instalación net, se necesita configurar la red. Si tiene un servidor DHCP conectado al computador por un cable Ethernet, probablemente funcione automáticamente. También puede utilizar ''ctrl-alt-F2'' para configurar la conexión de red desde la línea de comandos, usando ''ctrl-alt-F1''para regresarse al script de instalación.<br />
<br />
Si realiza una instalación utilizando el CD/USB, no hay necesidad de configurar la red ahora.<br />
<br />
===Partición===<br />
Si el disco duro está vacío, puede omitir estos pasos y elegir Auto-Partitioning. Tenga en cuenta que esto eliminará todas las particiones del disco duro. Si desea mantener una partición en el disco duro (como mantener una instalación de Windows), siga los siguientes pasos:<br />
<br />
* Seleccione Disco Duro Preparado<br />
* Seleccione Partición del Disco Duro<br />
* Seleccione el disco en el que desea instalar Arch Linux <br />
* La utilidad de particionado cfdisk debería abrirse y permitirle crear las particiones. Para una instalación base, solo es necesaria una partición. La partición swap es opcional.<br />
<br />
* En este punto, la pantalla puede parecerse a esto si tiene una partición NTFS de Windows XP. Vista o Windows 7 deben tener 2 particiones NTFS.<br />
<br />
http://home.arcor.de/Langeland/9.png<br />
cfdisk<br />
<br />
* No toque la partción/es NTFS en modo alguno, de lo contrario, usted puede perder Windows.<br />
* El tipo de la partición swap debe ser 82. El espacio swap es generalmente el doble del tamaño de la RAM que tiene, pero se puede utilizar menos.<br />
* Debe tener al menos una partición primaria y es recomendado tener el espacio para la swap. Una configuración más segura es tener una partición primaria de 100MB y todas las otras particiones para Arch Linux logicas. La partición primaria debe ser marcada de inicio. <br />
* Si desea salir de cfdisk sin guardar los cambios, seleccione salir; de lo contrario, seleccione guardar. Utilice salir si por accidente cambio la configuración de la partición de Windows.<br />
* Recuerde cuales particiones va a utilizar para cada cosa. Tome nota de el número de las particiones en la derecha. (e.g. sda1, sda2, etc.)<br />
<br />
===Puntos de Montaje===<br />
* Seleccione el punto 3: Configurar los Puntos de Montaje del Sistema de Ficheros.<br />
* Seleccione la partición que desea usar como '/' y úsela para montar '/' (sin comillas). La elección más común es el sistema ext4, pero cualquiera funcionaría.<br />
* Si tiene una partición para usar como '/boot', establezca '/boot' (de nuevo, sin comillas) como punto de montaje y ext2 como el sistema de fichero.<br />
* Seleccione la partición para usar el espacio swap, y eliga su punto de montaje. Ningún sistema de fichero necesita especificarse.<br />
* Seleccione 'DONE'.<br />
''El último paso es muy importante: muchas personas no lo realizan, sin embargo, ninguna acción es ejecutada hasta que se seleccione 'DONE'. Si no se hace el paso, la instalación parece funcionar, pero no se instala ningún archivo''.<br />
<br />
===Paquetes===<br />
* Seleccione Elegir Paquetes (O algo similar - se selecciona automáticamente después de establecer los puntos de montaje).<br />
* Debería parecerse a esto:<br />
<br />
* Por ahora, debe solo seleccionar base. Todos los paquetes marcados deberían no ser desmarcados al menos que sepa que no los necesitará.<br />
<br />
===Instalación===<br />
* Esto es bastante fácil: solo seleccione instalar paquetes, seleccione 'OK', y todo debe ser copiado desde el CD-ROM a el sistema de fichero seleccionado previamente.<br />
<br />
===Configuración===<br />
* Eliga nano para editar los archivos a menos que sepa utilizar Vi. Los comandos de Nano son listados en la parte de abajo y puede utilizar las flechas para mover el cursor. '' Tiene que editar el archivo rc.conf'' si desea cambiar la distribución del teclado. Por ejemplo, de es Alemán.<br />
* Establezca un nombre de dominio en el campo 'HOSTNAME='. (e.g. HOSTNAME='Taco')<br />
* nano es fácil entender: (Ctrl-X) guarda el archivo y sale de nano.<br />
* Este seguro de cambiar la contraseña de root en el último paso.<br />
<br />
===GRUB===<br />
Cuando este listo, edite los archivos de configuración, eliga la opción 'Install Bootloader' del menu principal.<br />
* Eliga instalar el GRUB a menos que sepa como configurar el bootloader usted mismo. Si no instala un nuevo bootloader, solo Windows iniciará.<br />
* Verá un archivo así:<br />
<br />
http://home.arcor.de/Langeland/13.png <br />
Menu.lst<br />
<br />
* Todo debe estar configurado correctamente para iniciar Arch desde el arranque dual, descomente la siguiente sesión hasta el final (elimine el símbolo # al principio de la línea):<br />
#title Windows<br />
rootnoverify (hd0,0)<br />
chainloader +1<br />
<br />
Guardelo y salga de nano.<br />
<br />
===Reiniciar===<br />
* Eliga hecho en el menu principal, escriba reboot y la computadora debería reiniciarse.<br />
* Retire el CD antes de tratar de iniciar el sistema otra vez.<br />
* Debería ser capaz de elegir entre Windows y Arch; por defecto es Arch. El tiempo límite es de 5 segundos.<br />
<br />
==Métodos alternativos de instalación==<br />
* [[Fast Arch Install from existing Linux System]]<br />
* [http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide The Official Arch Linux Installation Guide]</div>N0dixhttps://wiki.archlinux.org/index.php?title=Quick_Arch_Linux_Install_(Espa%C3%B1ol)&diff=92688Quick Arch Linux Install (Español)2010-01-19T06:18:46Z<p>N0dix: Created page with 'Category:Obteniendo e instalando Arch (Español) Category:CÓMOSs (Español) {{i18n_links_start}} {{i18n_entry|English|Quick Arch Linux Install}} {{i18n_entry|Slovak|Rýc…'</p>
<hr />
<div>[[Category:Obteniendo e instalando Arch (Español)]]<br />
[[Category:CÓMOSs (Español)]]<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Quick Arch Linux Install}}<br />
{{i18n_entry|Slovak|Rýchla inštalácia Archlinuxu}}<br />
{{i18n_entry|ไทย|การติดตั้ง Arch Linux แบบเร็ว}}<br />
{{i18n_entry|Lietuviškai|Greitas Arch Linux įdiegimas (Lietuviškai)}}<br />
{{i18n_entry|简体中文|Arch Linux 快速安装指南 (简体中文)}}<br />
{{i18n_entry|繁體中文|Archlinux 快速安裝教學}}<br />
{{i18n_links_end}}<br />
Este es un rápido vistazo para aquellos que no saben que es Arch y lo que es capaz de hacerse en el. Este documento está escrito principalmente para aquellas personas quienes tienen una partición de Windows en el disco duro, quieren configurar Arch Linux sin dañar la instalación de Windows y no quieren una guia extensa.<br />
This is a quick walk-through for those who do not yet know what Arch is and what it is capable of. It is written mainly for those people who already have an existing Windows partition on their hard drive and want to set up Arch Linux without harming the Windows install, and do not want too much hand holding.<br />
<br />
Esta guia es para un hardware "normal"; nada especial (e.g. SCCI) se documenta.<br />
This guide is for "normal" hardware; nothing special (e.g. SCSI) is documented.<br />
<br />
Se supone que existe Windows en la partición primaria del disco duro; de lo contrario, el GRUB no será capaz de encontrarlo.<br />
Windows is assumed to exist on the first partition of the hard drive; otherwise, GRUB will not be able to find it.<br />
<br />
==Requisitos==<br />
==Requisites==<br />
* El CD Base de -Instalación- de Arch Linux o el CD de -Instalación- Completa. Se puede obtener en [http://www.archlinux.org/download/ here].<br />
* The Arch Linux Base-Installation-CD or Full-Installation-CD. Get it from [http://www.archlinux.org/download/ here].<br />
* Un disco duro vacío o con suficiente espacio libre para la partición. Se debe separar el espacio libre de la partición existente en Windows con una herramienta de particionado (e.g. PartitionMagic).<br />
* Either one free hard disk or free space on one partition. You have to separate this free space from an existing partition in Windows with a partitioning utility (e.g. PartitionMagic).<br />
<br />
==Instalación desde un CD/USB==<br />
==Installation from CD/USB stick==<br />
* Inserte el CD/USB en la unidad, reinicie y comprobar que el BIOS arranque desde el CD-ROM. <br />
* Insert the CD/USB stick in your drive, reboot, and check that your BIOS will boot from the CD-ROM drive first.<br />
* Se le presentará un menu. Para la instalación, seleccione la opción "Boot ArchLive". Se configurará el sistema en el proceso.<br />
* It will present you with a menu. For the installation, choose the "Boot ArchLive" option. It will go through the process to set up the live system.<br />
* Debería parecerse a esto:<br />
*Now it should look like this:<br />
<br />
http://home.arcor.de/Langeland/1.png<br />
Imagen por defecto de Arch Live<br />
Default Arch Live screen<br />
<br />
Para iniciar la instalación, inicie sesión como root y escriba:<br />
To start the installation, login as root and type:<br />
# /arch/setup<br />
<br />
Si obtiene la imagen de instalación de net (FTP), o desea obtener los paquetes más actualizados desde el servidor, seleccione instalar net. Este es el método recomendado. Si obtiene la imagen Core, usted puede opcionalmente instalar el paquete desde el CD/USB con el CD de instalación. Si usa la instalación net, trate de elegir un servidor cercano fisicamente. (e.g. ftp://cs.uwaterloo.com está cerca de las personas en el área de Greater Toronto.)<br />
If you got the net install (FTP) image, or wish to get the latest packages from the servers, choose net install. This is the preferred method. If you have the Core image, you can optionally install the packages on the CD/USB stick with the CD install option. If you use the net install, try to choose a server near to you physically. (e.g. ftp://cs.uwaterloo.com is closest for people in the Greater Toronto Area.)<br />
<br />
El Menu Principal aparecerá:<br />
The Main Menu will appear:<br />
<br />
http://home.arcor.de/Langeland/6.png<br />
Menu Principal<br />
<br />
Para la instalación net, se necesita configurar la red. Si tiene un servidor DHCP conectado al computador por un cable Ethernet, probablemente funcione automáticamente. También puede utilizar ''ctrl-alt-F2'' para configurar la conexión de red desde la línea de comandos, usando ''ctrl-alt-F1''para regresarse al script de instalación.<br />
For the net install, you need to configure the network. If you have a DHCP server connected to your computer with an Ethernet cord, odds are the auto-configure will work automatically. You can also use ''ctrl-alt-F2'' to set up the network connection from the command line, using ''ctrl-alt-F1'' to go back to the installation script.<br />
<br />
Si realiza una instalación utilizando el CD/USB, no hay necesidad de configurar la red ahora.<br />
If you are installing from the CD/USB stick, there is no need to configure the network now.<br />
<br />
===Partición===<br />
===Partition===<br />
Si el disco duro está vacío, puede omitir estos pasos y elegir Auto-Partitioning. Tenga en cuenta que esto eliminará todas las particiones del disco duro. Si desea mantener una partición en el disco duro (como mantener una instalación de Windows), siga los siguientes pasos:<br />
If you have an empty hard drive, you may skip these steps and choose Auto-Partitioning. Please note this will erase all partitions from your hard drive. If you want to keep any partition on your hard drive (Like saving a Windows install), follow the steps below:<br />
<br />
* Seleccione Disco Duro Preparado<br />
* Select Prepare Hard Drive<br />
* Seleccione Partición del Disco Duro<br />
* Select Partition Hard Drive<br />
* Seleccione el disco en el que desea instalar Arch Linux <br />
* Select the disk you want Arch Linux to be installed on<br />
* La utilidad de particionado cfdisk debería abrirse y permitirle crear las particiones. Para una instalación base, solo es necesaria una partición. La partición swap es opcional.<br />
* The cfdisk partitioning utility will open and allow you to create the partitions. For Arch base installation, there is only one partition needed. A swap partition is optional.<br />
<br />
* En este punto, la pantalla puede parecerse a esto si tiene una partición NTFS de Windows XP. Vista o Windows 7 deben tener 2 particiones NTFS.<br />
* At this point the display may look like this if you have an NTFS partition for Windows XP. Vista or Windows 7 may have 2 NTFS partitions.<br />
<br />
http://home.arcor.de/Langeland/9.png<br />
cfdisk<br />
<br />
* No toque la partción/es NTFS en modo alguno, de lo contrario, usted puede perder Windows.<br />
* Do not touch the NTFS partition/s in any way; otherwise, you may lose Windows.<br />
* El tipo de la partición swap debe ser 82. El espacio swap es generalmente el doble del tamaño de la RAM que tiene, pero se puede utilizar menos.<br />
* The type of the swap partition should be set to 82. Swap space is generally recommended to be twice the amount of RAM you have, but you can use less.<br />
* Debe tener al menos una partición primaria y es recomendado tener el espacio para la swap. Una configuración más segura es tener una partición primaria de 100MB y todas las otras particiones para Arch Linux logicas. La partición primaria debe ser marcada de inicio. <br />
* You must have at least one primary partition and a swap space is recommended. A safer setup is to have one primary partition of 100MB and all other partitions for Arch Linux can be logical partitions. The primary partition must be marked bootable.<br />
* Si desea salir de cfdisk sin guardar los cambios, seleccione salir; de lo contrario, seleccione guardar. Utilice salir si por accidente cambio la configuración de la partición de Windows.<br />
* If you want to quit cfdisk without saving anything, then select quit; otherwise, select write. Use quit if you accidentally change a setting on a Windows partition.<br />
* Recuerde cuales particiones va a utilizar para cada cosa. Tome nota de el número de las particiones en la derecha. (e.g. sda1, sda2, etc.)<br />
* Remember which partitions you want to use for what. Note the partition's number to the right. (e.g. sda1, sda2, etc.)<br />
<br />
===Puntos de Montaje===<br />
===Mountpoints===<br />
* Seleccione el punto 3: Configurar los Puntos de Montaje del Sistema de Ficheros.<br />
* Select point 3: Set Filesystem Mountpoints<br />
* Seleccione la partición que desea usar como '/' y úsela para montar '/' (sin comillas). La elección más común es el sistema ext4, pero cualquiera funcionaría.<br />
* Select the partition you wish to use as '/' and use set it to mount to '/' (no quotes). The most common choice for file system is ext4, but any will work.<br />
* Si tiene una partición para usar como '/boot', establezca '/boot' (de nuevo, sin comillas) como punto de montaje y ext2 como el sistema de fichero.<br />
* If you have a partitions to use as '/boot', set '/boot' (again, no quotes) as the mount point and ext2 is the recommended file system.<br />
* Seleccione la partición para usar el espacio swap, y eliga su punto de montaje. Ningún sistema de fichero necesita especificarse.<br />
* Select the partition to use as swap space, and choose the mount point of swap. No file system need be specified.<br />
* Seleccione 'DONE'.<br />
* Select 'DONE'.<br />
''El último paso es muy importante: muchas personas no lo realizan, sin embargo, ninguna acción es ejecutada hasta que se seleccione 'DONE'. Si no se hace el paso, la instalación parece funcionar, pero no se instala ningún archivo.<br />
''This last step is very important: many people skip this step, but no actions take place until you select 'DONE'. If you do not do this, the install will appear to work, but it will not install any files''.<br />
<br />
===Paquetes===<br />
===Packages===<br />
* Seleccione Elegir Paquetes (O algo similar - se selecciona automáticamente después de establecer los puntos de montaje).<br />
* Select Choose Packages (Or something similar - it is selected automatically after setting mount points).<br />
* Debería parecerse a esto:<br />
* Now it should look like this:<br />
<br />
* Por ahora, debe solo seleccionar base. Todos los paquetes marcados deberían no ser desmarcados al menos que sepa que no los necesitará.<br />
* For now, you should select only base. All packages already marked should not be unmarked unless you know you wont need them. Anything else you need not already marked should be installed later unless you need it for the setup.<br />
<br />
===Instalación===<br />
===Installation===<br />
* Esto es bastante fácil: solo seleccione instalar paquetes, seleccione 'OK', y todo debe ser copiado desde el CD-ROM a el sistema de fichero seleccionado previamente.<br />
* This is rather easy: Just select install packages, select 'OK', and everything will be copied from the CD/server you selected to the file-system.<br />
<br />
===Configuración===<br />
===Configuration===<br />
* Eliga nano para editar los archivos a menos que sepa utilizar Vi. Los comandos de Nano son listados en la parte de abajo y puede utilizar las flechas para mover el cursor. '' Tiene que editar el archivo rc.conf'' si desea cambiar la distribución del teclado. Por ejemplo, de es Alemán.<br />
* Choose nano to edit the files unless you already know Vi. Nano's commands are listed at the bottom and you use the arrow keys to move the cursor. '' You have to edit the rc.conf'' if you want to change your keyboard layout. For example, de is German.<br />
* Establezca un nombre de dominio en el campo 'HOSTNAME='. (e.g. HOSTNAME='Taco')<br />
* Set a host name in the 'HOSTNAME=' field. (e.g. HOSTNAME='Taco')<br />
* nano es fácil entender: (Ctrl-X) guarda el archivo y sale de nano.<br />
* nano is easy to understand: (Ctrl-X) saves the file and exits nano.<br />
* Este seguro de cambiar la contraseña de root en el último paso.<br />
* Be sure to change the root password in the last step.<br />
<br />
===GRUB===<br />
Cuando este listo, edite los archivos de configuración, eliga la opción 'Install Bootloader' del menu principal.<br />
When you are done editing the config files, choose the 'Install Bootloader' option from the main menu.<br />
* Eliga instalar el GRUB a menos que sepa como configurar el bootloader usted mismo. Si no instala un nuevo bootloader, solo Windows iniciará.<br />
* Choose to install GRUB unless you will setup a bootloader yourself. If you do not install a new bootloader, only Windows will boot.<br />
* Verá un archivo así:<br />
* You will see a file like this:<br />
<br />
http://home.arcor.de/Langeland/13.png <br />
Menu.lst<br />
<br />
* Todo debe estar configurado correctamente para iniciar Arch desde el arranque dual, descomente la siguiente sesión hasta el final (elimine el símbolo al principio de la línea:<br />
* Everything should be set up correctly to boot into Arch To dual boot, uncomment the following section at the end (remove the # symbol from the beginning of the line:<br />
#title Windows<br />
rootnoverify (hd0,0)<br />
chainloader +1<br />
<br />
Guardelo y salga de nano.<br />
Save it and quit nano.<br />
<br />
===Reiniciar===<br />
===Reboot===<br />
* Eliga hecho en el menu principal, escriba reboot y la computadora debería reiniciarse.<br />
* Choose done at the main menu, type reboot, and the computer should reboot.<br />
* Retire el CD antes de tratar de iniciar el sistema otra vez.<br />
* Remove the CD before it tries to boot from it again.<br />
* Debería ser capaz de elegir entre Windows y Arch; por defecto es Arch. El tiempo límite es de 5 segundos.<br />
* You should be able to choose between Windows and Arch; default is Arch. The timeout is 5 seconds.<br />
<br />
==Métodos alternativos de instalación==<br />
==Alternative install methods==<br />
* [[Fast Arch Install from existing Linux System]]<br />
* [http://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide The Official Arch Linux Installation Guide]</div>N0dix