AUTOMIRROR(1)
π AUTOMIRROR(1) β Automatic Display Mirror, bestie edition β¨
okay so this page is from the General Commands Manual, and the command is automirror β literally Automatic Display Mirror. πͺβ¨
π NAME
automirror β Automatic Display Mirror. That's the name, and it ate. π
Homepage: https://github.com/schlomo/automirror Buildstatus: https://semaphoreci.com/schlomo/automirror
π SYNOPSIS
ngl there is literally no synopsis text in the original page β it goes straight from SYNOPSIS to DESCRIPTION, and we respect the mystery. π«Ά
β¨ DESCRIPTION β¨
okay so automirror automatically configures the attached monitors into a mirror configuration that's optimized for the primary display, and it makes all the other outputs scale to that. π
The primary display is set via:
- command line as the first argument, e.g.
automirror HDMI3 - the environment variable
AUTOMIRROR_PRIMARY_DISPLAY - an interactive dialog when called with the
-ioption, e.g.automirror -i
automirror uses RandR scaling to mirror the primary display to the other displays while driving the other displays at their native resolution. That's the whole slay. π₯
The author wrote automirror because their laptop has a native resolution of 1600x900, which is not supported by any computer screen or projector. π When they connect a Full HD projector via HDMI and mirror the screen with the Gnome/Unity/XFCE Display Properties, then the highest compatible configuration happens to be 1024x768, which is really not helpful. π
In this case automirror will simply configure the HDMI device with 1920x1080 and scale the 1600x900 laptop display. As a result, they stay with the full resolution on the laptop display and it also looks nice on the projector. β¨
Another case is where they work with a 1920x1200 computer monitor and add the 1920x1080 projector as a second display. Again, the common resolution offered by both devices is 1024x768. automirror will recognize the 1920x1200 display as primary display and scale it to 1920x1080 on the secondary display, which is not really noticeable. πΈ
It is recommended to configure a hot key to run automirror so that one can run it even if the display configuration is heavily messed up. In rare cases it might be necessary to run automirror more than once so that xrandr will configure the displays correctly. π«Ά
π SCENARIOS
π₯οΈ Single Monitor
A single monitor will be configured to its optimum resolution without scaling. clean, simple, iconic. π
π₯οΈπ₯οΈ Several Monitors
If several monitors are active, then automirror will first determine the primary display, which is either the builtin laptop monitor (LVDS1) or the monitor with the most lines. π
Then automirror configures all displays at their native resolution. The other displays are configured to mirror the primary display with scaling so that the primary display fills the entire screen. The scaling does not care about aspect ratios! ππ₯
π€ Presentations
Use the -i interactive mode to select the external output and have the laptop screen scale to that. This is especially useful for HiDPI devices. π«Ά
π CONFIGURATION
automirror can be configured via environment variables:
AUTOMIRROR_PRIMARY_DISPLAYβ defaults toLVDS1. If this display is present, then always configure all other displays to mirror that one. The purpose of this variable is to setupautomirrorto always optimize for your internal laptop display. π»AUTOMIRROR_NOTIFY_COMMANDβ defaults to usenotify-send(1). Can be set to a command that will be called with a single argument containing a multi-line string. Set totrueto disable notifications. π
π οΈ DEVELOPMENT
Please add test cases under testdata for everything you want to have covered. π§ͺ
To build automirror, simply run make deb; otherwise you can simply run automirror.sh from the source distribution. Build Requirements are debuild(1), git-dch(1) and ronn http://rtomayko.github.io/ronn/. For Ubuntu/Debian install the devscripts git-buildpackage ruby-ronn make debhelper packages. π¦
For a release, github-release https://github.com/c4milo/github-release needs to be in your PATH. Run make release. π
okay bye bestie β this was AUTOMIRROR(1), footer-dated January 1980, which is giving time-traveling icon energy π°οΈπ
π¦ where this page comes from
- nixos 26.05: automirror 49
- nixpkgs unstable: automirror 49
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms