Crates.io | rres |
lib.rs | rres |
version | 0.1.5 |
source | src |
created_at | 2021-12-11 23:49:57.537289 |
updated_at | 2023-09-10 19:41:10.589595 |
description | A xrandr replacement to gather display resolutions |
homepage | https://sr.ht/~nkeor/rres |
repository | https://git.sr.ht/~nkeor/rres |
max_upload_size | |
id | 496365 |
size | 62,667 |
A xrandr replacement to gather display resolutions
Recently under new maintainership, things subject to changes
$ cargo install rres
$ paru -S rres # or rres-git
$ rres -h
Usage: rres [options]
-c, --card <card> Specify a GPU (file existing in /dev/dri/, eg. card0)
-m, --multi Read all monitors. If this option is ommited, rres will
return the resolution of the first detected monitor
-v, --verbose Verbosity level. Can be specified multiple times, e.g. -vv
-q, --quiet Lower verbosity level. Opposite to -v
-h, --help Show this help message
-g, --gamescope <mode> Gamescope mode. Also supports FSR upscaling
Supported modes are native, ultra, quality, balanced and performance
Environment variables:
RRES_DISPLAY=<index> Select display in single mode (starting at 0)
RRES_FORCE_RES=RESXxRESY Force a specific resolution to be detected
RRES_GAMESCOPE=<path> Specify a gamescope binary for -g
Wine Virtual Desktop example:
wine "explorer /desktop=Game,$(./rres)" game.exe
Gamescope usage:
./rres -g FSR_MODE -- GAMESCOPE_ARGS
Example:
./rres -g ultra -- -f -- wine game.exe
All notable changes will be documented in the CHANGELOG
Licensed under the GPLv3 license.
Copyright (c) 2022 Namkhai B.