Coder Social home page Coder Social logo

srandrd's Introduction

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

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.