X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=debian%2Fautorandr.service;h=d270c5e68e7c4caee09711ef8e3227b39409b8ba;hb=8f01b716e9a7b0b3fe4846c89cfaa47ef5c1f4b3;hp=d80831e634b8dcf82b2a5a79c84907228d408eff;hpb=a6647337b6f2535ba80e692ca6925a9a990fe246;p=deb_pkgs%2Fautorandr.git diff --git a/debian/autorandr.service b/debian/autorandr.service deleted file mode 120000 index d80831e..0000000 --- a/debian/autorandr.service +++ /dev/null @@ -1 +0,0 @@ -../contrib/systemd/autorandr.service \ No newline at end of file diff --git a/debian/autorandr.service b/debian/autorandr.service new file mode 100644 index 0000000..d270c5e --- /dev/null +++ b/debian/autorandr.service @@ -0,0 +1,16 @@ +[Unit] +Description=autorandr execution hook +After=sleep.target +# Note: StartLimitInterval was renamed to StartLimitIntervalSec in systemd-230. +# See autorandr bug #69. Do not rename for now, as the old name is kept for +# compatibility. +StartLimitInterval=5 +StartLimitBurst=1 + +[Service] +ExecStart=/usr/bin/autorandr --batch --change --default default +Type=oneshot +RemainAfterExit=false + +[Install] +WantedBy=sleep.target