Commit Graph

74 Commits

Author SHA1 Message Date
Julian Stiller
f2f5505e8c contrib/autorandr_nitrogen_wallpaper
Make commands independent of location on system
It helps running autorandr_nitrogen_wallpaper on systems without
/bin/bash, /usr/bin/unlink, /bin/cp and /bin/mv. E.g. NixOS, which
doesn't have /bin/bash.
2023-04-08 15:41:07 +02:00
Kian-Meng Ang
05bc32c134 Fix typos
Found via `codespell -L nd`
2023-02-24 07:00:47 +01:00
Frank Dana
de2a1fb3c3 RPM spec: Add conditional Recommends 2022-12-23 08:38:01 +01:00
Mikel Ward
7c988a647a Make the Debian package depend on python3 rather than python
The 'python' package is python2, but autorandr.py targets python3 since
cf4848fe0f.
2022-06-01 15:21:26 +01:00
Mikel Ward
3040ed4434 Add a leading slash to Debian conffiles paths
Avoids an error
dpkg-deb: error: conffile name 'etc/xdg/autostart/autorandr.desktop' is not an absolute pathname
2022-06-01 15:18:57 +01:00
Phillip Berndt
50b3688814 Fix modified dictionary iteration as 1.12.1
See #273
2021-12-22 13:28:03 +01:00
Phillip Berndt
1c6fa77579 Update versions to 1.12 everywhere 2021-12-16 11:26:56 +01:00
Phillip Berndt
629b3eec10
Merge branch 'master' into master 2021-12-16 10:39:52 +01:00
Phillip Berndt
7b444f014a Add new options to completion files 2021-12-16 10:36:28 +01:00
Peter Kotvan
1f96020eb3 Update rpm spec with one used in Fedora. 2021-11-12 15:19:36 +01:00
Florian Schmaus
4f010c576b autorandr.service: Use StartLimitIntervalSec
It's time that we use StartLimitIntervalSec as even Debian stable has
a recent enough systemd version.
2021-06-25 16:31:50 +02:00
Jerzy Drozdz
0d46eee394 Updated spec file 2021-06-09 22:33:15 +02:00
Simon Piriou
2194455d6f 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.
2021-05-17 21:14:40 +02:00
noughtnaut
7b7c05316e 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.
2020-12-01 11:36:46 +01:00
Jerzy Drozdz
b03c205a8c Fixed python2 build problem 2020-06-26 10:20:22 +02:00
Jerzy Drozdz
abee187c0f rpm spec file update to 1.10.1 2020-06-26 10:20:22 +02:00
Phillip Berndt
c7186f509f Fix warning during launcher compilation 2020-05-04 09:20:49 +02:00
Phillip Berndt
42104bf719 Adjust launcher autostart file to start in daemon mode
This is part of the fix for #199.
2020-05-04 08:58:08 +02:00
Phillip Berndt
dfb37523e3 Fix launcher crashing once X session exits
This is part of the fix for #199.
2020-05-04 08:57:53 +02:00
Vincent Bernat
0ebfa82c7d contrib: fix saved profile completion 2020-01-31 11:41:08 +01:00
Vincent Bernat
08d9b4f72d contrib: zsh completion 2020-01-31 08:40:07 +01:00
Phillip Berndt
e1c85639c3 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.
2019-12-31 11:41:27 +01:00
Vladimir-csp
bc77e56be7
classes 2019-11-14 00:49:33 +03:00
Vladimir-csp
4ed7fa9b24
egrep is deprecated according to manpage
also do classes as in manpage, no double escapes needed
2019-11-14 00:48:46 +03:00
Vladimir-csp
14baee8f70
space class and double escapes in unit file 2019-11-14 00:42:26 +03:00
Vladimir-csp
5891767a88
\s does not work inside brackets 2019-11-14 00:41:38 +03:00
Vladimir-csp
72c208a520
account for occasional dash prefix, use sh 2019-11-13 22:40:27 +03:00
Vladimir-csp
73c3e9d7b4
account for occasional dash prefix, use sh 2019-11-13 22:37:13 +03:00
Christophe-Marie Duquesne
f6ae945187 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.
2019-11-10 17:37:29 +01:00
Christophe-Marie Duquesne
51a6936165 adding a lid listener xdg/autostart service 2019-11-04 14:32:36 +01:00
Christophe-Marie Duquesne
5366a5dc37 Adding a systemd script to monitor lid changes 2019-11-03 23:59:29 +01:00
Christophe-Marie Duquesne
17aacb0185 line buffering 2019-11-03 23:27:39 +01:00
Christophe-Marie Duquesne
a79056d92e supplementary script to listen to lid events 2019-11-01 14:19:41 +01:00
Maciej Sitarz
c58de9b13c Improved .spec file for RPM builds 2019-05-23 14:03:48 +02:00
Maciej Sitarz
7f76405c8d Merge remote-tracking branch 'upstream/master' 2019-05-22 15:28:20 +02:00
Maximilian Bosch
d38e22e506
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).
2019-03-22 00:49:42 +01:00
Ricky Liou
6d40d3cfba Add --default default
Added in order to behave the same way as the systemd service
2019-02-02 17:15:24 -08:00
Ricky Liou
3d6ccb0c5a Fix help str to match program name 2018-11-04 12:15:59 -08:00
Ricky Liou
2a9ed676b6 Add source code for launcher 2018-11-04 11:48:18 -08:00
Maciej Sitarz
83099d50f1 Update RPM spec file to stable v1.7 2018-09-28 10:32:07 +02:00
Phillip Berndt
3a1b5c484e
Merge pull request #114 from maciex/issue/RPM_spec_systemd_fix
Proper placement of systemd service file
2018-07-27 14:55:46 +02:00
Maciej Sitarz
c86015ab0e Fix placement of systemd service file
Updated to latest version
2018-07-23 14:26:04 +02:00
Johannes Wienke
050b0573c2
Use process kill mode in systemd service
This allows starting background processes in postswitch scripts without having to deal with cgroups. Will resolve #111.
2018-07-19 14:12:52 +02:00
Vladimir-csp
6b27e2a62d
XDG search and *.d dir filternig 2018-05-11 15:13:15 +03:00
Jerzy Drozdz
65886ffae3 Removed pm-utils on fedora22+ from requisites 2017-10-01 18:14:28 +02:00
Jerzy Drozdz
2c5c151814 Added RedHat compatible spec file 2017-09-03 01:06:29 +02:00
Achim D. Brucker
c7dfe868e7 Bug fix: ensure that the Debian control directory has permissions 0755. 2017-08-11 06:06:39 +01:00
Phillip Berndt
ee77c35529 pm-utils: Do not write log file by default
Fixes #68
2017-04-16 13:58:09 +02:00
Phillip Berndt
899f6f652f Note that StartLimitInterval was renamed in systemd-230
Fixes #69.
2017-04-16 13:56:55 +02:00
Phillip Berndt
455809c32d systemd unit: Rate limit execution
This prevents the udev rule to run autorandr once per monitor added or
removed, instead of once per change -- this is relevant, e.g., if a
notebook is (dis-)connected to/from a docking station.
2017-01-20 15:14:15 +01:00