]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
document how to set --default; remove --default from service debian/1.5-1
authorDon Armstrong <don@donarmstrong.com>
Tue, 3 Apr 2018 21:39:40 +0000 (14:39 -0700)
committerDon Armstrong <don@donarmstrong.com>
Tue, 3 Apr 2018 21:41:57 +0000 (14:41 -0700)
debian/autorandr.1
debian/autorandr.service [changed from symlink to file mode: 0644]
debian/changelog

index 5065d47e151d4cc41770ba3e03ac30375dd245cd..7061746a8d901cb766868cd53df448ee391d8434 100644 (file)
@@ -34,7 +34,8 @@ load profile <profile>
 .PP
 \fB\-d\fR, \fB\-\-default\fR <profile>
 .RS 4
-make profile <profile> the default profile
+use profile <profile> if no other profile matches. [Most useful if set
+in ~/.config/autorandr/settings.ini].
 .RE
 .PP
 \fB\-\-skip\-options\fR <option>
@@ -102,11 +103,11 @@ Stack all connected outputs horizontally at their largest resolution
 vertical
 Stack all connected outputs vertically at their largest resolution
 .SH "EXAMPLES"
-# save the current setup and make it the default
+# save the current setup and set default
 .RE
 autorandr \-\-save mysetup
 .RE
-autorandr \-\-default mysetup
+echo -e '[config]\\ndefault=mysetup' > ~/.config/autorandr/settings.ini
 .RE
 # put laptop in dock (or plug in additional monitors)
 .RE
deleted file mode 120000 (symlink)
index d80831e634b8dcf82b2a5a79c84907228d408eff..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../contrib/systemd/autorandr.service
\ No newline at end of file
new file mode 100644 (file)
index 0000000000000000000000000000000000000000..3a8a642cc441050e17c1f21135b7626400278a68
--- /dev/null
@@ -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
+Type=oneshot
+RemainAfterExit=false
+
+[Install]
+WantedBy=sleep.target
index 57e89b9673063192e52c8182d7c324cc29ffd1cb..7bc658a2b95000b1e4df986d137a3686b9b7142c 100644 (file)
@@ -3,6 +3,9 @@ autorandr (1.5-1) unstable; urgency=medium
   * New upstream release
     - Use stdout for state output (Closes: #891054)
     - Provide --current and --detected (Closes: #891055)
+  * Remove --default from service; this should now be specified in a
+    configuration file.
+  * Document how --default works better (Closes: #891061)
 
  -- Don Armstrong <don@debian.org>  Tue, 03 Apr 2018 13:56:17 -0700