]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/log
deb_pkgs/autorandr.git
2 years agoNew upstream version 1.12.1 upstream/1.12.1
Don Armstrong [Fri, 22 Apr 2022 23:53:21 +0000 (16:53 -0700)]
New upstream version 1.12.1

2 years agoFix modified dictionary iteration as 1.12.1 1.12.1
Phillip Berndt [Wed, 22 Dec 2021 12:25:35 +0000 (13:25 +0100)]
Fix modified dictionary iteration as 1.12.1

See #273

2 years agoUpdate versions to 1.12 everywhere 1.12
Phillip Berndt [Thu, 16 Dec 2021 10:26:56 +0000 (11:26 +0100)]
Update versions to 1.12 everywhere

2 years agoUpdate changelog with #204
Phillip Berndt [Thu, 16 Dec 2021 10:16:11 +0000 (11:16 +0100)]
Update changelog with #204

2 years agoPrefix custom properties with x- and ignore unknown ones
Phillip Berndt [Thu, 16 Dec 2021 10:14:23 +0000 (11:14 +0100)]
Prefix custom properties with x- and ignore unknown ones

2 years agoImprove dry-run output for arguments with whitespace/shell characters
Phillip Berndt [Thu, 16 Dec 2021 10:13:56 +0000 (11:13 +0100)]
Improve dry-run output for arguments with whitespace/shell characters

