I made a little script that works quite well, first of all, make sure you 
import Notification from libqtile.widget
then simply use this code:
class Notifier(Notify):

    defaults = Notify.defaults\
               + [("blink_interval", 0.1, "Interval between each blink"),
                  ("blink_color", "#ff0000", "The blink background color"),
                  ("blink_amount", 20, "How many times to switch colors")]

    def update(self, notif):
        super(Notifier, self).update(notif)
        self.old_background = self.background
        self.background = self.blink_color
        self.draw()
        self.count = 0
        self.timeout_add(self.blink_interval, self.next_blink)

    def next_blink(self, count=0):
        if self.count % 2 == 1:
            self.background = self.blink_color
            self.draw()
        else:
            self.background = self.old_background
            self.draw()
        if self.count < self.blink_amount:
            self.count += 1
            self.timeout_add(self.blink_interval, self.next_blink)

Then instead of using Notification, use Notifier, it will blink the 
<blink_amount> times in the <blink_color> color with an interval of 
<blink_interval> seconds. Works pretty well for me :)
Em sábado, 26 de julho de 2014 07:32:39 UTC-3, Petro escreveu:
>
> Hi all,
> Can I make notifications in Qtile to look lake notifications in Gnome or 
> XFCE? Showing them in qtile panel does not catch my attention. May be I can 
> add a sound to it. 
> Thanks.
> Petro
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to