Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa |
es:howtos:window_managers:i3wm [2019/08/12 19:18 (UTC)] – [i3status] slackwarespanol | es:howtos:window_managers:i3wm [2019/08/12 19:31 (UTC)] (actual) – [i3 Dependencias] slackwarespanol |
---|
También es muy recomendable instalar [[http://slackbuilds.org/desktop/i3status/|i3status]] y su dependencia [[http://slackbuilds.org/libraries/confuse/|confuse]]. | También es muy recomendable instalar [[http://slackbuilds.org/desktop/i3status/|i3status]] y su dependencia [[http://slackbuilds.org/libraries/confuse/|confuse]]. |
| |
A partir de la versión 4.8, i3 es capaz de guardar y restaurar sus diseños en espacios de trabajo particulares. Para obtener más información, consulte [[http://www.slackword.net/?p=733|this]]. | A partir de la versión 4.8, i3 es capaz de guardar y restaurar sus diseños en espacios de trabajo particulares. Para obtener más información, consulte [[http://www.slackword.net/?p=733|este]]. |
| |
Si desea utilizar las nuevas funciones, debe instalar más dependencias. Todos ellos están disponibles en [[https://slackbuilds.org/ | Slackbuilds.org]]: | Si desea utilizar las nuevas funciones, debe instalar más dependencias. Todos ellos están disponibles en [[https://slackbuilds.org/ | Slackbuilds.org]]: |
}</code> | }</code> |
| |
==== Custom i3status Display ==== | ==== Pantalla personalizada i3status ==== |
| |
By default ''i3status'' functionality is somewhat limited. The fact that the basic configuration offers only a handful of predefined functions does not, however, prevent you from customising it to include your own scripts. | Por defecto, la funcionalidad '' i3status '' es algo limitada. Sin embargo, el hecho de que la configuración básica ofrezca solo un puñado de funciones predefinidas no le impide personalizarlo para incluir sus propios scripts. |
| |
The most basic method of calling i3status is by including the following code in ''~/i3.config'': | |
| |
| El método más básico para llamar a i3status es incluir el siguiente código en '' ~ / i3.config '': |
<code>bar { | <code>bar { |
status_command i3status | status_command i3status |
}</code> | }</code> |
| |
i3status will first look for ''~/.i3status.conf'' and if it is not present, it will read ''/etc/i3status.conf''. You can also manually specify the location of the config file: | i3status primero buscará '' ~ / .i3status.conf '' y si no está presente, leerá '' /etc/i3status.conf ''. También puede especificar manualmente la ubicación del archivo de configuración: |
<code>status_command i3status --config ~/.i3/scripts/i3status.conf</code> | <code>status_command i3status --config ~/.i3/scripts/i3status.conf</code> |
| |
Instead of calling ''i3status'' here, you can run a custom script which will start ''i3status''. | En lugar de llamar a '' i3status '' aquí, puede ejecutar un script personalizado que iniciará '' i3status ''. |
| |
<code>status_command /path/to/my/i3-custom-status.sh</code> | <code>status_command /path/to/my/i3-custom-status.sh</code> |
echo "TODO:$todo | LG: $LG | $pycom | $line" || exit 1 | echo "TODO:$todo | LG: $LG | $pycom | $line" || exit 1 |
done</code> | done</code> |
The following should give you some idea of how you could adapt it for your own needs: | Lo siguiente debería darle una idea de cómo podría adaptarlo a sus propias necesidades: |
| |
<code>LG=$(setxkbmap -print | grep xkb_symbols | awk -F"+" '{print $2}')</code> | <code>LG=$(setxkbmap -print | grep xkb_symbols | awk -F"+" '{print $2}')</code> |
| |
The current keyboard layout is assigned to variable ''LG''. | La distribución actual del teclado se asigna a la variable '' LG ''. |
| |
<code>pycom=$(/home/user/.i3/pys.py)</code> | <code>pycom=$(/home/user/.i3/pys.py)</code> |
| |
The output of a Python script is assigned to variable ''pycon''. | La salida de un script Python se asigna a la variable '' pycon ''. |
| |
<code>todo=$(task ls | sed -n '4s/[[:blank:]]\+/ /pg' )</code> | <code>todo=$(task ls | sed -n '4s/[[:blank:]]\+/ /pg' )</code> |
| |
The most important task of my todo list ([[howtos:general_admin:taskwarrior|TaskWarrior]]) is assigned to variable ''todo''. | La tarea más importante de mi lista de tareas pendientes ([[howtos: general_admin: taskwarrior | TaskWarrior]]) se asigna a la variable '' todo ''. |
| |
<code>echo "TODO:$todo | LG: $LG | $pycom | $line" || exit 1</code> | <code>echo "TODO:$todo | LG: $LG | $pycom | $line" || exit 1</code> |
| |
The contents of the variables is sent to the status bar followed by default ''i3status'' output. | El contenido de las variables se envía a la barra de estado seguido de la salida predeterminada '' i3status ''. |
| |
| |
==== i3status in a Multi-monitor Setup ==== | ==== i3status en una configuración de monitores múltiples ==== |
| |
You can identify your monitors using the 'xrandr' utility (please note that ''xrandr'' is not fully supported with versions older than 302.17 of nVidia binary driver): | Puede identificar sus monitores utilizando la utilidad 'xrandr' (tenga en cuenta que '' xrandr '' no es totalmente compatible con versiones anteriores a 302.17 del controlador binario nVidia): |
| |
<code>$ xrandr | <code>$ xrandr |
...</code> | ...</code> |
| |
The active connections are identified as ''DVI-I-1'' and ''HDMI-0''. Knowing this we can configure separate outputs for each display: | Las conexiones activas se identifican como '' DVI-I-1 '' y '' HDMI-0 ''. Sabiendo esto, podemos configurar salidas separadas para cada pantalla: |
| |
<code>bar { | <code>bar { |
}</code> | }</code> |
| |
==== i3 Support ==== | ==== Soporte i3 ==== |
| |
Apart from excellent [[http://www.i3wm.org/docs/|documentation]] both for i3 users and developers, you can also get support in the following places: | |
* Subscribe to the [[i3-discuss-subscribe@i3.zekjur.net|mailing list]] (Browse [[http://infra.in.zekjur.net/archives/i3-discuss/|archives]]) | |
* Join i3 IRC channel (#i3 on irc.twice-irc.de) | |
* Register with the recently created stackexchange-like [[http://faq.i3wm.org/questions/|FAQ section]] (Update: As of 20/12/2015 that site is read only. The i3-related questions have moved to a new place - see the next bullet point) | |
* i3wm questions on [[https://www.reddit.com/r/i3wm/|reddit]] | |
| |
====== Sources ====== | Además de excelente [[http://www.i3wm.org/docs/|documentation]] tanto para usuarios como desarrolladores de i3, también puede obtener soporte en los siguientes lugares: |
* Originally written by [[wiki:user:sycamorex |Marcin Herda]] | * Suscríbase a la [[i3-discuss-subscribe@i3.zekjur.net|mailing list]] (Examinar [[http://infra.in.zekjur.net/archives/i3-discuss/|archives]]) |
| * Únase al canal i3 IRC (# i3 en irc.twice-irc.de) |
| * Regístrese con el recientemente creado stackexchange-like [[http://faq.i3wm.org/questions/|FAQ section]] (Actualización: a partir del 20/12/2015 ese sitio es de solo lectura. Las preguntas relacionadas con i3 tienen movido a un nuevo lugar - vea el siguiente punto de viñeta) |
| * Preguntas de i3wm en [[https://www.reddit.com/r/i3wm/|reddit]] |
| ====== Funetes ====== |
| * Originalmente escrito por [[wiki:user:sycamorex |Marcin Herda]] |
| * Traducido por: [[wiki:user: slackwarespanol | Victor]] 2019/08/12 19:28 (UTC) |
<!-- * Contrbutions by [[wiki:user:yyy | User Y]] --> | <!-- * Contrbutions by [[wiki:user:yyy | User Y]] --> |
| |