Control: retitle -1 document how --default works (and how Debian runs 
autorandr) better

On Thu, 22 Feb 2018, martin f krafft wrote:
> I don't think --default works. If I run
> 
>   autorandr --default home
> 
> then it applies the home profile immediately, but if I plug in an
> unknown monitor, then it doesn't switch to the home profile.

Hrm; this should be documented better. The udev rule runs
systemctl start --no-block autorandr.service; and autorandr.service runs
autorandr --batch --change --default default;

> On this note, it would be awesome if I could specify
> 
>   autorandr --default common
> 
> so that autorandr configures my screen layout according to the
> virtual "common" layout whenever no better match is found among the
> configured profiles.

So to do this, you can just do:

systemctl edit autorandr.service;
and add:

[Service]
ExecStart=/usr/bin/autorandr --batch --change --default common;

-- 
Don Armstrong                      https://www.donarmstrong.com

Fate and Temperament are two words for one and the same concept.
 -- Novalis [Hermann Hesse _Demian_]

Reply via email to