nwg-piotr / nwg-displays

Output management utility for sway and Hyprland.
MIT License
334 stars 22 forks source link

Allow monitor descriptions instead of output names #25

Closed nwg-piotr closed 11 months ago

nwg-piotr commented 11 months ago
  1. allowed use of monitor description instead of output name, e.g.:

workspace 2 output 'AOC 2475WR F17H4QA000449' on sway workspace=2,monitor:desc:AOC 2475WR F17H4QA000449 on Hyprland

instead of

workspace 2 output HDMI-A-1 on sway workspace=2,monitor:HDMI-A-1 on Hyprland

(this feature closes #23);

  1. Hyprland: first workspace on a monitor is automatically being set as the default workspace on this monitor (instead of previous manual selection, which was buggy); this behaviour is compliant with what we have on sway, heavily simplifies the code, and would be users choice in 99% of cases anyway.
  2. Hyprland: added warning about necessity to restart Hyprland if workspaces settings changed (same way as it works on sway).

image