]>
git.donarmstrong.com Git - deb_pkgs/autorandr.git/log
Nazar Mokrynskyi [Sat, 1 Oct 2016 02:55:37 +0000 (05:55 +0300)]
Add xdg autostart config so that configuration will be applied on login.
Small fix for files searching.
Phillip Berndt [Mon, 19 Sep 2016 12:32:20 +0000 (14:32 +0200)]
Added Makefile target to create a deb archive
This largely ignores all Debian packaging standards, and simply creates
a Debian package which contains the files that would be installed if the
user typed `sudo make install' on his (Debian) system.
Phillip Berndt [Fri, 16 Sep 2016 14:19:24 +0000 (16:19 +0200)]
Introduce --batch option to autorandr: Run autorandr for each user with an X11 session
This is an attempt to resolve #45 and it might also be a better
alternative to #52, #44 and #39.
Phillip Berndt [Tue, 30 Aug 2016 09:40:31 +0000 (11:40 +0200)]
Merge branch 'austinglaser-pm-util-loginctl-order'
Austin Glaser [Tue, 30 Aug 2016 04:48:32 +0000 (22:48 -0600)]
Allow 40autorandr to handle any order fields from loginctl
This could be done a great deal more cleanly using bash regex matching;
however, as is stated elsewhere, the script will not always be executed
with bash.
There may be some merit to causing the script to always be executed with
bash (`#! /bin/bash` or even `#! /usr/bin/env bash`), but I'll admit I
don't know how widely installed bash is. I've certainly never found a
modern Linux install without bash, but my experience isn't the widest.
Phillip Berndt [Fri, 29 Jul 2016 17:48:06 +0000 (19:48 +0200)]
Fixes in 40autorandr; thanks to @rnav for spotting the issues
Phillip Berndt [Thu, 28 Jul 2016 17:37:13 +0000 (19:37 +0200)]
Remove leftover debug code
Phillip Berndt [Thu, 28 Jul 2016 17:35:17 +0000 (19:35 +0200)]
Improve detection of $DISPLAY session owner
This closes bug #39.
Phillip Berndt [Wed, 6 Jul 2016 12:46:49 +0000 (14:46 +0200)]
Merge pull request #51 from t0fik/xgd_compliant
Set default value of $XDG_CONFIG_DIRS to fulfill the standard
Jerzy Drozdz [Tue, 5 Jul 2016 05:34:29 +0000 (07:34 +0200)]
Set default value of $XDG_CONFIG_DIRS to be standard compliant
Phillip Berndt [Sun, 5 Jun 2016 19:15:37 +0000 (21:15 +0200)]
Merge branch 'retry_commands'
Phillip Berndt [Tue, 31 May 2016 13:23:52 +0000 (15:23 +0200)]
udev requires pmutils as well (See issue #45)
Phillip Berndt [Tue, 31 May 2016 08:32:21 +0000 (10:32 +0200)]
Added hint on hooks (related to bug #49)
Phillip Berndt [Tue, 31 May 2016 07:16:44 +0000 (09:16 +0200)]
Add URL to error messages.
Far too many people report bugs for the Python version at
wertarbyte/autorandr.
Phillip Berndt [Mon, 9 May 2016 07:16:16 +0000 (09:16 +0200)]
Fix systemd detection, closes #48
Phillip Berndt [Thu, 28 Apr 2016 13:51:50 +0000 (15:51 +0200)]
Retry failed xrandr calls after waiting for one second to mitigate #47
Phillip Berndt [Thu, 28 Apr 2016 13:38:26 +0000 (15:38 +0200)]
In debug mode, output commands that will be run
Phillip Berndt [Mon, 28 Mar 2016 12:50:08 +0000 (14:50 +0200)]
Merge pull request #46 from HyperBaton/master
Add ability to remove profile
Simon Wydooghe [Mon, 28 Mar 2016 12:06:31 +0000 (14:06 +0200)]
Add python2 compatibility to removal ability
Simon Wydooghe [Mon, 28 Mar 2016 11:13:03 +0000 (13:13 +0200)]
Added user confirmation to remove action
In case of files other than setup and config being present in the
profile folder, user confirmation is necessary to delete the
profile in question.
Also, added my name to the README.
Simon Wydooghe [Sun, 27 Mar 2016 17:18:01 +0000 (19:18 +0200)]
Add ability to remove profile
This commit adds profile removal ability.
You can use '-r' or '--remove'.
Following checks are done:
* not a virtual profile
* profile can be found in profiles.keys()
Also added the remove option to the bash completion (untested though,
using zsh and quite unfamiliar with it).
Phillip Berndt [Wed, 10 Feb 2016 14:07:10 +0000 (15:07 +0100)]
Added @Idolf to readme
Phillip Berndt [Wed, 10 Feb 2016 14:05:17 +0000 (15:05 +0100)]
Merge github.com:Idolf/autorandr
Phillip Berndt [Wed, 10 Feb 2016 12:05:33 +0000 (13:05 +0100)]
Fix for #44
Phillip Berndt [Wed, 10 Feb 2016 11:22:34 +0000 (12:22 +0100)]
Work around #44: Support long user names in w
Mathias Svensson [Thu, 4 Feb 2016 11:56:20 +0000 (12:56 +0100)]
Implemented the suggestions
Mathias Svensson [Wed, 3 Feb 2016 15:36:05 +0000 (16:36 +0100)]
Works on my machine
Phillip Berndt [Wed, 3 Feb 2016 07:07:48 +0000 (08:07 +0100)]
Workaround to fix #39
Phillip Berndt [Thu, 7 Jan 2016 14:16:27 +0000 (15:16 +0100)]
Adhere XDG basedir spec regarding order
It says that for duplicate information (i.e., equal file names), only
the one that comes first ought to be used. So we have to make sure to
load profiles in the correct order -- the ones that have the highest
priority last, because we just dict.update them all together. And in
script execution, we have to keep a list of file names already used in
scripts that have already been executed.
Phillip Berndt [Thu, 7 Jan 2016 14:02:51 +0000 (15:02 +0100)]
Run scripts from $XDG_CONFIG_DIRS as well (See pull request #43)
Phillip Berndt [Sun, 3 Jan 2016 11:27:59 +0000 (12:27 +0100)]
Pass meta-information to block scripts
Currently, $AUTORANDR_CURRENT_PROFILES and $AUTORANDR_CURRENT_PROFILE
are supported, containing a colon-separated list (or the first,
respectively) of active profiles. If no profile was detected as
active/current, both variables will be empty.
This fixes #42
Phillip Berndt [Mon, 7 Dec 2015 08:49:57 +0000 (09:49 +0100)]
pm-utils script: Check for xinit as a fallback
Phillip Berndt [Sat, 5 Dec 2015 16:04:35 +0000 (17:04 +0100)]
Remove autorandr_monitor, closes bug #41
Phillip Berndt [Fri, 4 Dec 2015 11:53:17 +0000 (12:53 +0100)]
pm-utils script: Potential fixes for bugs #30 and #39
Phillip Berndt [Thu, 3 Dec 2015 08:17:57 +0000 (09:17 +0100)]
Merge pull request #40 from blueyed/executable-pm-script
The 40autorandr script needs to be executable for udev
Daniel Hahler [Wed, 2 Dec 2015 11:43:19 +0000 (12:43 +0100)]
The 40autorandr script needs to be executable for udev
Otherwise it will not be executed:
… systemd-udevd[32358]: failed to execute '/etc/pm/sleep.d/40autorandr' '/etc/pm/sleep.d/40autorandr thaw': Permission denied
… systemd-udevd[32355]: Process '/etc/pm/sleep.d/40autorandr thaw' failed with exit code 2.
Phillip Berndt [Tue, 24 Nov 2015 18:10:24 +0000 (19:10 +0100)]
Only use name of executable in systemd detection (See #38)
Phillip Berndt [Tue, 24 Nov 2015 18:05:46 +0000 (19:05 +0100)]
Improved systemd detection (See bug #38, thanks to @blueyed)
Phillip Berndt [Tue, 17 Nov 2015 09:27:43 +0000 (10:27 +0100)]
Skip --transform unless necessary (See #37)
Phillip Berndt [Wed, 11 Nov 2015 14:24:54 +0000 (15:24 +0100)]
Reorganized import statements
Phillip Berndt [Wed, 11 Nov 2015 10:21:23 +0000 (11:21 +0100)]
Moved contributed scripts/files to the contrib/ folder and updated the Makefile to autodetect the system
systemd service file contributed by github user @blueyed. see #29.
Phillip Berndt [Mon, 8 Jun 2015 10:35:44 +0000 (12:35 +0200)]
Print configuration differences for failed actions if --debug is set
Phillip Berndt [Sat, 1 Aug 2015 08:30:26 +0000 (10:30 +0200)]
Merge pull request #36 from kepi/feature-nitrogen
Contrib: script for changing wallpapers on change
Kepi [Fri, 31 Jul 2015 23:53:32 +0000 (01:53 +0200)]
Contrib: script for changing wallpapers on change
Simple script which allows you to save nitrogen's wallpaper setup
for current profile and restore it when profile is loaded.
Useful in case you are moving between different monitor setups and
orientations.
Phillip Berndt [Sat, 30 May 2015 17:16:21 +0000 (19:16 +0200)]
Only use connected displays in virtual profiles
Phillip Berndt [Sat, 16 May 2015 19:22:16 +0000 (21:22 +0200)]
Add --debug for verbose output
This currently prints differences between detected/to-be-loaded and
current configurations.
See bug #27
Phillip Berndt [Tue, 19 May 2015 11:37:33 +0000 (13:37 +0200)]
Show (current) after the current profile in the default output
Phillip Berndt [Sun, 17 May 2015 09:27:36 +0000 (11:27 +0200)]
Added --skip-options to ignore certain xrandr options
See issue #26. This feature is required if tools like redshift interfere
with autorandr: Redshift e.g. continuously adjusts the --gamma values
such that autorandr never recognizes its configurations. This option
allows users to tell autorandr to ignore, and not fiddle with, --gamma.
Phillip Berndt [Sun, 17 May 2015 16:47:37 +0000 (18:47 +0200)]
Merge pull request #31 from blueyed/improve-usage-error
Improve usage information with GetoptError
Phillip Berndt [Sun, 17 May 2015 16:46:25 +0000 (18:46 +0200)]
Merge pull request #32 from blueyed/py3
py3: import reduce from functools
Daniel Hahler [Sun, 17 May 2015 15:55:26 +0000 (17:55 +0200)]
py3: import reduce from functools
This works for Python 2, too (tested on 2.6 and 2.7).
Daniel Hahler [Sun, 17 May 2015 15:47:59 +0000 (17:47 +0200)]
Improve usage information with GetoptError
- print to stderr
- do not display help automatically
Phillip Berndt [Sun, 17 May 2015 15:44:52 +0000 (17:44 +0200)]
Fixed --gamma value handling
Phillip Berndt [Sun, 17 May 2015 08:12:07 +0000 (10:12 +0200)]
Added @blueyed to the contributors list
Phillip Berndt [Sun, 17 May 2015 08:09:41 +0000 (10:09 +0200)]
Reformated main exception handler (Breaks PEP 8; I'm not a fan of the 80 cols rule)
Daniel Hahler [Sat, 16 May 2015 23:43:19 +0000 (01:43 +0200)]
Improve main exception handling: display traceback, handle BdbQuit
It handles "empty" exceptions (e.g. from BdbQuit (via ipdb.set_trace))
better and just makes Python display any uncaught exceptions (with
traceback) by raising them.
This removes the additional newlines, too.
Phillip Berndt [Tue, 14 Apr 2015 07:23:00 +0000 (09:23 +0200)]
Fixed exception handler
Phillip Berndt [Tue, 14 Apr 2015 07:15:39 +0000 (09:15 +0200)]
Mode names need not be of the form <width>x<height>, but can be arbitrary
In the hope for _some_ sanity, the code still asumes that there is no
whitespace in mode names. This fixes #25.
Phillip Berndt [Fri, 10 Apr 2015 09:36:48 +0000 (11:36 +0200)]
More useful error messages
Phillip Berndt [Wed, 8 Apr 2015 08:14:55 +0000 (10:14 +0200)]
Fixed output parsing error messages
Phillip Berndt [Wed, 8 Apr 2015 08:14:39 +0000 (10:14 +0200)]
Detect modes that have *current at the end of the mode line
Phillip Berndt [Wed, 8 Apr 2015 08:14:19 +0000 (10:14 +0200)]
Detect tracking/border information for --panning
Phillip Berndt [Wed, 8 Apr 2015 08:13:36 +0000 (10:13 +0200)]
Detect negative positions
Phillip Berndt [Mon, 6 Apr 2015 15:51:09 +0000 (17:51 +0200)]
Support for RandR 1.3 --panning
Phillip Berndt [Sun, 5 Apr 2015 23:26:32 +0000 (01:26 +0200)]
A screen can be disabled yet primary
Phillip Berndt [Mon, 30 Mar 2015 06:05:42 +0000 (08:05 +0200)]
Temporarily undo transformations when applying configurations
Haswell chips have problems if this is not done, they report:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 7 (RRSetScreenSize)
Serial number of failed request: 41
Current serial number in output stream: 43
This commit circumvents this problem.
Phillip Berndt [Fri, 27 Mar 2015 16:33:08 +0000 (17:33 +0100)]
Screens can be connected but unused, but also disconnected and still in use
Detect that.
Phillip Berndt [Thu, 26 Mar 2015 15:13:54 +0000 (16:13 +0100)]
Updated README with missing contributors
Phillip Berndt [Thu, 26 Mar 2015 08:28:59 +0000 (09:28 +0100)]
Use a dummy EDID if an EDID is unavailable for an output
Phillip Berndt [Tue, 24 Mar 2015 10:41:32 +0000 (11:41 +0100)]
Merge pull request #22 from victorhaggqvist/patch-1
Fix `block` script filename in Python version
Victor Häggqvist [Mon, 23 Mar 2015 21:01:59 +0000 (22:01 +0100)]
fix: make block script name correspond to docs
Phillip Berndt [Sun, 8 Mar 2015 17:16:53 +0000 (18:16 +0100)]
typo
Phillip Berndt [Sun, 8 Mar 2015 17:14:06 +0000 (18:14 +0100)]
Prevent, in apply_configuration, a xrandr call that disables all screens
See pull request #20
Phillip Berndt [Sat, 7 Mar 2015 17:44:25 +0000 (18:44 +0100)]
Leave one monitor active when applying configurations
See https://github.com/phillipberndt/autorandr/pull/20
Phillip Berndt [Sat, 7 Mar 2015 17:45:20 +0000 (18:45 +0100)]
Accept empty lines in setup files
Phillip Berndt [Fri, 6 Mar 2015 08:45:55 +0000 (09:45 +0100)]
Explain why we enable outputs in pairs of two
See issue #21
Phillip Berndt [Mon, 23 Feb 2015 10:20:43 +0000 (11:20 +0100)]
Detect if xrandr fails completely
Xrandr 1.0.2 didn't output --verbose like output at all. This change
detects that and outputs an error, instead of producing an empty
configuration.
Phillip Berndt [Mon, 23 Feb 2015 10:20:26 +0000 (11:20 +0100)]
Enforce stable output order
This is useful for automated testing
Phillip Berndt [Mon, 23 Feb 2015 09:42:54 +0000 (10:42 +0100)]
Remember the last choice for competing configurations (with equal setups)
fixes #16
Phillip Berndt [Wed, 18 Feb 2015 07:02:18 +0000 (08:02 +0100)]
If disabling outputs failed, try to disable them together with the second xrandr call
My notbook complains when I remove it from its docking station that
RRSetScreenSize failed if I disable a screen. Issuing the whole xrandr
command in one single call works fine.
This is related to
f4cce4dc3928ba3f917208c31693abc807b1ff3c
Phillip Berndt [Tue, 17 Feb 2015 10:07:24 +0000 (11:07 +0100)]
Fix "transform" parsing
See related commit
376005b
Phillip Berndt [Tue, 17 Feb 2015 09:51:45 +0000 (10:51 +0100)]
Fix parsing of EDID
See bug #19.
Phillip Berndt [Wed, 11 Feb 2015 09:54:16 +0000 (10:54 +0100)]
Transformation matrices can contain negative indices
Phillip Berndt [Mon, 9 Feb 2015 07:24:25 +0000 (08:24 +0100)]
Follow XDG completely: Also load configurations from the system-wide directories
I doubt this will be used widely, but there clearly is a use-case for
multi-user or centrally administrated systems. Per-user profiles always
override system-wide profiles.
Phillip Berndt [Mon, 9 Feb 2015 07:24:10 +0000 (08:24 +0100)]
Updated help texts with XDG directory
Phillip Berndt [Mon, 9 Feb 2015 07:15:13 +0000 (08:15 +0100)]
Fixed bash-completion (Lacked an `else')
Benjamin Cremer [Fri, 6 Feb 2015 19:47:44 +0000 (20:47 +0100)]
Use XDG Base Directory Specification for config files
Phillip Berndt [Tue, 27 Jan 2015 07:30:30 +0000 (08:30 +0100)]
Python 3 issue in XRANDR_DEFAULTS
Phillip Berndt [Tue, 27 Jan 2015 07:25:04 +0000 (08:25 +0100)]
Removed legacy autorandr (see the legacy branch)
Phillip Berndt [Mon, 26 Jan 2015 06:48:06 +0000 (07:48 +0100)]
Log to stderr (Required to allow users to redirect --dry-run output)
Phillip Berndt [Mon, 26 Jan 2015 06:46:45 +0000 (07:46 +0100)]
Run xrandr disabling connected, but inactive outputs before any other xrandr commands
Related to bug #13
Phillip Berndt [Mon, 26 Jan 2015 06:45:48 +0000 (07:45 +0100)]
Python version: Fix detection of already loaded old setups with md5sum'ed EDID
Phillip Berndt [Mon, 26 Jan 2015 06:45:28 +0000 (07:45 +0100)]
Python version: Remove default values from existing configurations
Phillip Berndt [Fri, 23 Jan 2015 12:06:07 +0000 (13:06 +0100)]
Python version: xrandr < 1.3.1 does not report it's version even with -v
Phillip Berndt [Fri, 23 Jan 2015 10:14:21 +0000 (11:14 +0100)]
Python version: xrandr 1.2.0 didn't output a *current modeline, ignore the missing information
Phillip Berndt [Fri, 23 Jan 2015 06:54:04 +0000 (07:54 +0100)]
Do not fail if no profile directory exists yet
Rasmus Wriedt Larsen [Thu, 22 Jan 2015 20:50:05 +0000 (21:50 +0100)]
allow legacy autorandr to be off while connected
Rasmus Wriedt Larsen [Thu, 22 Jan 2015 14:29:08 +0000 (15:29 +0100)]
Keep outputs with edid when loading profiles
fixes #13
Phillip Berndt [Thu, 22 Jan 2015 13:28:27 +0000 (14:28 +0100)]
Add @RasmusWL as a contributor
Phillip Berndt [Thu, 22 Jan 2015 13:27:29 +0000 (14:27 +0100)]
Correctly handle connected, but unused screens.
bugs #13