SRANDRD(1)
π
SRANDRD(1) β NAME β¨
okay so bestie, meet srandrd: a simple randr daemon. Thatβs the name, no cap β simple randr daemon. π
β¨ SYNOPSIS β¨
srandrd [OPTIONS] COMMAND|list
listβ List outputs and EDIDs and terminate. yes, it literally lists the goods and dips. π
π OPTIONS π
-hβ Print help and exit.-nβ Donβt fork to background.-Vβ Show version information and exit.-vβ Verbose output.-eβ Emit connected devices at startup.-1β One-shot mode; exit after emitting connected devices (implies-e).
π DESCRIPTION π
srandrd(1) is a tool that executes a command on xrandr output change events β i.e. if a monitor is plugged or unplugged. By default srandrd forks to background and exits if the xserver exits. periodt. π«Ά
The following variables are defined, bestie:
SRANDRD_OUTPUTβ defines the name of the graphics card output / port that triggered the event, e.g.DVI-0.SRANDRD_EVENTβ defines the event that happened. Itβs one of the following:[connected|disconnected|unknown].SRANDRD_EDIDβ defines a semi-unique identifier of the monitor that has been connected. The identifier is usually not unique (the same) within a monitor series. The identifier has this format:VENDOR[4]PRODUCT[4]SERIAL[8].SRANDRD_SCREENIDβ defines the xinerama screen id (if available). The identifier has this format:XINERAMA_SCREENID[1..n].
πΈ EXAMPLE πΈ
An example usage could be
srandrd display_handler
where display_handler is the following script:
#!/bin/sh
case "$S{RANDRD_OUTPUT} ${SRANDRD_EVENT}" in
"DVI-0 connected") xrandr --output DVI-0 --auto --right-of LVDS;;
"VGA-0 connected") xrandr --output VGA-0 --auto --left-of LVDS;;
esac
π¦ RESOURCES π¦
- github:
https://github.com/jceb/srandrd
π§ RELATED π§
- screenconfig:
https://github.com/jceb/screenconfig
π AUTHOR π
Jan Christoph Ebersbach <jceb@e-jc.de>Stefan Bolte <portix@gmx.net>
okay thatβs the whole page, bestie. This manual is sourced/versioned as SRANDRD(1) and dated 10/13/2018 β periodt, slay, bye. πβ¨
π¦ where this page comes from
- nixos 26.05: srandrd 0.6.3
- nixpkgs unstable: srandrd 0.6.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms