An open API service indexing awesome lists of open source software.

https://github.com/oeo/resolution-finder

A tool to determine screen resolution in both Wayland and X11 environments
https://github.com/oeo/resolution-finder

Last synced: 4 months ago
JSON representation

A tool to determine screen resolution in both Wayland and X11 environments

Awesome Lists containing this project

README

        

# resolution-finder

A simple tool to determine screen geometry in both Wayland and X11 environments.

## Description

`resolution-finder` is a Bun-based utility that detects and reports the primary screen's resolution. It works in both Wayland and X11 desktop environments.

## Installation

```bash
bun install -g resolution-finder
```

## Usage

As a command-line tool:

```bash
resolution-finder
```

As a module in your Bun project:

```javascript
import { getScreenResolution } from 'resolution-finder';

const resolution = await getScreenResolution();
console.log(resolution);
```

## Requirements

- Bun runtime (version 0.5.0 or higher)
- Linux environment with either Wayland or X11

## Output

The tool returns the screen resolution in the format "widthxheight" (e.g., "1920x1080").