1.3.0 • Published 2 years ago

xrandr v1.3.0

Weekly downloads
43
License
MIT
Repository
github
Last release
2 years ago

node-xrandr

An xrandr output parser

Usage

import xrandrParser from 'xrandr';

exec('xrandr', (err, stdout) => {
  console.log(xrandrParser(stdout));
});

Output

{
  "DP1": {
    "connected": false,
    "modes": []
  },
  "HDMI1": {
    "connected": true,
    "modes": [
      {
        "current": true,
        "native": true,
        "height": 1080,
        "rate": 60,
        "width": 1920
      },
      {
        "height": 1080,
        "rate": 60,
        "width": 1920,
        "interlaced": true
      },
      {
        "height": 1050,
        "rate": 60,
        "width": 1680
      }
    ]
  },
  "HDMI2": {
    "connected": false,
    "modes": []
  },
  "VIRTUAL1": {
    "connected": false,
    "modes": []
  }
}
1.3.0

2 years ago

1.2.0

2 years ago

1.2.1

2 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago