]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/blobdiff - autorandr.py
fix: make block script name correspond to docs
[deb_pkgs/autorandr.git] / autorandr.py
index 2baa1b142ff3696f1215a6379fcb1c155a2a8664..8c304030f6f04e717e897cdeb240292de1461a3d 100755 (executable)
@@ -390,7 +390,7 @@ def find_profiles(current_config, profiles):
 
 def profile_blocked(profile_path):
     "Check if a profile is blocked"
-    script = os.path.join(profile_path, "blocked")
+    script = os.path.join(profile_path, "block")
     if not os.access(script, os.X_OK | os.F_OK):
         return False
     return subprocess.call(script) == 0
@@ -466,7 +466,7 @@ def apply_configuration(configuration, dry_run=False):
     # disable the last two screens. This is a problem, so if this would happen, instead disable only
     # one screen in the first call below.
     if len(disable_outputs) > 0 and len(disable_outputs) % 2 == 0:
-        # In the context of a xrandr call that changes the display change, `--query' should do nothing
+        # In the context of a xrandr call that changes the display state, `--query' should do nothing
         disable_outputs.insert(0, ['--query'])
 
     # Enable the remaining outputs in pairs of two operations