xrandrb

Ruby wrapper/enhancer for xrandr, the Linux CLI monitor manager.

Installing

gem install xrandr

What is xrandr?

Xrandr is the low level utility that most Linux setups use to handle internal and external displays. Xrandr can do anything the typical monitor management GUI can – choosing a main display, toggle mirroring, turning displays on and off, position multiple displays relative to one another, and so on.

Why?

Xrandr itself lacks some basic features, such as providing one command for toggling a display on and off. This wrapper makes xrandr easily scriptable, so that hackers with terminals doesn’t have to have a GUI to manage external monitors – xrandrb should suffice.