home.social

#zenity — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #zenity, aggregated by home.social.

  1. #Zenity is a bit of a winner for knocking together simple UIs. For ages I've been using a wrapper script around #ytdlp which determines the screen resolution of the computer it's running on, updates yt-dlp, then fetches the video supplied as an argument and streams it to #mpv.

    However that's not very friendly for folks who share the media device on which the script is available, so I wrapped it in Zenity to present a friendly UI for either playing a previously-watched video, playing a new video (by URL), presenting a list of previously-watched videos, and providing a means to delete one or all previously-watched videos.

  2. #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

    #bash #code

  3. 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

    gnulinux.ch/warnung-bei-voller

  4. Hey ,

    I like using wob (Wayland Overlay Bar - github.com/francma/wob) on my -based machines (just right now) for a OSD for volume and screen brightness adjustments, but I'm a little bummed that it's wayland-only.

    Does anyone have a cross-"platform" solution that works on wayland and ?

    The closest I could find is using or to display a progress bar for a second, but it's not quite an OSD, and feels a bit more clunky.