From ab6f94f51cfa580feef8de0b0d11d29357b18cd4 Mon Sep 17 00:00:00 2001 From: Harald Hope Date: Mon, 6 Nov 2023 22:54:11 -0800 Subject: [PATCH] cleanup --- pinxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinxi b/pinxi index 337b426..0ce385f 100755 --- a/pinxi +++ b/pinxi @@ -17483,7 +17483,7 @@ sub xrandr_data { # DP-1 connected primary 2560x1440+1080+1200 (normal left inverted right x axis y axis) 598mm x 336mm # HDMI-1 connected 1080x1920+0+0 left (normal left inverted right x axis y axis) 160mm x 90mm # disabled but connected: VGA-1 connected (normal left inverted right x axis y axis) - elsif (/^([^\s]+)\s+connected\s(primary\s)?/){ + elsif (/^([\S]+)\s+connected\s(primary\s)?/){ $monitor_id = $1; $set_as = $2; if (/^[^\s]+\s+connected\s(primary\s)?([0-9]+)\s*x\s*([0-9]+)\+([0-9]+)\+([0-9]+)(\s[^(]*\([^)]+\))?(\s([0-9]+)mm\sx\s([0-9]+)mm)?/){ @@ -17533,7 +17533,7 @@ sub xrandr_data { # print "x:$size_x y:$size_y rx:$res_x ry:$res_y dpi:$dpi\n"; ($res_x,$res_y,$size_x,$size_x_i,$size_y,$size_y_i,$set_as) = (0,0,0,0,0,0,0,0,undef); } - elsif (/^([^\s]+)\s+disconnected\s/){ + elsif (/^([\S]+)\s+disconnected\s/){ undef $monitor_id; } elsif ($monitor_id && %monitors) {