• Stars
    star
    129
  • Rank 272,703 (Top 6 %)
  • Language
    C
  • License
    MIT License
  • Created about 8 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

srandrd - simple randr daemon

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

More Repositories

1

vim-orgmode

Text outlining and task management for Vim based on Emacs' Org-Mode
Python
3,022
star
2

dex

DesktopEntry Execution
Python
377
star
3

vmux

vim/neovim session handler within tmux
Python
81
star
4

vimrc

Vim configuration optimized for productive text editing
Lua
50
star
5

vim-hier

Highlight quickfix errors
Vim Script
43
star
6

mdshow

Turn markdown files into beautiful presentations quickly
Makefile
37
star
7

dwm-clean-patches

My patches for http://dwm.suckless.org/ that apply to vanilla dwm
Shell
36
star
8

vim-textobj-uri

Text objects for dealing with URIs
Vim Script
35
star
9

vim-editqf

Make quickfix entries editable
Vim Script
35
star
10

dwm-patches

My patches for http://dwm.suckless.org/
Shell
32
star
11

emmet.snippets

emmet for vim's UltiSnips plugin: http://emmet.io/
Python
29
star
12

screenconfig

Automatic configuration of connected screens/monitors
Python
27
star
13

dotfiles

A collection of useful dotfiles
Shell
14
star
14

vim-ipi

Load plugins individually - cut down start-up time.
Vim Script
13
star
15

bin

~/bin directory with little but useful helper scripts
Shell
9
star
16

blinds.nvim

blinds.nvim emphasizes the current window by shading the non-active windows
Vim Script
7
star
17

slidesdown

Slideshows as fast as you can type.
JavaScript
7
star
18

vim-shootingstar

Like the magic * but starts matching at the cursor position
Vim Script
5
star
19

docbook-bootstrap

Bootstrapping environment for getting started with DocBook
XSLT
4
star
20

vim-fastwordcompleter

Really fast word completion while typing
Vim Script
3
star
21

dmenu-patches

My patches for http://tools.suckless.org/dmenu/
Shell
3
star
22

vim-rfc

Command for editing/displaying RFCs
Vim Script
3
star
23

vim-jcs-nerdtree_plugins

A collection of NERDTree plugins
Vim Script
2
star
24

vim-helpwrapper

Wrap several different help systems within one shortcut
Vim Script
2
star
25

vim-cd

Commands for changing the current directory
Vim Script
2
star
26

vimin

Minimal vim configuration meant for servers
Vim Script
1
star
27

ads5

Asciidoc to S5 converter
1
star
28

vim-multiedit

Open multiple files at once for editing
Vim Script
1
star
29

diffusion19

Diffusion Hackathon 2019
1
star
30

ucs-domjoin

Practical appliaction of a description for making arbitrary Linux systems part of a UCS domain
Shell
1
star
31

vim-qf_toggle

Shortcut for toggling the quickfix window
Vim Script
1
star