An Xfce glob

To content | To menu | To search

Tag - xfce4-volumed

Entries feed

Nouveautés dans xfce4-notifyd

Début Juin, j'ai commencé à travailler sur xfce4-notifyd pour ajouter un placement intelligent des bulles de notification. Dans la version actuelle de ce programme, si plusieurs notifications sont déclenchées en même temps, les plus récentes recouvrent les anciennes, les rendant illisibles. Mon objectif était de décaler les nouvelles notifications pour que l'on puisse toutes les voir en même temps.

Ceci s'est révélé bien plus compliqué que ce que je pensais, en particulier parce qu'il faut tenir compte des systèmes où il y a plusieurs écrans, mais cette fonctionnalité a enfin été ajoutée à la version en développement de xfce4-notifyd. Je remercie Brian qui a pris beaucoup de temps pour me conseiller, m'aider à corriger mes erreurs et à optimiser mes solutions.

Aujourd'hui Brian a ajouté une autre fonctionnalité intéressante: il est maintenant possible d'afficher des jauges (barre de progression) ou une icône seule dans les notifications, comme avec notify-osd. Steve Dodier a déjà tiré parti de cette fonctionnalité dans xfce4-volumed, qui permet d'utiliser les touches son du clavier pour changer le volume et affiche une notification permettant de connaître le volume actuel et de voir sa variation.

Xfce4 Volumed

La vidéo suivante permet de voir tout cela en action :

Nouvelles fonctionnalités de xfce4-notifyd par Xfce sur Vimeo.

Comme vous pouvez le voir, les notifications sont disposées en colonnes. Si un bord de l'écran est atteint, une nouvelle colonne commence. De cette façon, deux notifications ne se coupent jamais (en fait, ceci peut quand même arriver si l'écran est rempli de notifications, mais ça ne doit pas être courant!). Si vous avez plusieurs écrans, les notifications sont affichées sur l'écran actif. Si un écran est débranché, les notifications qui y étaient affichées sont déplacées sur l'autre écran.

New features of xfce4-notifyd

Back in June, I started to hack on xfce4-notifyd to implement a smart notification placement. In the current stable version, if more two notifications are triggered at the same time, the new ones overlap with the old ones which makes them unreadable. My goal was to shift the notifications so that they would be all visible at the same time.

This turned out to be far more complicated than I had first thought, particularly because of multiple monitors support, but this has finally been committed to the master branch of xfce4-notifyd. I would like to thank Brian who took a lot of time to review my patch and gave me a lot of kicks advises on how to make things work or improve them.

Today, Brian also implemented a cool feature: it is now possible to display gauges (progress bars) or only an icon in a notification, as with notify-osd. Steve Dodier already took advantage of that in xfce4-volumed, which allows you to change the volume using the volume keys of your keyboard and displays beautiful notifications.

Xfce4 Volumed

The following screen cast shows how things look currently:

New features of xfce4-notifyd (Jérôme Guelfucci) from Xfce on Vimeo.

As you can see notifications are displayed using columns. If a side of the screen is reached, another column is started. That way, you never get two overlapping notifications (well, in fact this can happen if the screen is full of notifications, but that shouldn't happen very often!). If you have several monitors, notifications are displayed on the active one. If a monitor is unplugged, notifications are moved to the other one.