X11/Gnome: setear el hint "urgency" desde shell script

Aldrin Martoq amartoq en dcc.uchile.cl
Lun Mar 16 21:49:18 CLT 2009


On Fri, 2009-03-13 at 16:21 -0300, Alvaro Herrera wrote:
> Herman Vega escribió:
> > On Fri, Mar 13, 2009 at 3:37 PM, Alvaro Herrera <alvherre en alvh.no-ip.org>wrote:
> > > ¿Alguien sabe si hay alguna forma de setear el hint de urgencia del
> > > terminal desde el shell?
> > No te sirve esto?
> > zenity --warning --text="error msg"
> Eso es completamente diferente ...  (Si hiciera eso, sería como si
> Pidgin abriera un cuadro de diálogo cada vez que recibo un mensaje en
> una conversación).

libnotify es la manera GNOME en mi opinion:
$ sudo apt-get install libnotify-bin
$ notify-send -u low -t 10000 -i gtk-dialog-warning \
Atencion! "Favor pescar este mensaje^M$(date)"


Puedes hacer cosas mas complejas (como un xterm -e watch
tail /var/log/postgresql.log) con python.
$ sudo apt-get install python-notify
$ python /usr/share/doc/python-notify/examples/test-multi-actions.py


-- 
Aldrin Martoq <amartoq en dcc.uchile.cl>
http://aldrin.martoq.cl/videopodcast/ http://aldrin.martoq.cl/techblog/
------------ próxima parte ------------
Se ha borrado un mensaje que no está en formato texto plano...
Nombre     : no disponible
Tipo       : application/pgp-signature
Tamaño     : 197 bytes
Descripción: This is a digitally signed message part
Url        : http://listas.inf.utfsm.cl/pipermail/linux/attachments/20090316/7edbec67/attachment.bin


Más información sobre la lista de distribución Linux