Phillip Berndt
Phillip Berndt
I'd start debugging by adding some debug output to `load_profiles`: Which directories is it invoked for (print the `profile_path` parameter) and which profiles does it find (print the `profile` variable)....
What complicates answering this question is that autorandr supports many, many different ways of being used, and the package itself installs a random collection of automation tools. I treat the...
The systemd unit isn't a service, it's started ad hoc as needed. What mechanism do you use to detect changes? udev? Generally, unplug should trigger autorandr.
It's intentionally not reserved. The idea is to store whatever you want to have by default in a profile named `default`.
Makes sense. Thanks, merged!
Thanks! Feel free to invent a return code that does something special :) I so far just went for killing the parent process to stop autorandr whenever I needed that...
Thanks! I don't quite get the advantage a signal has over a return code? Wouldn't e.g. using an exit code of 42 to indicate that you want autorandr to stop...
I think I'd still prefer exit codes, because the code on either end is way simpler that way: Autorandr doesn't have to handle signals, the user hook doesn't have to...
How about a predetect script that checks for a file in /var/run or another ephemeral directory?
Sounds good to me. Alternatively, having `mode unset` in the file and skipping the flag in the call if it has that value might work and be even simpler to...