nwg-piotr / nwg-displays

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

fix(hyprland): strip adapter info from output descriptions #39

Closed mauricekraus closed 7 months ago

mauricekraus commented 7 months ago

Ensure that the display description is parsed without any adapter translations or parenthetical remarks by trimming anything following a parenthesis in the description string. This change fixes the invalidation of hardware description strings in hyprland.

wlr-randr (and hyprctl monitors) may return attional adapter information behind tyhe description, which invalidates the hardware description string, e.g. LG Electronics LG ULTRAGEAR 1231234F (DP-2 via HDMI) -> desc:LG Electronics LG ULTRAGEAR 1231234F (DP-2,

nwg-piotr commented 7 months ago

I haven't encountered this problem yet. Thank you.