]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Merge branch 'master' into debian/sid
authorDon Armstrong <don@donarmstrong.com>
Mon, 11 Dec 2017 18:47:22 +0000 (10:47 -0800)
committerDon Armstrong <don@donarmstrong.com>
Mon, 11 Dec 2017 18:47:22 +0000 (10:47 -0800)
14 files changed:
debian/.gitignore [new file with mode: 0644]
debian/autorandr.1 [new file with mode: 0644]
debian/autorandr.service [new symlink]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/fill.copyright.blanks.yml [new file with mode: 0644]
debian/gbp.conf [new file with mode: 0644]
debian/manpages [new file with mode: 0644]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]
debian/source/options [new file with mode: 0644]
debian/watch [new file with mode: 0644]

diff --git a/debian/.gitignore b/debian/.gitignore
new file mode 100644 (file)
index 0000000..eb68ed0
--- /dev/null
@@ -0,0 +1,5 @@
+autorandr.debhelper.log
+autorandr.substvars
+autorandr/
+debhelper-build-stamp
+files
diff --git a/debian/autorandr.1 b/debian/autorandr.1
new file mode 100644 (file)
index 0000000..5065d47
--- /dev/null
@@ -0,0 +1,124 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.4.
+.TH AUTORANDR "1" "October 2017" "autorandr 1.2" "Automatically change screen layout"
+.SH NAME
+autorandr \- Automatically change screen layout
+.SH SYNOPSIS
+.B autorandr
+[\fI\,options\/\fR]
+.SH OPTIONS
+.PP
+\fB\-h\fR, \fB\-\-help\fR
+.RS 4
+get this small help
+.RE
+.PP
+\fB\-c\fR, \fB\-\-change\fR
+.RS 4
+reload current setup
+.RE
+.PP
+\fB\-s\fR, \fB\-\-save\fR <profile>
+.RS 4
+save your current setup to profile <profile>
+.RE
+.PP
+\fB\-r\fR, \fB\-\-remove\fR <profile>
+.RS 4
+remove profile <profile>
+.RE
+.PP
+\fB\-l\fR, \fB\-\-load\fR <profile>
+.RS 4
+load profile <profile>
+.RE
+.PP
+\fB\-d\fR, \fB\-\-default\fR <profile>
+.RS 4
+make profile <profile> the default profile
+.RE
+.PP
+\fB\-\-skip\-options\fR <option>
+.RS 4
+comma separated list of xrandr arguments (e.g. "gamma")
+to skip both in detecting changes and applying a profile
+.RE
+.PP
+\fB\-\-force\fR
+.RS 4
+force (re)loading of a profile
+.RE
+.PP
+\fB\-\-fingerprint\fR
+.RS 4
+fingerprint your current hardware setup
+.RE
+.PP
+\fB\-\-config\fR
+.RS 4
+dump your current xrandr setup
+.RE
+.PP
+\fB\-\-dry\-run\fR
+.RS 4
+don't change anything, only print the xrandr commands
+.RE
+.PP
+\fB\-\-debug\fR
+.RS 4
+enable verbose output
+.RE
+.PP
+\fB\-\-batch\fR
+.RS 4
+run autorandr for all users with active X11 sessions
+.RE
+.PP
+.SH "CONFIGURATION"
+To prevent a profile from being loaded, place a script called "block" in its
+directory. The script is evaluated before the screen setup is inspected, and
+in case of it returning a value of 0 the profile is skipped. This can be used
+to query the status of a docking station you are about to leave.
+.PP
+If no suitable profile can be identified, the current configuration is kept.
+To change this behaviour and switch to a fallback configuration, specify
+\fB\-\-default\fR <profile>.
+.PP
+Another script called "postswitch" can be placed in the directory
+~/.config/autorandr (or ~/.autorandr if you have an old installation) as well
+as in any profile directories: The scripts are executed after a mode switch
+has taken place and can notify window managers.
+.SH "VIRTUAL CONFIGURATIONS"
+The following virtual configurations are available:
+.TP
+common
+Clone all connected outputs at the largest common resolution
+.TP
+clone\-largest
+Clone all connected outputs with the largest resolution (scaled down if necessary)
+.TP
+horizontal
+Stack all connected outputs horizontally at their largest resolution
+.TP
+vertical
+Stack all connected outputs vertically at their largest resolution
+.SH "EXAMPLES"
+# save the current setup and make it the default
+.RE
+autorandr \-\-save mysetup
+.RE
+autorandr \-\-default mysetup
+.RE
+# put laptop in dock (or plug in additional monitors)
+.RE
+# run appropriate xrandr commands to fix things up
+.RE
+autorandr \-\-save docked_setup
+.RE
+# now remove the laptop from the dock, and settings return to mysetup
+.SH "AUTHORS"
+Autorandr is written and maintained by Phillip Berndt, with
+contributions by many others. See
+https://github.com/phillipberndt/autorandr for more information.
+.SH "SEE ALSO"
+.sp
+\fBxrandr(1)\fR
diff --git a/debian/autorandr.service b/debian/autorandr.service
new file mode 120000 (symlink)
index 0000000..d80831e
--- /dev/null
@@ -0,0 +1 @@
+../contrib/systemd/autorandr.service
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..bb65d23
--- /dev/null
@@ -0,0 +1,6 @@
+autorandr (1.2-1) unstable; urgency=medium
+
+  * Initial release (Closes: #880373)
+  * Initial control description based on upstream packaging
+
+ -- Don Armstrong <don@debian.org>  Mon, 30 Oct 2017 14:07:26 -0700
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..ec63514
--- /dev/null
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..d270d39
--- /dev/null
@@ -0,0 +1,19 @@
+Source: autorandr
+Section: x11
+Priority: optional
+Maintainer: Don Armstrong <don@debian.org>
+Build-Depends: debhelper (>= 9), dh-python, python-all, python-setuptools
+Standards-Version: 4.1.1
+Homepage: https://github.com/phillipberndt/autorandr
+# X-Python-Version: >= 2.6
+Vcs-Git: https://git.donarmstrong.com/deb_pkgs/autorandr.git
+Vcs-Browser: https://git.donarmstrong.com/deb_pkgs/autorandr.git
+
+Package: autorandr
+Architecture: all
+Depends: x11-xserver-utils, python, ${misc:Depends}
+Description: Automatically select a display configuration for connected devices
+ Autorandr is a script for managing xrandr configurations based on the
+ connected devices. It can be set up to automatically switch to a
+ stored configuration whenever a change in the configuration is
+ detected.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..7510a90
--- /dev/null
@@ -0,0 +1,20 @@
+Files: *
+Copyright: 2015, 2016, Phillip Berndt
+License: GPL-3+
+
+Files: contrib/*
+Copyright: 2011, 2012, Maciej Sitarz
+License: GPL-3+
+
+Files: contrib/autorandr_nitrogen_wallpaper/*
+Copyright: 2015, Ondra Kepi KudlĂ­k, http:kepi.cz
+License: Expat
+
+Files: contrib/packaging/*
+Copyright: 2015, 2016, Phillip Berndt
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2017, Don Armstrong
+License: GPL-3+
+
diff --git a/debian/fill.copyright.blanks.yml b/debian/fill.copyright.blanks.yml
new file mode 100644 (file)
index 0000000..0eacdff
--- /dev/null
@@ -0,0 +1,23 @@
+---
+debian:
+  copyright: 2017, Don Armstrong
+  license: GPL-3+
+contrib/bash_completion/autorandr:
+  copyright: 2011 Maciej Sitarz
+  license: GPL-3+
+contrib/pm-utils/40autorandr:
+  copyright: 2012 Maciej Sitarz
+  license: GPL-3+
+contrib/packaging/debian/*:
+  copyright: 2016, Phillip Berndt
+  license: GPL-3+
+Makefile:
+  copyright: 2016, Phillip Berndt
+  license: GPL-3+
+README.md:
+  copyright: 2016, Phillip Berndt
+  license: GPL-3+
+setup.py:
+  copyright: 2016, Phillip Berndt
+  license: GPL-3+
+  
\ No newline at end of file
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644 (file)
index 0000000..11a7acf
--- /dev/null
@@ -0,0 +1,6 @@
+[DEFAULT]
+debian-branch = debian/sid
+upstream-tag = %(version)s
+pristine-tar = 1
+upstream-branch = master
+upstream-vcs-tag = %(version)s
\ No newline at end of file
diff --git a/debian/manpages b/debian/manpages
new file mode 100644 (file)
index 0000000..7473890
--- /dev/null
@@ -0,0 +1 @@
+debian/autorandr.1
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..0bd5d57
--- /dev/null
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+
+%:
+       dh $@
+
+override_dh_auto_build:
+       dh_auto_build -- UDEV_RULES_DIR=/lib/udev/rules.d \
+               SYSTEMD_UNIT_DIR=/lib/systemd/system \
+               BASH_COMPLETIONS_DIR=/usr/share/bash-completion/completions \
+               PM_SLEEPHOOKS_DIR=/etc/pm/sleep.d/
+
+override_dh_auto_install:
+       dh_auto_install -- UDEV_RULES_DIR=/lib/udev/rules.d \
+               SYSTEMD_UNIT_DIR=/lib/systemd/system \
+               BASH_COMPLETIONS_DIR=/usr/share/bash-completion/completions \
+               PM_SLEEPHOOKS_DIR=/etc/pm/sleep.d/
+       install -D -m 755 contrib/pm-utils/40autorandr debian/autorandr/etc/pm/sleep.d/40autorandr
+
+# we do not supply an init script
+override_dh_installinit:
+       dh_installinit -n
+
+override_dh_auto_clean:
+       dh_auto_clean
+       rm -rf .pybuild autorandr.egg-info
diff --git a/debian/source/format b/debian/source/format
new file mode 100644 (file)
index 0000000..163aaf8
--- /dev/null
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/options b/debian/source/options
new file mode 100644 (file)
index 0000000..cb61fa5
--- /dev/null
@@ -0,0 +1 @@
+extend-diff-ignore = "^[^/]*[.]egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644 (file)
index 0000000..4ff6665
--- /dev/null
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/autorandr-$1\.tar\.gz/ \
+  https://github.com/phillipberndt/autorandr/tags .*/?(\d+(?:\.\d)+)\.tar\.gz