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

[BUG] nwg-panel requires restart to show panel on all outputs #344

Closed
JSGRD22 opened this issue Nov 19, 2024 · 5 comments
Closed

[BUG] nwg-panel requires restart to show panel on all outputs #344

JSGRD22 opened this issue Nov 19, 2024 · 5 comments

Comments

@JSGRD22
Copy link

JSGRD22 commented Nov 19, 2024

Describe the bug
When a panel is set to "all outputs" and started, and a new monitor is then connected, nwg-panel has to be restarted before the panel shows on the new monitor.

To Reproduce
Steps to reproduce the behavior:

  1. Set panel to "all outputs"
  2. Connect a new output
  3. Panel does not show on new output
  4. Restart nwg-panel
  5. Panel now shows on new output

Expected behavior
nwg-panel updates to show panel on all outputs immediately upon a new connection.

Desktop (please complete the following information):

  • Fedora Linux 41 (Sway Atomic) x86_64
  • Hyprland v0.44.1
  • nwg-panel version 0.9.49
@nwg-piotr
Copy link
Owner

Panel instances are being created on startup. There's no way to do what you want.

@nwg-piotr nwg-piotr closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
@JSGRD22
Copy link
Author

JSGRD22 commented Nov 19, 2024

Very well, it isn't hard to script either.
In case anyone else is looking for this, here is a script to restart nwg-panel when a monitor is connected (or more generally when the monitor connections are changed):

#!/bin/bash
udevadm monitor --udev --subsystem-match=drm | while read -r line; do
    if echo "$line" | grep -q "change"; then
        nwg-panel &
    fi
done

Edit: run nwg-panel directly to let it restart automatically

@nwg-piotr
Copy link
Owner

To restart nwg-panel, you just need to run the command. It will kill the currently running instance.

@JSGRD22
Copy link
Author

JSGRD22 commented Nov 19, 2024

Good to know, thank you

@andi242
Copy link

andi242 commented Nov 26, 2024

Very well, it isn't hard to script either. In case anyone else is looking for this, here is a script to restart nwg-panel when a monitor is connected (or more generally when the monitor connections are changed):

thank you! that helped with wayland issues I had using eww.

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

3 participants