1
0
Fork 0
mirror of https://github.com/seqizz/autorandr.git synced 2024-09-07 10:30:28 +02:00

Make single-pass default

This commit is contained in:
Gürkan Gür 2021-03-23 19:16:53 +01:00
parent be87b8b133
commit 5d3b326849

View file

@ -80,8 +80,7 @@ Usage: autorandr [options]
--detected only list detected (available) configuration(s)
--dry-run don't change anything, only print the xrandr commands
--fingerprint fingerprint your current hardware setup
--single-xrandr-pass do not use multiple xrandr calls, make all changes in
one go (unsupported by many drivers!)
--no-single-xrandr-pass use multiple xrandr calls, (SHOULD BE DEFAULT)
--force force (re)loading of a profile / overwrite exiting files
--skip-options <option> comma separated list of xrandr arguments (e.g. "gamma")
to skip both in detecting changes and applying a profile
@ -1220,12 +1219,13 @@ def read_config(options, directory):
for key, value in config.items("config"):
options.setdefault("--%s" % key, value)
def main(argv):
try:
opts, args = getopt.getopt(argv[1:], "s:r:l:d:cfh",
["batch", "dry-run", "change", "default=", "save=", "remove=", "load=",
"force", "fingerprint", "config", "debug", "skip-options=", "help",
"single-xrandr-pass",
"no-single-xrandr-pass",
"current", "detected", "version"])
except getopt.GetoptError as e:
print("Failed to parse options: {0}.\n"
@ -1446,7 +1446,7 @@ def main(argv):
remove_irrelevant_outputs(config, load_config)
try:
single_pass = "--single-xrandr-pass" in options
single_pass = "--no-single-xrandr-pass" not in options
if "--dry-run" in options:
apply_configuration(load_config, config, dry_run=True, single_pass=single_pass)
else: