GitXplorerGitXplorer
j

srandrd

public
135 stars
12 forks
1 issues

Commits

List of commits on branch master.
Unverified
640f3e3274feed34bf76ea765ae3832a1bea654e

fix: remove early exit in loop that causes not all screens to be listed #10

jjceb committed a year ago
Verified
bb00996f2f487bc1a24309d6475a384c4f383850

Merge pull request #3 from djpohly/oneshot

jjceb committed 3 years ago
Unverified
bfc4bb263eb90502bb147f1b6ebfa31d838b05b5

Merge branch 'main' into oneshot

ddjpohly committed 4 years ago
Verified
4e4b754590c6ae311799adf9884b12ae4e5cf361

Merge pull request #8 from aadityabagga/fix-typo

jjceb committed 5 years ago
Verified
cb4df150215ddc5604ed6b53724701d8946930f1

Update README.adoc

aabchk1234 committed 5 years ago
Unverified
1ab4880b0f2154e0b1b8d4acf7188a8c63d0fa5b

Add cache to changeglog

committed 6 years ago

README

The README file for this repository.

SRANDRD(1) Manual Page

NAME

srandrd - simple randr daemon

SYNOPSIS

srandrd [OPTIONS] COMMAND|list

list

List outputs and EDIDs and terminate

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.

The following variables are defined:

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 being the following script

#!/bin/sh

case "${SRANDRD_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

AUTHOR