Observar que esto es un dirty hack!.
Primeramente vamos a instalar las dependencias:
sudo apt-get install build-essential libnotify-bin
Ahora vamos por las librerias para construir notify-osd:
sudo apt-get build-dep notify-osd
Creamos un directorio tmp para trabajar desde adentro :
mkdir ~/tmp
Navegar hasta el nuevo directorio tmp y comenzar a trabajar :
cd ~/tmp && apt-get source notify-osd
Despues de esta operación (apt-get source),el directorio notify-osd-0.9.11 será creado bajo el directorio tmp.
Descarga este patch y lo aplicamos:
cd ~/tmp/notify-osd-0.9.11/src
wget -c https://dl.getdropbox.com/u/612498/notify-color-hack.patch
patch < notify-color-hack.patch
Debes obtener el output siguiente :
nico-laptop:~/tmp/notify-osd-0.9.11/src$ patch < notify-color-hack.patch
patching file bubble.c
patching file main.c
De no obtener ningún error,ya se puede comenzar a configurar notify-osd:
cd ~/tmp/notify-osd-0.9.11 && ./configure --prefix=/usr && make
Antes de instalarlo,pruebalo y configuralo!:
Crea el directorio .notify-osd en tu home y editalo:
gedit ~/.notify-osd
Pega la configuración siguiente :
bubble-background-color = 6D84B4
bubble-background-opacity = .85
text-title-color = ffffff
text-title-opacity = 1.0
text-body-color = ffffff
text-body-opacity = 1.0
Esta es la parte donde puedes configurar notify osd! No olvides cambiar los colores a tu gusto!
Despues matamos el proceso notify-osd:
killall notify-osd
Ahora navegar a ~/tmp/notify-osd-0.9.11/src y probar el notify osd :
cd ~/tmp/notify-osd-0.9.11/src
./notify-osd
Deberías ver lo siguiente en el terminal.
reading settings from ‘/home/nico/.notify-osd’
Si ves lo siguiente:
** (notify-osd:xxxxx): WARNING **: Another instance has already registered org.freedesktop.Notifications
significa que NO mataste correctamente el proceso notify-osd.
Ahora enviamos una notificación y terminamos con la prueba :
notify-send "test" "Do not test me"
si todo esta correcto entonces es el momento de instalar:
$cd ~/tmp/notify-osd-0.9.11
$sudo make install
End
Credits goes to: ubuntu-inside.me