Configurando aleatoriamente a Urxvt
Configurando aleatoriamente a Urxvt
Hice un script que ejecuta un instancia de urxvt con configuración de colores, fuente y nivel de transparencia aleatorios (ya que soy muy inquieto con esos seteos).
Como puede ser del interés de alguien, lo subí originalmente acá, si bien está algo cortado y sólo aleatorio (dejé allí mismo una captura de pantalla con los resultados, lo mismo se refleja en la que agregué abajo).
La versión actual está acá y tiene ayuda en español, junto a otras funciones que yo uso seguido.
Como puede ser del interés de alguien, lo subí originalmente acá, si bien está algo cortado y sólo aleatorio (dejé allí mismo una captura de pantalla con los resultados, lo mismo se refleja en la que agregué abajo).
La versión actual está acá y tiene ayuda en español, junto a otras funciones que yo uso seguido.
- Attachments
-
- URXVT_ASD.jpg
- (80.88 KiB) Downloaded 1403 times
- josejp2424
- Posts: 556
- Joined: Sun 01 Aug 2010, 22:35
- Contact:
Hola, gustavo.
Mui interesante, pero...
línea 110 : -fn "xft: ???? Mono:pixelsize=1?" necesario ?
Si no, console es demasiado amplia?
(Veuillez pardonnez mon très mauvais espagnol... | Please forgive my very bad Spanish...)
C.
Mui interesante, pero...
línea 110 : -fn "xft: ???? Mono:pixelsize=1?" necesario ?
Si no, console es demasiado amplia?
(Veuillez pardonnez mon très mauvais espagnol... | Please forgive my very bad Spanish...)
C.
- Attachments
-
- console-trop-large.jpg
- (88.47 KiB) Downloaded 1232 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
@musher: Encuentro mejores resultados así, pero siempre depende de la fuente en cuestión: las fuentes verdaderamente "monospace" debiesen renderizar muy bien de esa forma, las que no son monospace y son angostas con hint, también y el resto... para ser honesto, no tengo idea de qué dependen esas...
I found better results using xft on that way, but it always depends on the font: true "monospace" fonts should renderize great that way, thin non-monospaced ones with hint, should do the trick too, the rest... to be honest, I have no idea on what those depends...
Por las dudas:
MD5: a6dd16ca8be7f0f7cef93bea5fb00ae2
Algunas fuentes son más grandes que otras para el mismo "pixelsize".
I found better results using xft on that way, but it always depends on the font: true "monospace" fonts should renderize great that way, thin non-monospaced ones with hint, should do the trick too, the rest... to be honest, I have no idea on what those depends...
Por las dudas:
MD5: a6dd16ca8be7f0f7cef93bea5fb00ae2
Algunas fuentes son más grandes que otras para el mismo "pixelsize".
- Attachments
-
- URXVT_xft.jpg
- (67.68 KiB) Downloaded 1172 times
Una nota adicional...
Algunos colores fallan en versiones "viejas" de Urxvt. Cuando esto pasa, el programa no los puede "parsear" y usa colores por defecto.
Yo uso esta versión de urxvt:.
Algunos colores fallan en versiones "viejas" de Urxvt. Cuando esto pasa, el programa no los puede "parsear" y usa colores por defecto.
Yo uso esta versión de urxvt:
Code: Select all
rxvt-unicode (urxvt) v9.15 - released: 2012-01-21
options: perl,xft,styles,combining,blink,iso14755,unicode3,encodings=eu+vn+jp+jp-ext+kr+zh+zh-ext,fade,transparent,tint,pixbuf,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt+NeXT+xterm
- Attachments
-
- urxvt_gorgeous_colors.jpg
- (39.53 KiB) Downloaded 1328 times
Keybinding para el script
Lo seteé a un "atajo de teclado" (keybinding) en Open Box, así puedo elegir "qué color hoy?"
Por si es de interés de alguien, se hace así:
Agregar esto en el archivo /root/.config/openbox/rc.xml, en la parte que sigue al comentario:
después de cualquier </keybind> (ojo!).
Por si es de interés de alguien, se hace así:
Code: Select all
<keybind key="C-S-w">
<action name="Execute">
<command>CONSOLADOR.sh</command>
</action>
</keybind>
Code: Select all
<!-- Keybindings for running applications -->
- Attachments
-
- urxvt_gorgeous_colors_2.jpg
- (49.52 KiB) Downloaded 1272 times
Hmmm... es probable que urxvt en Wary haya sido compilado con menos opciones...
Que aparece si ejecutas esto en la consola?
(Este es más claro...)
Que aparece si ejecutas esto en la consola?
Code: Select all
urxvt -help |& head -2
Code: Select all
urxvt -h |& head -2 | tail -1 | sed 's/options\:\ //g' | perl -e 'print map { $_.="\n" } split(/,/, <>)'
'|&' es la forma corta de '2>&1', así que:
Code: Select all
urxvt -h 2>&1 | head -2
Lo mismo para el otro, pero si uso Perl, algo puede fallar... porque Wary...
El Bash instalado en Wary es viejo (< 4.0) y no soporta '|&'...
En todo caso, mi idea era ver si aparecían diferentes configuraciones de urxvt (`flags`) entre la versión que vos usás y la que yo uso.
Code: Select all
CONSOLADOR.sh snow steelblue ' ' 60
hola esto es lo que tengo de regreso cuando hago lo que me dijiste:
Code: Select all
urxvt -h 2>&1 | head -2
rxvt-unicode (urxvt) v9.05 - released: 2008-06-15
options: xft,styles,combining,blink,encodings=eu+vn,transparent,tint,XIM,frills,selectionscrolling,wheel,slipwheel,smart-resize,cursorBlink,pointerBlank,scrollbars=plain+rxvt