Dunst: block notifications if there is a window in fullscreen mode

Created on 28 Feb 2014  路  8Comments  路  Source: dunst-project/dunst

Hi
Can you implement a feature that block notifications if there is a window in fullscreen mode

I wrote simple app to monitor if there is any
https://gist.github.com/aanatoly/9263530

Feature

Most helpful comment

I've reafactored my old branch and have fixed all issues in code.

Is somebody volunteering and will give feedback? I'd love to have some external feedback. All I can say about it, it works for me very well.

git clone https://github.com/bebehei/dunst
cd dunst
git checkout fullscreen
make
sudo make install

This introduces a rule field show_on_fs:

# show critical notifications also on fullscreen
[fs_enable_critical]
    msg_urgency = critical
    show_on_fs = yes

All 8 comments

Hey,
I would also like this feature to be implemented.
AFAIK the developer of dunst is not actively developing dunst anymore.
But if you could implement this, I would be happy to pull it.
Hint: Take a look at the x.c file. That should be the place for this code.

what should happen to notifications that came up while a window was in fullscreen mode?

Should they just timeout as normal or should they be displayed when the window is no longer in fullscreen mode?

I'd say pause dunst as long as there's a fullscreen window.

Might be confgurable if notifications time out or dunst gets paused. And maybe if this feature is disabled completely and they show.

If you have multiple monitors dunst could optionally try to find one without a fullscreen window and display notifications there.
If you pause dunst, maybe only show critical notifications afterwards and the count of missed notifications pushed directly to history.

I support this.

On my branch fullscreen, there are the neccessary changes implemented. "It works".

At the end of the day, it should be configurable by a rule, which notifications get shown during fullscreen.

[fs_urgent]
    has_urgency = "critical"
    set_show_on_fs = yes

But in terms of cleanyness, I have to improve the commits. I will create a PR, if the code quality is mergeable.

I've reafactored my old branch and have fixed all issues in code.

Is somebody volunteering and will give feedback? I'd love to have some external feedback. All I can say about it, it works for me very well.

git clone https://github.com/bebehei/dunst
cd dunst
git checkout fullscreen
make
sudo make install

This introduces a rule field show_on_fs:

# show critical notifications also on fullscreen
[fs_enable_critical]
    msg_urgency = critical
    show_on_fs = yes
Was this page helpful?
0 / 5 - 0 ratings

Related issues

knopwob picture knopwob  路  5Comments

mrmoroshkin picture mrmoroshkin  路  4Comments

phuhl picture phuhl  路  3Comments

Anachron picture Anachron  路  4Comments

existme picture existme  路  4Comments