Configurando aleatoriamente a Urxvt

Post Reply
Message
Author
User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

Configurando aleatoriamente a Urxvt

#1 Post by GustavoYz »

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.
Attachments
URXVT_ASD.jpg
(80.88 KiB) Downloaded 1403 times

User avatar
josejp2424
Posts: 556
Joined: Sun 01 Aug 2010, 22:35
Contact:

#2 Post by josejp2424 »

muy bueno a probar

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#3 Post by musher0 »

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.
Attachments
console-trop-large.jpg
(88.47 KiB) Downloaded 1232 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#4 Post by GustavoYz »

@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... :roll:

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... :roll:

Por las dudas:
MD5: a6dd16ca8be7f0f7cef93bea5fb00ae2

:arrow: Algunas fuentes son más grandes que otras para el mismo "pixelsize".
Attachments
URXVT_xft.jpg
(67.68 KiB) Downloaded 1172 times

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#5 Post by GustavoYz »

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:

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

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

Keybinding para el script

#6 Post by GustavoYz »

Lo seteé a un "atajo de teclado" (keybinding) en Open Box, así puedo elegir "qué color hoy?" :lol:
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>
Agregar esto en el archivo /root/.config/openbox/rc.xml, en la parte que sigue al comentario:

Code: Select all

 <!-- Keybindings for running applications -->
después de cualquier </keybind> (ojo!).
Attachments
urxvt_gorgeous_colors_2.jpg
(49.52 KiB) Downloaded 1272 times

tenochslb

#7 Post by tenochslb »

Estoy usando wary 5.3 y el script solo me cambia los colores y tipos de fuentes. El color del backrgound siempre es negro. Alguna idea para solucionar este problema?

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#8 Post by GustavoYz »

Hmmm... es probable que urxvt en Wary haya sido compilado con menos opciones...
Que aparece si ejecutas esto en la consola?

Code: Select all

urxvt -help |& head -2
(Este es más claro...)

Code: Select all

urxvt -h |& head -2 | tail -1 | sed 's/options\:\ //g' | perl -e 'print map { $_.="\n" } split(/,/, <>)'

tenochslb

#9 Post by tenochslb »

Me regreisa esto:

Code: Select all

bash: syntax error near unexpected token `&'

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#10 Post by GustavoYz »

:shock:
'|&' es la forma corta de '2>&1', así que:

Code: Select all

urxvt -h 2>&1 | head -2
funciona igual.
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 '|&'... :evil:

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.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#11 Post by GustavoYz »

Code: Select all

CONSOLADOR.sh snow steelblue ' ' 60
8)

tenochslb

#12 Post by tenochslb »

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

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#13 Post by GustavoYz »

Estoy bajando una ISO de Wary...
Quiero ver eso. :shock:
Habrá noticias pronto, si me dá el tiempo.
8)

tenochslb

#14 Post by tenochslb »

Gustavo ya anda, creo que sólo fue un error mío de óptica jajajaja. Tenía un backgound obscuro y con la transparencias no se notaban los cambios.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#15 Post by GustavoYz »

tenochslb wrote:Gustavo ya anda, creo que sólo fue un error mío de óptica jajajaja. Tenía un backgound obscuro y con la transparencias no se notaban los cambios.
:P

Me parecía que era raro...
:roll:

Post Reply