Crates.io | rofi-randr |
lib.rs | rofi-randr |
version | 0.1.0 |
source | src |
created_at | 2023-06-27 07:19:11.083281 |
updated_at | 2023-06-27 07:19:11.083281 |
description | Rofi script to manage ResizeAndRotate (randr) settings on various platforms |
homepage | |
repository | https://github.com/Rintse/rofi-randr |
max_upload_size | |
id | 901033 |
size | 85,529 |
A (massively overengineered) rofi script to manage randr (Resize And Rotate) features of some display servers.
This program supports multiple backends. It automatically determines which one to use,
but you can override this behaviour by setting DPY_SERVER_OVERRIDE
in your environment.
libxrandr
- Uses the xrandr crate
to call libxrandr bindings.swayipc
- Uses the swayipc crate
to issue commands to sway.xrandr_cli
- Just calls xrandr in a subprocess.Compile using cargo build --release
. Then call rofi using:
rofi -modi "randr:/path/to/executable" -show randr
NOTE: When using wayland backends (like swayipc
), it is best to use the
wayland fork of rofi.
The following features are supported:
Backends can specify which of these features they support. Sway, for example, has no 'primary display'.
wayland-client
.wlr-randr_cli
backend.