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
- Host: GitHub
- URL: https://github.com/oeo/resolution-finder
- Owner: oeo
- Created: 2024-11-17T21:14:57.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-11-17T21:19:09.000Z (6 months ago)
- Last Synced: 2024-12-26T13:46:47.025Z (5 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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").