Skip to content

Query number of notifications? #34

Open
@m-wells

Description

@m-wells

Is there a simple way to query the number of notifications? I have a polybar text module that I would like to make into a script module that would query the number of unread notifications once every 30 seconds or so. Currently the text module uses

[module/notifications]
type = custom/text
content = 
click-left = kill -s USR1 $(pidof deadd-notification-center)

but it would be nice to have

[module/notifications]
type = custom/script
exec = command-to-get-number-of-notifications
tail = true
interval = 30
click-left = kill -s USR1 $(pidof deadd-notification-center)
label =  %output%

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions