Toqozz / wired-notify

Lightweight notification daemon with highly customizable layout blocks, written in Rust.
MIT License
605 stars 28 forks source link

Feature request: make notifications follow focused monitor #156

Open zjeffer opened 4 weeks ago

zjeffer commented 4 weeks ago

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 commented 4 weeks ago

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

zjeffer commented 4 weeks ago

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: https://github.com/Toqozz/wired-notify/issues/157)