Do you have any experience with `ncruces/zenity`, the Go implementation of Gnome Zenity? I'd like to experiment with a passive activity tracker for work, and Zenity seems to be a good fit.
I'll probably just build a prototype later on.
Do you have any experience with `ncruces/zenity`, the Go implementation of Gnome Zenity? I'd like to experiment with a passive activity tracker for work, and Zenity seems to be a good fit.
I'll probably just build a prototype later on.
#Truc : #Zim permet de définir des outils personnalisés pour lancer depuis un menu à peu près tout ce qu'on veut.
S'il s'agit de lancer un script donc l'exécution dure plusieurs secondes, on peut utiliser #zenity pour ajouter une petite notification graphique d'attente :
(ma_tache) | zenity \
--progress \
--auto-close \
--no-cancel \
--title="Mon titre" \
--text="Le nom de ma tache" \
--pulsate
I have the following code in a #Bash script:
```
zenity_error() {
read error_message
zenity --error --text="$error_message"
}
mkdir /root/test_dir 2>&1 | zenity_error
```
It works to show any error messages in a #Zenity popup.
But is there a way I can do this automatically for *all* errors in the script, without having to manually add `2>&1 | zenity_error` to the end of each command?
AI 에이전트의 새로운 취약점: 구조화된 데이터로 AI를 조종하는 DSI 공격
AI 에이전트의 새로운 보안 위협 DSI(Data-Structure Injection)를 소개합니다. JSON, XML 같은 구조화된 데이터로 AI를 조종하는 공격 방식과 실제 랜섬웨어 생성 사례를 다룹니다.Warnung bei voller Platte
Mit einem Shell-Skript könnt ihr die Belegung von Massenspeichern überwachen und euch warnen lassen, bevor diese zu voll werden.
#Massenspeicher #Plattenplatz #Skript #Benachrichtigung #Zenity #Linux
La documentation sur les internets ne semble pas à jour (et ne l'a peut-être jamais été).
Pour avoir la liste des fonctionnalités de Zenity, mieux vaut passer par l'aide en ligne de commande.
Exemple pour savoir ce qu'on peut mettre dans un formulaire :
zenity --help-forms
Zenity est un petit outil qui permet de faire des écrans très simples pour ses scripts #bash
I think I've pretty well done everything I want to do it, for now at least. Goal accomplished; a mostly point and click option for desktop #Linux to get information about my server's UPS.
I may see about turning this into a simple .deb package later so you can get a shortcut in your apps menu, but the script itself is, I think, basically finished. I accomplished what I set out to do.
SIGWOCHENENDE received.
Das HTML-Issue mit #Zenity - also, der Niemand zu sein, der das kurzerhand rausgeschmissene Feature nutzt - hat mich über Gebühr runtergezogen. Ich habe dann als Arbeitsthese die HTML-Generierung mit Pandoc aus Markdown auf Zielformat TXT umgestellt, das war ganz ulkig und macht's einstweilen etwas okayer. 🙏