Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: make notifications follow focused monitor #156

Open
zjeffer opened this issue Oct 25, 2024 · 2 comments
Open

Feature request: make notifications follow focused monitor #156

zjeffer opened this issue Oct 25, 2024 · 2 comments

Comments

@zjeffer
Copy link

zjeffer commented Oct 25, 2024

Dunst has the ability to make notifications follow either the focus of the mouse, keyboard, or 'none'.

From dunst's documentation:

follow (values: [none/mouse/keyboard] default: none)

Defines where the notifications should be placed in a multi-monitor setup. All values except none override the monitor setting.

On Wayland there is no difference between mouse and keyboard focus. When either of them is used, the compositor will choose an output. This will generally be the output last interacted with.
none

  • The notifications will be placed on the monitor specified by the monitor setting.
    mouse
  • The notifications will be placed on the monitor that the mouse is currently in.
    keyboard
  • The notifications will be placed on the monitor that contains the window with keyboard focus.

In my dunst config, I have this set to 'mouse'. This means that when a notification is present, if I then move my mouse to a different monitor, the notification will also be moved to that monitor.
I'd like to accomplish the same thing with wired. Is this possible yet?

@Toqozz
Copy link
Owner

Toqozz commented Oct 25, 2024

I believe the setting you're looking for is focus_follows: https://github.com/Toqozz/wired-notify/blob/master/wired.ron#L63

@zjeffer
Copy link
Author

zjeffer commented Oct 25, 2024

Doesn't really do the same thing: that setting seems to determine where to place new notifications, while I'd like to ensure that when a notification is currently active, focusing on another monitor would cause that existing notification to also move to that monitor.

It's a very small thing but I have 3 monitors and I like having the notifications always on the currently focused monitor, including the existing ones ;)

I also noticed a bug when creating notifications and switching monitors, the notifications are not always created on the focused monitor. I'll create a separate issue for this. (EDIT: #157)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants