Hola. Una consulta (otra más, jajaja):
¿Cómo hago para tener un icono de notificaciones en tint2? Es para que al hacer click me las muestre, no quiero que desaparezcan en el acto, quiero borrarlas yo mismo, llegado el caso.
Muchas gracias.
Hello. One query (another, hahaha):
How do I get a notifications icon in tint2? It’s so that when I click shows them, I don’t want them to disappear on the spot, I want to delete them by myself, if necessary.
Thank you very much.
Of course, but keep in mind that I am a complete ignorant, although very curious: test and error… error… test… error… error… error… smashed head against wall… test… etc.
If I get anything I’ll show it.
.
.
.
.
and error
Justo terminaba de probar lo que hice:
I just finished trying what I did:
#!/bin/bash
# mostrar-notif.sh
# Crea un cuadro mostrando las notificaciones registradas en /tmp/log_notify.txt
#
###############################################################################
# Muchas gracias a muzqs que proporcionó el script para las notificaciones en #
# https://forum.maboxlinux.org/t/notifications-icon/2101/9 #
###############################################################################
#
#
#################################################
# Necesita el script de muzqs mencionado arriba #
#################################################
#
# Por supuesto que es mejorable, esto es sólo una prueba hecha por un amateur
# si existe el fichero lo borra
rm -f /tmp/notif-filter.txt
# filtra las líneas indeseadas
cat /tmp/log_notify.txt |grep -v sender-pid>/tmp/notif-filter.txt
# crea la ventana (yad es más bonito)
yad --text-info --title="Notificaciones" --filename="/tmp/notif-filter.txt" --width=400 --height=220
# Una alternativa es usar zenity en lugar de yad
# En ese caso hay que adecuar las medidas de la ventana
Tu solución es más sencilla y elegante. Muchas gracias
Your solution is simpler and more elegant. Thank you so much.
Probé las tres opciones, mi preferida es la opción rofi.
La agregué al menú lateral derecho para no sobrecargar tint2.
El directorio /tmp me parece perfecto, no las quiero de manera permanente.
Muchas gracias.
I tried all three options, my favorite is the rofi option.
I added it to the right side menu so as not to overload tint2.
The /tmp directory seems fine to me, I don’t want them permanently.
Thank you very much.