mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
cleanup
This commit is contained in:
parent
b8ba4f8821
commit
ab6f94f51c
4
pinxi
4
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
|
# 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
|
# 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)
|
# 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;
|
$monitor_id = $1;
|
||||||
$set_as = $2;
|
$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)?/){
|
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";
|
# 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);
|
($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;
|
undef $monitor_id;
|
||||||
}
|
}
|
||||||
elsif ($monitor_id && %monitors) {
|
elsif ($monitor_id && %monitors) {
|
||||||
|
|
Loading…
Reference in a new issue