2 years agoMerge broadcast_rgb feature (#204)
Phillip Berndt [Thu, 16 Dec 2021 09:59:16 +0000 (10:59 +0100)]
Merge broadcast_rgb feature (#204)

2 years agoMerge pull request #248 from spiriou/master
Phillip Berndt [Thu, 16 Dec 2021 09:41:36 +0000 (10:41 +0100)]
Merge pull request #248 from spiriou/master

Add --match-edid option to match profiles based on edid

2 years agoMerge branch 'master' into master
Phillip Berndt [Thu, 16 Dec 2021 09:39:52 +0000 (10:39 +0100)]
Merge branch 'master' into master

2 years agoAdd new options to completion files
Phillip Berndt [Thu, 16 Dec 2021 09:36:28 +0000 (10:36 +0100)]
Add new options to completion files

2 years agoUpdate manpage with new options
Phillip Berndt [Thu, 16 Dec 2021 09:31:56 +0000 (10:31 +0100)]
Update manpage with new options

2 years agoDocument --cycle
Phillip Berndt [Thu, 16 Dec 2021 09:16:48 +0000 (10:16 +0100)]
Document --cycle

2 years agoFix typo in --list changelog
Phillip Berndt [Thu, 16 Dec 2021 09:16:38 +0000 (10:16 +0100)]
Fix typo in --list changelog

2 years agoFix mtime updating for --cycle
Phillip Berndt [Thu, 16 Dec 2021 09:14:19 +0000 (10:14 +0100)]
Fix mtime updating for --cycle

mtime updating resulted in --cycle always switching between the two most
recently used profiles. Invert the sort order if --cycle is in use to
mitigate.

See #244

2 years agoMerge --cycle option (needs work)
Phillip Berndt [Thu, 16 Dec 2021 08:52:19 +0000 (09:52 +0100)]
Merge --cycle option (needs work)

2 years agoFix Typo: ModuleNotFound → ModuleNotFoundError
Phillip Berndt [Thu, 16 Dec 2021 08:42:36 +0000 (09:42 +0100)]
Fix Typo: ModuleNotFound → ModuleNotFoundError

This fixes a typo introduced in #267

2 years agoSwitch default Python interpreter to Python 3
Phillip Berndt [Thu, 16 Dec 2021 08:41:22 +0000 (09:41 +0100)]
Switch default Python interpreter to Python 3

2 years ago--list option: list configuration
Johannes Lange [Mon, 11 Jan 2021 16:47:03 +0000 (17:47 +0100)]
--list option: list configuration

- lists (all) configurations
- can be used with --curent and --detected
- in contrast to no arguments at all, it does not print decorations like "(detected)", "(current)", ...

2 years agoElaborate on settings.ini usage and format
Kyle Kneitinger [Wed, 9 Dec 2020 20:08:32 +0000 (12:08 -0800)]
Elaborate on settings.ini usage and format

2 years agoReplace deprecated distutils with packaging.
Peter Kotvan [Fri, 12 Nov 2021 08:04:33 +0000 (09:04 +0100)]
Replace deprecated distutils with packaging.

This is a fix for #266, a DeprecationWarning about distutils package.

2 years agoUpdate rpm spec with one used in Fedora.
Peter Kotvan [Fri, 12 Nov 2021 11:02:20 +0000 (12:02 +0100)]
Update rpm spec with one used in Fedora.

2 years agoExplain where files are saved
Kevin Lyda [Sun, 11 Jul 2021 13:48:05 +0000 (14:48 +0100)]
Explain where files are saved

For people who manage their home directories with things like vcsh or
other versioning system, it's good to know where configuration files
live.  This CL adds a FILES section to the man page.

2 years agoMatch whitespace explicitly in property name
Luke Arms [Thu, 1 Jul 2021 04:34:56 +0000 (14:34 +1000)]
Match whitespace explicitly in property name

Also:
- Include additional properties

2 years agoImprove readability
Luke Arms [Wed, 30 Jun 2021 23:05:01 +0000 (09:05 +1000)]
Improve readability

2 years agoSave and restore dynamic properties
Luke Arms [Fri, 15 May 2020 03:38:47 +0000 (13:38 +1000)]
Save and restore dynamic properties

2 years agoautorandr.service: Use StartLimitIntervalSec
Florian Schmaus [Fri, 25 Jun 2021 07:46:09 +0000 (09:46 +0200)]
autorandr.service: Use StartLimitIntervalSec

It's time that we use StartLimitIntervalSec as even Debian stable has
a recent enough systemd version.

2 years agoUpdated spec file
Jerzy Drozdz [Mon, 7 Jun 2021 11:54:48 +0000 (13:54 +0200)]
Updated spec file

2 years agoAdd an option to match profiles based on edid
Simon Piriou [Mon, 17 May 2021 09:52:46 +0000 (11:52 +0200)]
Add an option to match profiles based on edid

In some cases the display names change so the profile matching fails.
This commit introduces the "--match-edid" option, that allows one to
specify that the profiles matching should be done based on display edid.

This is done by updating the profiles after loading, based on current
display name/edid mapping requested using xrandr.

3 years agoRefactor: merge --change and --cycle handling
Mikel Ward [Tue, 9 Mar 2021 16:18:54 +0000 (08:18 -0800)]
Refactor: merge --change and --cycle handling

3 years agoAdd --cycle, cycles between detected profiles
Mikel Ward [Tue, 9 Mar 2021 15:54:34 +0000 (07:54 -0800)]
Add --cycle, cycles between detected profiles

Fixes #243

3 years agoReword README regarding environment variables
noughtnaut [Mon, 30 Nov 2020 23:21:05 +0000 (00:21 +0100)]
Reword README regarding environment variables

This clarifies the usage somewhat, without needing changes to existing
functionality. I may look into reworking the variables, but until then
this will be an improvement. That is to say, this is meant to NOT
resolve issue #230.

- Add section heading for variables
- Move `predetect`/`sleep` example up above new section
- Add example usage of variable, and explain the oddity with 'current'
profile during preswitch.

3 years agoNew upstream version 1.11 upstream/1.11
Don Armstrong [Wed, 25 Nov 2020 17:54:06 +0000 (09:54 -0800)]
New upstream version 1.11

3 years agoAdd SlackBuild to installation options
Julian Grinblat [Sun, 15 Nov 2020 16:23:30 +0000 (01:23 +0900)]
Add SlackBuild to installation options

3 years agoRelease 1.11 1.11
Phillip Berndt [Sun, 15 Nov 2020 15:32:28 +0000 (16:32 +0100)]
Release 1.11

This updates the readme with changes since 1.10.1 and releases 1.11.
This version primarily brings small bugfixes, only change warranting
minor version bump is that batch mode now assigns user groups.

Fixes #227.

3 years agoMake setgroups() behaviour Python 2 compatible
Phillip Berndt [Fri, 9 Oct 2020 14:16:14 +0000 (16:16 +0200)]
Make setgroups() behaviour Python 2 compatible

This fixes backwards compatibility of the change

3 years agoIn batch mode, set groups to group membership of target user.
Anthony Eadicicco [Tue, 6 Oct 2020 18:36:29 +0000 (14:36 -0400)]
In batch mode, set groups to group membership of target user.

Previously, group list was cleared during privilege de-escalation. This causes
profiles scripts to be run as the local user with an empty group list. This can
cause issues when, eg, the 'video' group is required for backlight control,
and the user is trying to invoke xbacklight from postswitch.sh.

3 years agoChange os.exit to sys.exit
Thomas de Queiroz Barros [Mon, 24 Aug 2020 17:38:51 +0000 (14:38 -0300)]
Change os.exit to sys.exit

os.exit is not a function in python 3 or 2

3 years agoNew upstream version 1.10.1 upstream/1.10.1
Don Armstrong [Mon, 24 Aug 2020 00:47:40 +0000 (17:47 -0700)]
New upstream version 1.10.1

3 years agoFixed python2 build problem
Jerzy Drozdz [Mon, 8 Jun 2020 14:42:49 +0000 (16:42 +0200)]
Fixed python2 build problem

3 years agorpm spec file update to 1.10.1
Jerzy Drozdz [Mon, 8 Jun 2020 14:36:25 +0000 (16:36 +0200)]
rpm spec file update to 1.10.1

3 years agoAdd a note on udev usage with NVidia cards
Julian Grinblat [Mon, 22 Jun 2020 22:13:15 +0000 (07:13 +0900)]
Add a note on udev usage with NVidia cards

3 years agosys.executable can be None too
Julian Grinblat [Tue, 23 Jun 2020 09:09:53 +0000 (18:09 +0900)]
sys.executable can be None too

3 years agoHandle empty sys.executable
Julian Grinblat [Tue, 23 Jun 2020 06:15:17 +0000 (15:15 +0900)]
Handle empty sys.executable

4 years agoPoint release 1.10.1 1.10.1
Phillip Berndt [Mon, 4 May 2020 07:23:05 +0000 (09:23 +0200)]
Point release 1.10.1

This reverts making autorandr-launcher the default and fixes the most
obvious issues. See #195 for why.

4 years agoFix warning during launcher compilation
Phillip Berndt [Mon, 4 May 2020 07:20:49 +0000 (09:20 +0200)]
Fix warning during launcher compilation

4 years agoClean up autorandr-launcher build process
Phillip Berndt [Mon, 4 May 2020 07:20:25 +0000 (09:20 +0200)]
Clean up autorandr-launcher build process

4 years agoUndo making the launcher the default
Phillip Berndt [Mon, 4 May 2020 07:19:53 +0000 (09:19 +0200)]
Undo making the launcher the default

See #195

4 years agoAdjust launcher autostart file to start in daemon mode
Phillip Berndt [Mon, 4 May 2020 06:57:33 +0000 (08:57 +0200)]
Adjust launcher autostart file to start in daemon mode

This is part of the fix for #199.

4 years agoFix launcher crashing once X session exits
Phillip Berndt [Mon, 4 May 2020 06:56:48 +0000 (08:56 +0200)]
Fix launcher crashing once X session exits

This is part of the fix for #199.

4 years agoNew upstream version 1.10 upstream/1.10
Don Armstrong [Sat, 25 Apr 2020 23:39:21 +0000 (16:39 -0700)]
New upstream version 1.10

4 years agoBump version to 1.10 1.10
Phillip Berndt [Sat, 25 Apr 2020 07:49:51 +0000 (09:49 +0200)]
Bump version to 1.10

Changes since 1.9:

* *2020-04-23* Fix hook script execution order to match description from readme
* *2020-04-11* Handle negative gamma values (fixes #188)
* *2020-04-11* Sort approximate matches in detected profiles by quality of match
* *2020-01-31* Handle non-ASCII environment variables (fixes #180)
* *2019-12-31* Fix output positioning if the top-left output is not the first
* *2019-12-31* Accept negative gamma values (and interpret them as 0)
* *2019-12-31* Prefer the X11 launcher over systemd/udev configuration

Fixes #191

4 years agoAdd script order change to README
Phillip Berndt [Thu, 23 Apr 2020 14:02:34 +0000 (16:02 +0200)]
Add script order change to README

4 years agoSearch profile directory first for hook scripts
Phillip Berndt [Thu, 23 Apr 2020 13:39:42 +0000 (15:39 +0200)]
Search profile directory first for hook scripts

See #194.

4 years agoMention #180 in the README
Phillip Berndt [Mon, 13 Apr 2020 11:33:30 +0000 (13:33 +0200)]
Mention #180 in the README

4 years agoFix unnassigned variable issue if one profile is detected
Phillip Berndt [Mon, 13 Apr 2020 11:29:50 +0000 (13:29 +0200)]
Fix unnassigned variable issue if one profile is detected

Fixes #190.

4 years agoHandle negative gamma values
Phillip Berndt [Sat, 11 Apr 2020 12:14:53 +0000 (14:14 +0200)]
Handle negative gamma values

Fixes #188.

4 years agoSort approximate matches in detected profiles by quality of match
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

4 years agocontrib: fix saved profile completion
Vincent Bernat [Fri, 31 Jan 2020 09:25:35 +0000 (10:25 +0100)]
contrib: fix saved profile completion

4 years agoFix small error
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"

4 years agoHandle non-ASCII environment variable values
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.

4 years agocontrib: zsh completion
Vincent Bernat [Fri, 31 Jan 2020 07:34:51 +0000 (08:34 +0100)]
contrib: zsh completion

4 years agoFork and exec using the current Python interpreter
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.

4 years agoMerge pull request #176 from gardar/patch-1
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

4 years agoFix dash/underscore typo in makefile
gardar [Thu, 2 Jan 2020 17:04:49 +0000 (17:04 +0000)]
Fix dash/underscore typo in makefile

4 years agoFix two minor issues with the Makefile
Phillip Berndt [Tue, 31 Dec 2019 10:43:50 +0000 (11:43 +0100)]
Fix two minor issues with the Makefile

4 years agoPrefer X11 launcher (like srandr) over udev/systemd setup
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.

4 years agoUpdate README
Phillip Berndt [Tue, 31 Dec 2019 10:12:30 +0000 (11:12 +0100)]
Update README

4 years agoDon't fail if xrandr reports negative gamma value
Jordan Ephron [Mon, 23 Dec 2019 03:08:34 +0000 (19:08 -0800)]
Don't fail if xrandr reports negative gamma value

4 years agoedit: rename var to found_top_left_monitor
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>
4 years agofix: rework to match phillipberndt algorithm
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>
4 years agofix: move all output at once as they are enabled
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>
4 years agofix: output position if xrandr offsetted them
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>
4 years agoVersion bump: 1.9 1.9
Phillip Berndt [Thu, 19 Dec 2019 11:45:43 +0000 (12:45 +0100)]
Version bump: 1.9

4 years agoMerge pull request #171 from Vladimir-csp/patch-2
Phillip Berndt [Thu, 14 Nov 2019 07:03:34 +0000 (08:03 +0100)]
Merge pull request #171 from Vladimir-csp/patch-2

Further fixes

4 years agoclasses
Vladimir-csp [Wed, 13 Nov 2019 21:49:33 +0000 (00:49 +0300)]
classes

4 years agoegrep is deprecated according to manpage
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

4 years agospace class and double escapes in unit file
Vladimir-csp [Wed, 13 Nov 2019 21:42:26 +0000 (00:42 +0300)]
space class and double escapes in unit file

4 years ago\s does not work inside brackets
Vladimir-csp [Wed, 13 Nov 2019 21:41:38 +0000 (00:41 +0300)]
\s does not work inside brackets

4 years agoMerge pull request #170 from Vladimir-csp/patch-2
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

4 years agoaccount for occasional dash prefix, use sh
Vladimir-csp [Wed, 13 Nov 2019 19:40:27 +0000 (22:40 +0300)]
account for occasional dash prefix, use sh

4 years agoaccount 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

4 years agoMerge pull request #169 from chmduquesne/closed_lid_treated_as_disconnected
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

4 years agoImprovement of the regex performance for lid monitoring
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.

4 years agoAdding Christophe-Marie Duquesne to the contributors
Christophe-Marie Duquesne [Sun, 10 Nov 2019 16:26:31 +0000 (17:26 +0100)]
Adding Christophe-Marie Duquesne to the contributors

4 years agoOnly count a closed lid as disconnected if there are other connected outputs
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

4 years agoadding a lid listener xdg/autostart service
Christophe-Marie Duquesne [Mon, 4 Nov 2019 13:32:36 +0000 (14:32 +0100)]
adding a lid listener xdg/autostart service

4 years agoAdding a systemd script to monitor lid changes
Christophe-Marie Duquesne [Sun, 3 Nov 2019 22:59:29 +0000 (23:59 +0100)]
Adding a systemd script to monitor lid changes

4 years agoline buffering
Christophe-Marie Duquesne [Sun, 3 Nov 2019 22:27:39 +0000 (23:27 +0100)]
line buffering

4 years agosupplementary script to listen to lid events
Christophe-Marie Duquesne [Fri, 1 Nov 2019 13:19:41 +0000 (14:19 +0100)]
supplementary script to listen to lid events

4 years agoTreating a closed lid as disconnected
Christophe-Marie Duquesne [Thu, 31 Oct 2019 23:46:19 +0000 (00:46 +0100)]
Treating a closed lid as disconnected

4 years agoRemoved isinstance check and redundant path calculation.
Patrick Klein [Sat, 5 Oct 2019 20:52:40 +0000 (22:52 +0200)]
Removed isinstance check and redundant path calculation.

4 years agoDo not overwrite exiting config files unless --force is passed.
Patrick Klein [Sat, 5 Oct 2019 16:33:51 +0000 (18:33 +0200)]
Do not overwrite exiting config files unless --force is passed.

4 years agoFix typo
Pierre Bondoerffer [Tue, 27 Aug 2019 15:02:34 +0000 (17:02 +0200)]
Fix typo

4 years agoTypo
Hugo Osvaldo Barrera [Fri, 23 Aug 2019 11:35:26 +0000 (13:35 +0200)]
Typo

4 years agoDon't fail hard in get_fb_dimensions if a mode isn't WWWxHHH
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

4 years agoMerge pull request #154 from maciex/msitarz/issues/build_rpm_for_fedora_30
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

4 years agoImproved .spec file for RPM builds
Maciej Sitarz [Thu, 23 May 2019 12:03:48 +0000 (14:03 +0200)]
Improved .spec file for RPM builds

4 years agoMerge remote-tracking branch 'upstream/master'
Maciej Sitarz [Wed, 22 May 2019 13:28:20 +0000 (15:28 +0200)]
Merge remote-tracking branch 'upstream/master'

5 years agoMerge pull request #145 from theperfidious/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

5 years agoMerge pull request #146 from Ma27/fix-bashcomp-with-zsh
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`