wired-notify icon indicating copy to clipboard operation
wired-notify copied to clipboard

Feature request: make notifications follow focused monitor

Open zjeffer opened this issue 1 year ago • 2 comments

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?

zjeffer avatar Oct 25 '24 20:10 zjeffer

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

Toqozz avatar Oct 25 '24 20:10 Toqozz

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)

zjeffer avatar Oct 25 '24 21:10 zjeffer