Christophe-Marie Duquesne
7a3320d07b
Only count a closed lid as disconnected if there are other connected outputs
...
As per @Vladimir-csp's advice
2019-11-10 17:23:59 +01:00
Christophe-Marie Duquesne
f5f2f52dba
Treating a closed lid as disconnected
2019-11-01 00:46:19 +01:00
Patrick Klein
1b5edd4bf0
Removed isinstance check and redundant path calculation.
2019-10-24 16:15:50 +02:00
Patrick Klein
5d205c1ccb
Do not overwrite exiting config files unless --force is passed.
2019-10-24 16:15:50 +02:00
Phillip Berndt
fa11792a11
Don't fail hard in get_fb_dimensions if a mode isn't WWWxHHH
...
See #159
2019-08-16 16:07:51 +02:00
Phillip Berndt
d3f9f80ed0
Merge pull request #145 from theperfidious/master
...
Add crtc value in the config file
2019-05-04 17:49:19 +02:00
Phillip Berndt
075ea222dc
Refuse to save profiles that don't make sense (See #128 )
2019-03-24 20:42:26 +01:00
Phillip Berndt
38c65b12f1
Make mode parsing more robust for broken cases
2019-03-24 20:42:02 +01:00
Phillip Berndt
4af13f0a62
Revert disconnected/no-mode change #139
2019-03-24 20:41:44 +01:00
theperfidious
176ce3bc19
Add crtc value in the config file
2019-03-21 08:31:03 +01:00
Phillip Berndt
7fda58e351
Version bump: 1.8.1
2019-03-18 21:14:41 +01:00
Phillip Berndt
d8cb50aff3
Version bump: autorandr-1.8
2019-03-16 15:41:24 +01:00
Phillip Berndt
9929130fe5
Improve error message if a profile configures an output that doesn't exist (See #142 )
2019-03-10 13:59:43 +01:00
Phillip Berndt
b484c0ea9c
Follow up fixes for #139/#128
2019-02-17 13:16:58 +01:00
Phillip Berndt
9255c2f705
Merge pull request #138 from jschwab/fix-panning-bug
...
Fix case in which x and y are not specified in panning
2019-02-17 12:49:10 +01:00
Josiah Schwab
b5abba4411
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.
2019-02-09 11:51:08 -08:00
Joseph M Jones
a64db8d126
Fix check for disconnected monitors ( fixes #128 )
2019-02-09 19:43:55 +00:00
Phillip Berndt
be8a6e7661
More generic approach for non-standard mode names.
...
Co-Authored-By: Waester <alex@devho.se>
2018-10-19 08:27:19 +02:00
Waester
3b6bb6b6f1
Partially support modes with non-standard names
2018-10-12 09:28:47 +02:00
Phillip Berndt
d1743d00b1
Version bump: autorandr-1.7
2018-09-25 19:20:42 +02:00
Jan-Oliver Kaiser
1a48d584fe
Consider screen rotation in get_fb_dimensions
...
This should fix phillipberndt/autorandr#116 .
2018-08-27 13:14:55 +02:00
Phillip Berndt
fa2080a851
Version bump: autorandr-1.6
2018-07-20 08:47:39 +02:00
Jocelyn Boullier
d536223f8d
Fix AttributeError exception in is_equal_configuration
2018-07-19 17:14:43 +02:00
Brice Waegeneire
7086c63753
AUTORANDR_MONITORS only contains current monitors
...
Signed-off-by: Brice Waegeneire <brice.wge@gmail.com>
2018-07-17 13:28:57 +02:00
Phillip Berndt
59e50efac1
Bugfix: Fix is_equal_configuration() "off" comparison
2018-07-11 09:05:20 +02:00
Phillip Berndt
71644199c8
Consider configurations equal only if no additional outputs are enabled
...
Before, if 3 outputs were enabled, autorandr would consider a
configuration which had only 2 of those "current". Fix this.
2018-06-29 09:14:58 +02:00
Phillip Berndt
6511bf29f9
Bugfix for #106 and add to changelog
2018-04-30 08:08:26 +02:00
Brice Waegeneire
16ff464765
add monitor list to hooks by environment variables
2018-04-29 23:14:31 +02:00
Phillip Berndt
42c50e502e
fixup: Also allow -c instead of --change
2018-04-19 22:18:08 +02:00
Phillip Berndt
4849bd3c35
Bugfix: Do not load default profile unless --change is set ( fixes #105 )
2018-04-19 22:16:53 +02:00
Phillip Berndt
97bc4d1889
Add --panning support to --fb auto-value
2018-04-15 18:15:08 +02:00
Phillip Berndt
34f0f21e85
Add --fb option to xrandr invocations
...
As suggested by @Vladimir-csp in #88 .
2018-04-15 18:01:41 +02:00
Phillip Berndt
c060377e8e
Version bump: autorandr 1.5
2018-04-03 22:31:26 +02:00
Phillip Berndt
bc032ec25e
Allow wildcard matching in EDIDs
...
See #100 .
2018-03-25 12:19:03 +02:00
Phillip Berndt
0a57b0a8e9
Add --detected and --current to filter the profile list output
...
See bug #99
2018-03-25 12:12:43 +02:00
Phillip Berndt
6af575a941
Output all non-error output to stdout instead of stderr
...
Fixes #98 . This breaks compatibility with older versions of autorandr in
case users relied on which stream to use for parsing its output.
2018-03-07 07:42:23 +01:00
Phillip Berndt
07288eb0d7
Fix virtual profiles broken by 1094d7d9
2018-01-04 09:10:26 +01:00
Don Armstrong
79ac1a34b4
sorted should only take one argument in key
2017-12-21 17:52:45 -08:00
Phillip Berndt
e717470ee5
Do not error out if no configuration file exists
2017-12-15 18:30:58 +01:00
Phillip Berndt
83765c0d67
Add a configuration file for default option values
...
See #94
2017-12-13 22:08:11 +01:00
Phillip Berndt
134d0edc7e
Add new profile which shuts down all screens
2017-12-13 21:57:00 +01:00
Phillip Berndt
75f1533eab
Merge pull request #92 from blueyed/dispatch_call_to_sessions-env
...
dispatch_call_to_sessions: skip envs without name
2017-11-21 16:15:06 +01:00
Daniel Hahler
e853c01c11
dispatch_call_to_sessions: skip envs without name
...
Fixes https://github.com/phillipberndt/autorandr/issues/87 .
2017-11-20 22:24:45 +01:00
Daniel Hahler
df8880fa4b
Fix exec_scripts: candidate_directories broke for XDG/profile_path
...
This was broken in 1094d7d
.
2017-11-20 05:05:15 +01:00
Phillip Berndt
6813f53f8f
To disable --panning use 0x0, not none
2017-11-15 15:51:14 +01:00
Phillip Berndt
9f298553be
Reorder --help output
2017-11-15 15:50:04 +01:00
Christoph Gysin
1094d7d95c
simplify code
2017-11-13 20:44:46 +02:00
Christoph Gysin
a631164f12
break long lines
2017-11-13 20:42:49 +02:00
Christoph Gysin
7275127378
remove duplication
2017-11-13 19:30:01 +02:00
Christoph Gysin
e176ffa24a
getopt: load profile from args
2017-11-06 20:12:53 +02:00