Improving notify-send. Adding a new message to the previous one

    A few versions ago, a new notification system appeared in Ubuntu - libnotify. It provides an unobtrusive way to communicate something to the user without interfering with his work.
    But with all its advantages, there are also disadvantages. For example, the fact that they are non-clickable confuses a large number of users. And also - if you receive several such messages, they will be displayed in a row with an interval of 10 seconds. And now we will try to partially fix this. In search of a solution to this problem, I came across a very interesting article from Dima : How to configure Skype pop-up notifications correctly under Ubuntu Having tried this method, I redid its source code a bit to use any application icon instead of a constant Skype.






    In fact, I changed only one line - with the output of notify-send.
    You can download the script from here: Download notify-send-ex.tar.gz from exfile.ru
    Unpack the archive in / usr / bin or / usr / local / bin to your liking.
    Next, add to startup (ubuntu: System - Settings - Launched applications) a new item:
    Name: notify-ex-server
    Command: /usr/bin/notify-append-server.py

    Click "Close".

    Now we press Alt + F2 and write /usr/bin/notify-append-server.py

    Further use for sending notifi instead
    notify-send «Caption» «Text » -i Application
    such commando
    notify-send-ex «Caption» «Text» Application
    And new messages will be added to the end of the previous ones.

    You can read about how it works on the website of the author of the script using the link that I gave at the beginning of the article.

    Thank you for your attention =)

    PS partially as an addition to the article Easy control Music Player Daemon on the Gnome Panel

    Also popular now: