.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.41.1. .TH DISPER "1" "April 2013" "disper 0.3.1" "User Commands" .SH NAME disper \- on-the-fly display switcher .SH SYNOPSIS .B disper [\fIoptions\fR] \fI(-l|-s|-c|-e|-p|-i)\fR .SH DESCRIPTION Disper re-routes your screen output to one or more connected displays. For example when giving a presentation, all one wants is that the beamer, which has just been connected, is able to show whatever you prepared. .PP There is the option to either clone all detected displays, or extend the desktop to them. Resolutions are automatically detected by default. For cloning, the highest resolution supported by all displays devices is chosen; for extending every display device gets its preferred or highest supported resolution. For special setups requiring more detailed control, one can still use the vendor-supplied display configuration utilities. .SH OPTIONS .TP \fB\-\-version\fR show program's version number and exit .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-v\fR, \fB\-\-verbose\fR show what's happening .TP \fB\-q\fR, \fB\-\-quiet\fR be quiet and only show errors .TP \fB\-r\fR RESOLUTION, \fB\-\-resolution\fR=\fIRESOLUTION\fR set resolution, e.g. "800x600", or "auto" to detect the display's preferred resolution, "max" to use the maximum resolution advertised, or "off" to disable the display entirely. For extend it is possible to enter a single resolution for all displays or a commaseparated list of resolutions (one for each display). Beware that many displays advertise resolutions they can not fully show, so "max" is not advised. .TP \fB\-d\fR DISPLAYS, \fB\-\-displays\fR=\fIDISPLAYS\fR comma\-separated list of displays to operate on, or "auto" to detect; the first is the primary display. .TP \fB\-t\fR DIRECTION, \fB\-\-direction\fR=\fIDIRECTION\fR where to extend displays: "left", "right", "top", or "bottom" .TP \fB\-\-scaling\fR=\fISCALING\fR flat\-panel scaling mode: "default", "native", "scaled", "centered", or "aspect\-scaled" .TP \fB\-\-plugins\fR=\fIPLUGINS\fR comma\-separated list of plugins to enable. Special names: "user" for all user plugins in ~/.config/disper/hooks; "all" for all plugins found; "none" for no plugins. .TP \fB\-\-cycle\-stages\fR=\fICYCLE_STAGES\fR colon\-separated list command\-line arguments to cycle through; "\-S:\-c:\-s" by default .SH ACTIONS .TP Select exactly one of the following actions .TP \fB\-l\fR, \fB\-\-list\fR list the attached displays .TP \fB\-s\fR, \fB\-\-single\fR only enable the primary display .TP \fB\-S\fR, \fB\-\-secondary\fR only enable the secondary display .TP \fB\-c\fR, \fB\-\-clone\fR clone displays .TP \fB\-e\fR, \fB\-\-extend\fR extend displays .TP \fB\-p\fR, \fB\-\-export\fR export current settings to standard output .TP \fB\-i\fR, \fB\-\-import\fR import current settings from standard input .TP \fB\-C\fR, \fB\-\-cycle\fR cycle through the list of cycle stages .SH FILES \fI$XDG_CONFIG_HOME/disper/config\fR or \fI~/.config/disper/config\fR or \fI~/.disper/config\fR .RS Default command-line options to include at each disper invocation. Multiple lines are concatenated, and lines starting with \fB#\fR are ignored. A typical example might include: .RS .nf # enable all plugins in ~/.config/disper/hooks --plugins=user # cycle over clone and extend --cycle-stages='-c : -e' .fi .RE .RE \fI$XDG_CONFIG_HOME/disper/hooks/\fR or \fI~/.config/disper/hooks/\fR or \fI~/.disper/hooks/\fR .RS Directory containing user hooks. These can be enabled with the \fB\-\-plugins\fR option. .RE .I /usr/share/disper/hooks/ .RS Directory containing system hooks. User hooks take preference of system hooks or plugins. .RE .SH CYCLE There is a possibility to cycle between different setups with a single disper invocation using the option \fB--cycle\fR. The options to cycle through are specified by the option \fB--cycle-stages\fR, which consists of a colon-separated list of disper options. To alternate, for example, between clone and extend, one could use .RS .nf .B disper --cycle-stages='-e : -c' --cycle .fi .RE Currently the last selected stage is stored in the file \fI$XDG_CONFIG_HOME/disper/last_cycle_stage\fR (actually the file \fIlast_cycle_stage\fR in the directory of the last configuration file read). This means that when display configuration is modified by something else than disper (for example by restarting the computer), cycling will continue from where it was last time, not necessarily from the current display configuration. This is something that may change in the future. .SH PLUGINS It is possible to execute user-supplied hooks on display switch, for example to display a notification or change the wallpaper. Which ones are enabled is specified by the \fB\-\-plugins\fR option. System hooks are located in \fB/usr/share/disper/hooks/\fR while user hooks should be placed in \fB$XDG_CONFIG_HOME/disper/hooks\fR (or \fB~/.config/disper/hooks/\fR or \fB~/.disper/hooks/\fR). .PP Each hook is an executable file (which includes scripts). The following environment variables are available when invoked: .IP \fIDISPER_VERSION\fR Version of disper (0.3.1). .IP \fIDISPER_LOG_LEVEL\fR Log level: 0 (quiet), 1 (normal) or 2 (verbose). .IP \fIDISPER_STAGE\fR Execution stage: \fBprepare\fR or \fBswitch\fR. Most plugins will only need to act on the \fBswitch\fR stage, which is just after the display switch has happened. Please make sure to execute an action only on \fBswitch\fR for future compatibility. (There are ideas for \fBimport\fR and \fBexport\fR as well.) .IP \fIDISPER_DISPLAYS\fR Space-separated list of displays that have output. These names may be slightly different from what disper uses internally because they have to be valid environment variable names. (e.g. DFP_0 CRT_0) .IP \fIDISPER_LAYOUT\fR One of: \fBclone\fR, \fBtop\fR, \fBright\fR, \fBbottom\fR or \fBleft\fR. .IP \fIDISPER_BB_RESOLUTION\fR Size of full bounding box (e.g. 1024x768). .PP For each of \fIDISPER_DISPLAYS\fR the resolution of the corresponding display is supplied as well. If only DFP-0 would be attached, \fIDISPER_DISPLAYS\fR would contain just DFP_0 and the following variables would be set as well: .IP \fIDISPER_RESOLUTION_DFP_0\fR Resolution of display DFP-0 (e.g. 1024x768). .PP If you want to write your own hook you can also look at the ones supplied with disper in /usr/share/disper/hooks/. .SH AUTHOR Written by Willem van Engen. .SH "SEE ALSO" .BR xrandr (1), .BR nvidia-settings (1)