]>
git.donarmstrong.com Git - deb_pkgs/autorandr.git/log
Phillip Berndt [Mon, 13 Apr 2020 11:29:50 +0000 (13:29 +0200)]
Fix unnassigned variable issue if one profile is detected
Fixes #190.
Phillip Berndt [Sat, 11 Apr 2020 12:14:53 +0000 (14:14 +0200)]
Handle negative gamma values
Fixes #188.
Phillip Berndt [Sat, 11 Apr 2020 12:11:31 +0000 (14:11 +0200)]
Sort approximate matches in detected profiles by quality of match
See #189
Vincent Bernat [Fri, 31 Jan 2020 09:25:35 +0000 (10:25 +0100)]
contrib: fix saved profile completion
martin f. krafft [Wed, 8 Jan 2020 22:15:45 +0000 (11:15 +1300)]
Fix small error
I am pretty sure this should be "docked" instead of "mobile"
Vincent Bernat [Thu, 16 Jan 2020 10:42:06 +0000 (11:42 +0100)]
Handle non-ASCII environment variable values
When a process has an UTF-8 character in its environment, autorandr
crashes with:
```
Unhandled exception ('utf-8' codec can't decode byte 0xab in position 0: invalid start byte). Please report this as a bug at https://github.com/phillipberndt/autorandr/issues.
Traceback (most recent call last):
File "./autorandr.py", line 1439, in <module>
exception_handled_main()
File "./autorandr.py", line 1423, in exception_handled_main
main(sys.argv)
File "./autorandr.py", line 1203, in main
dispatch_call_to_sessions([x for x in argv if x != "--batch"])
File "./autorandr.py", line 1110, in dispatch_call_to_sessions
for environ_entry in open(environ_file).read().split("\0"):
File "/usr/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 0: invalid start byte
```
Instead, we read the environment without decoding and convert to ASCII
explicitely. Any environment variable not decodable will just be
skipped.
Vincent Bernat [Fri, 31 Jan 2020 07:34:51 +0000 (08:34 +0100)]
contrib: zsh completion
Vincent Bernat [Thu, 16 Jan 2020 10:48:59 +0000 (11:48 +0100)]
Fork and exec using the current Python interpreter
When testing against various versions of Python by invoking autorandr
with an explicit Python interpreter, in batch mode, autorandr will
reexecute itself without specifying the Python interpreter. This
change makes sure it is reexecuted using the current Python
interpreter.
Phillip Berndt [Thu, 2 Jan 2020 17:06:25 +0000 (18:06 +0100)]
Merge pull request #176 from gardar/patch-1
Fix dash/underscore typo in makefile
gardar [Thu, 2 Jan 2020 17:04:49 +0000 (17:04 +0000)]
Fix dash/underscore typo in makefile
Phillip Berndt [Tue, 31 Dec 2019 10:43:50 +0000 (11:43 +0100)]
Fix two minor issues with the Makefile
Phillip Berndt [Tue, 31 Dec 2019 10:41:27 +0000 (11:41 +0100)]
Prefer X11 launcher (like srandr) over udev/systemd setup
See #162. The X11 launcher, that waits for randr events in X11 and runs
autorandr manually, proved to be more reliable than the setup using udev
and systemd. Make it the default.
Phillip Berndt [Tue, 31 Dec 2019 10:12:30 +0000 (11:12 +0100)]
Update README
Jordan Ephron [Mon, 23 Dec 2019 03:08:34 +0000 (19:08 -0800)]
Don't fail if xrandr reports negative gamma value
Mathis Raguin [Mon, 3 Jun 2019 13:57:44 +0000 (15:57 +0200)]
edit: rename var to found_top_left_monitor
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Mathis Raguin [Mon, 3 Jun 2019 13:53:37 +0000 (15:53 +0200)]
fix: rework to match phillipberndt algorithm
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Mathis Raguin [Tue, 28 May 2019 20:08:25 +0000 (22:08 +0200)]
fix: move all output at once as they are enabled
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Mathis Raguin [Tue, 28 May 2019 19:53:39 +0000 (21:53 +0200)]
fix: output position if xrandr offsetted them
Signed-off-by: Mathis Raguin <mathis@cri.epita.fr>
Phillip Berndt [Thu, 19 Dec 2019 11:45:43 +0000 (12:45 +0100)]
Version bump: 1.9
Phillip Berndt [Thu, 14 Nov 2019 07:03:34 +0000 (08:03 +0100)]
Merge pull request #171 from Vladimir-csp/patch-2
Further fixes
Vladimir-csp [Wed, 13 Nov 2019 21:49:33 +0000 (00:49 +0300)]
classes
Vladimir-csp [Wed, 13 Nov 2019 21:48:46 +0000 (00:48 +0300)]
egrep is deprecated according to manpage
also do classes as in manpage, no double escapes needed
Vladimir-csp [Wed, 13 Nov 2019 21:42:26 +0000 (00:42 +0300)]
space class and double escapes in unit file
Vladimir-csp [Wed, 13 Nov 2019 21:41:38 +0000 (00:41 +0300)]
\s does not work inside brackets
Phillip Berndt [Wed, 13 Nov 2019 21:22:20 +0000 (22:22 +0100)]
Merge pull request #170 from Vladimir-csp/patch-2
regexp and shell
Vladimir-csp [Wed, 13 Nov 2019 19:40:27 +0000 (22:40 +0300)]
account for occasional dash prefix, use sh
Vladimir-csp [Wed, 13 Nov 2019 19:37:13 +0000 (22:37 +0300)]
account for occasional dash prefix, use sh
Phillip Berndt [Sun, 10 Nov 2019 21:27:47 +0000 (22:27 +0100)]
Merge pull request #169 from chmduquesne/closed_lid_treated_as_disconnected
Treating a closed lid as disconnected
Christophe-Marie Duquesne [Sun, 10 Nov 2019 16:37:29 +0000 (17:37 +0100)]
Improvement of the regex performance for lid monitoring
This version of the regex avoids reading entire lines from the libinput
output, and concentrates on the event field.
Christophe-Marie Duquesne [Sun, 10 Nov 2019 16:26:31 +0000 (17:26 +0100)]
Adding Christophe-Marie Duquesne to the contributors
Christophe-Marie Duquesne [Sun, 10 Nov 2019 16:23:59 +0000 (17:23 +0100)]
Only count a closed lid as disconnected if there are other connected outputs
As per @Vladimir-csp's advice
Christophe-Marie Duquesne [Mon, 4 Nov 2019 13:32:36 +0000 (14:32 +0100)]
adding a lid listener xdg/autostart service
Christophe-Marie Duquesne [Sun, 3 Nov 2019 22:59:29 +0000 (23:59 +0100)]
Adding a systemd script to monitor lid changes
Christophe-Marie Duquesne [Sun, 3 Nov 2019 22:27:39 +0000 (23:27 +0100)]
line buffering
Christophe-Marie Duquesne [Fri, 1 Nov 2019 13:19:41 +0000 (14:19 +0100)]
supplementary script to listen to lid events
Christophe-Marie Duquesne [Thu, 31 Oct 2019 23:46:19 +0000 (00:46 +0100)]
Treating a closed lid as disconnected
Patrick Klein [Sat, 5 Oct 2019 20:52:40 +0000 (22:52 +0200)]
Removed isinstance check and redundant path calculation.
Patrick Klein [Sat, 5 Oct 2019 16:33:51 +0000 (18:33 +0200)]
Do not overwrite exiting config files unless --force is passed.
Pierre Bondoerffer [Tue, 27 Aug 2019 15:02:34 +0000 (17:02 +0200)]
Fix typo
Hugo Osvaldo Barrera [Fri, 23 Aug 2019 11:35:26 +0000 (13:35 +0200)]
Typo
Phillip Berndt [Fri, 16 Aug 2019 14:07:51 +0000 (16:07 +0200)]
Don't fail hard in get_fb_dimensions if a mode isn't WWWxHHH
See #159
Phillip Berndt [Tue, 28 May 2019 07:08:32 +0000 (09:08 +0200)]
Merge pull request #154 from maciex/msitarz/issues/build_rpm_for_fedora_30
Improved RPM spec with latest version
Maciej Sitarz [Thu, 23 May 2019 12:03:48 +0000 (14:03 +0200)]
Improved .spec file for RPM builds
Maciej Sitarz [Wed, 22 May 2019 13:28:20 +0000 (15:28 +0200)]
Merge remote-tracking branch 'upstream/master'
Phillip Berndt [Sat, 4 May 2019 15:49:19 +0000 (17:49 +0200)]
Merge pull request #145 from theperfidious/master
Add crtc value in the config file
Phillip Berndt [Sun, 24 Mar 2019 19:50:33 +0000 (20:50 +0100)]
Merge pull request #146 from Ma27/fix-bashcomp-with-zsh
Work around problems with autorandr's completion when using `bashcompinit`
Phillip Berndt [Sun, 24 Mar 2019 19:44:53 +0000 (20:44 +0100)]
Record latest commit series in Readme
Phillip Berndt [Sun, 24 Mar 2019 19:42:26 +0000 (20:42 +0100)]
Refuse to save profiles that don't make sense (See #128)
Phillip Berndt [Sun, 24 Mar 2019 19:42:02 +0000 (20:42 +0100)]
Make mode parsing more robust for broken cases
Phillip Berndt [Sun, 24 Mar 2019 19:41:44 +0000 (20:41 +0100)]
Revert disconnected/no-mode change #139
Maximilian Bosch [Thu, 21 Mar 2019 23:49:42 +0000 (00:49 +0100)]
Work around problems with autorandr's completion when using `bashcompinit`
On ZSH the easiest approach to get bash completions running is to use
`bashcompinit`. Unfortunately it seems as there are slight differences
between ZSH and bash which cause problems when using that feature.
I had to change the following things:
* Replace the `-n` check with a length check of the AR directory array:
ZSH adds an empty string at first if no system directory for autorandr
was found. Checking if there's at least a single element works around
this problem.
* Silence errors from `find`. The empty string at first causes a
`directory not found error` during the completion.
It can be tested on ZSH after running the following command:
```
$ autoload -U +X bashcompinit && bashcompinit && source ./contrib/bash_completion/autorandr
```
Tested with zsh 5.7.1 (x86_64-pc-linux-gnu).
theperfidious [Thu, 21 Mar 2019 07:31:03 +0000 (08:31 +0100)]
Add crtc value in the config file
Phillip Berndt [Mon, 18 Mar 2019 20:14:41 +0000 (21:14 +0100)]
Version bump: 1.8.1
Phillip Berndt [Mon, 18 Mar 2019 20:13:22 +0000 (21:13 +0100)]
Remove mandb call (See #144)
Phillip Berndt [Sat, 16 Mar 2019 14:41:24 +0000 (15:41 +0100)]
Version bump: autorandr-1.8
Phillip Berndt [Sun, 10 Mar 2019 12:57:32 +0000 (13:57 +0100)]
Improve error message if a profile configures an output that doesn't exist (See #142)
Phillip Berndt [Sun, 17 Feb 2019 12:16:58 +0000 (13:16 +0100)]
Follow up fixes for #139/#128
Phillip Berndt [Sun, 17 Feb 2019 12:08:26 +0000 (13:08 +0100)]
Add today's merges to README
Phillip Berndt [Sun, 17 Feb 2019 11:51:29 +0000 (12:51 +0100)]
Merge pull request #133 from somers-all-the-time/manpage
Manpage
Phillip Berndt [Sun, 17 Feb 2019 11:50:55 +0000 (12:50 +0100)]
Merge branch 'master' into manpage
Phillip Berndt [Sun, 17 Feb 2019 11:49:10 +0000 (12:49 +0100)]
Merge pull request #138 from jschwab/fix-panning-bug
Fix case in which x and y are not specified in panning
Phillip Berndt [Sun, 17 Feb 2019 11:48:15 +0000 (12:48 +0100)]
Merge pull request #139 from joseph-jones/master
Fix check for disconnected monitors (fixes #128)
Phillip Berndt [Sun, 17 Feb 2019 11:45:07 +0000 (12:45 +0100)]
Merge pull request #127 from rliou92/rliou92
Add autorandr_launcher
Josiah Schwab [Sat, 9 Feb 2019 19:42:45 +0000 (11:42 -0800)]
Fix case in which x and y are not specified in panning
The regular expression that extracts the panning values has optional
matches for the named groups x and y.
Previously, the case in which there is no match for x and y looks to
have been attempted to be handled by doing
detail.get("x", "0")
This is a bug. The default argument to dict.get is only returned when
the key is not a member of the dictionary. However, when a group
fails to participate in the regex match, the dict does have a key.
The default value of this default key is None. This would lead to an
error when the get returned None and None was then cast to an integer.
This resolves the issue by explicitly setting the groupdict default to
be "0", which is appropriate for the two groups (x and y) that may
optionally participate in the match.
Joseph M Jones [Sat, 9 Feb 2019 19:40:07 +0000 (19:40 +0000)]
Fix check for disconnected monitors (fixes #128)
Ricky Liou [Sun, 3 Feb 2019 01:15:24 +0000 (17:15 -0800)]
Add --default default
Added in order to behave the same way as the systemd service
Ricky Liou [Sun, 3 Feb 2019 01:08:50 +0000 (17:08 -0800)]
Merge branch 'master' of https://github.com/phillipberndt/autorandr into rliou92
somers-all-the-time [Tue, 29 Jan 2019 17:23:55 +0000 (11:23 -0600)]
Changed file paths to use relative names in manpage Makefile target
Phillip Berndt [Mon, 28 Jan 2019 21:15:54 +0000 (22:15 +0100)]
Merge pull request #136 from jschwab/update-arch-package-link
Update Arch link in README
Josiah Schwab [Mon, 28 Jan 2019 16:39:50 +0000 (08:39 -0800)]
Update Arch link in README
Since 2018-07-22, autorandr has been a part of the official community
repository on Arch.
somers-all-the-time [Sat, 19 Jan 2019 19:38:25 +0000 (13:38 -0600)]
Added target manpage to Makefile
somers-all-the-time [Thu, 17 Jan 2019 08:55:17 +0000 (02:55 -0600)]
Wrote initial man page
somers-all-the-time [Thu, 17 Jan 2019 04:10:12 +0000 (22:10 -0600)]
Initial start to man page
Ricky Liou [Sun, 4 Nov 2018 20:15:59 +0000 (12:15 -0800)]
Fix help str to match program name
Ricky Liou [Sun, 4 Nov 2018 19:48:18 +0000 (11:48 -0800)]
Add source code for launcher
Ricky Liou [Sun, 4 Nov 2018 19:45:00 +0000 (11:45 -0800)]
Add launcher commands to Makefile
Phillip Berndt [Fri, 19 Oct 2018 13:40:42 +0000 (15:40 +0200)]
Merge pull request #121 from Waester/dev-pr
Partially support modes with non-standard names
Phillip Berndt [Fri, 19 Oct 2018 06:27:19 +0000 (08:27 +0200)]
More generic approach for non-standard mode names.
Co-Authored-By: Waester <alex@devho.se>
Waester [Thu, 11 Oct 2018 13:55:48 +0000 (15:55 +0200)]
Partially support modes with non-standard names
Phillip Berndt [Wed, 3 Oct 2018 13:11:42 +0000 (15:11 +0200)]
Merge pull request #120 from krinistof/patch-2
Add xbps package of Void Linux in README.md
IFA [Wed, 3 Oct 2018 12:40:17 +0000 (14:40 +0200)]
Add xbps package of Void Linux in README.md
Maciej Sitarz [Fri, 28 Sep 2018 08:32:07 +0000 (10:32 +0200)]
Update RPM spec file to stable v1.7
Maciej Sitarz [Fri, 28 Sep 2018 08:31:20 +0000 (10:31 +0200)]
Merge remote-tracking branch 'upstream/master'
Phillip Berndt [Tue, 25 Sep 2018 17:20:42 +0000 (19:20 +0200)]
Version bump: autorandr-1.7
Phillip Berndt [Tue, 25 Sep 2018 17:12:35 +0000 (19:12 +0200)]
Merge pull request #117 from Janno/patch-1
Consider screen rotation in `get_fb_dimensions`
Jan-Oliver Kaiser [Sat, 22 Sep 2018 13:18:17 +0000 (15:18 +0200)]
Add Jan-Oliver Kaiser to list of contributors.
Phillip Berndt [Thu, 20 Sep 2018 20:05:16 +0000 (22:05 +0200)]
Merge pull request #118 from patzm/patch-1
typo in readme / changelog
Martin Patz [Sun, 9 Sep 2018 20:15:39 +0000 (22:15 +0200)]
typo in readme / changelog
Jan-Oliver Kaiser [Mon, 27 Aug 2018 11:14:55 +0000 (13:14 +0200)]
Consider screen rotation in `get_fb_dimensions`
This should fix phillipberndt/autorandr#116.
Phillip Berndt [Fri, 27 Jul 2018 12:55:46 +0000 (14:55 +0200)]
Merge pull request #114 from maciex/issue/RPM_spec_systemd_fix
Proper placement of systemd service file
Maciej Sitarz [Mon, 23 Jul 2018 12:26:04 +0000 (14:26 +0200)]
Fix placement of systemd service file
Updated to latest version
Phillip Berndt [Fri, 20 Jul 2018 06:47:39 +0000 (08:47 +0200)]
Version bump: autorandr-1.6
Phillip Berndt [Fri, 20 Jul 2018 06:46:24 +0000 (08:46 +0200)]
Update README
Phillip Berndt [Fri, 20 Jul 2018 06:43:40 +0000 (08:43 +0200)]
Merge pull request #113 from Kazy/master
Fix AttributeError exception in is_equal_configuration
Jocelyn Boullier [Thu, 19 Jul 2018 15:14:43 +0000 (17:14 +0200)]
Fix AttributeError exception in is_equal_configuration
Maciej Sitarz [Thu, 19 Jul 2018 13:50:29 +0000 (15:50 +0200)]
Merge branch 'rpm_build_fix_v1.5.1'
Maciej Sitarz [Thu, 19 Jul 2018 13:50:16 +0000 (15:50 +0200)]
Merge branch 'master' of github.com:maciex/autorandr
Maciej Sitarz [Thu, 19 Jul 2018 13:40:28 +0000 (15:40 +0200)]
Set systemd dependency to get it's macros
Maciej Sitarz [Thu, 19 Jul 2018 13:03:53 +0000 (15:03 +0200)]
Rpm build fix v1.5.1 (#1)
* Fix RPM Build Error: File must begin with '/'
* Update build version
Maciej Sitarz [Thu, 19 Jul 2018 12:46:17 +0000 (14:46 +0200)]
Update build version