This commit is contained in:
Harald Hope 2023-11-06 22:54:11 -08:00
parent b8ba4f8821
commit ab6f94f51c

4
pinxi
View file

@ -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) {