]> oss.titaniummirror.com Git - dispcfg.git/commitdiff
Don't change keymaps if dry-run
authorR. Steve McKown <rsmckown@gmail.com>
Sat, 24 Jan 2015 17:51:02 +0000 (10:51 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Sat, 24 Jan 2015 17:51:02 +0000 (10:51 -0700)
dispcfg

diff --git a/dispcfg b/dispcfg
index dac120459922366d8d02846cb0d2bad06672df5d..140ff22ee902e6df02f075a33660079f9d8771e0 100755 (executable)
--- a/dispcfg
+++ b/dispcfg
@@ -190,7 +190,8 @@ if __name__ == '__main__':
             enabled_count += enable_an_entry(outputs, enabled_count < 2)
 
         # A hack to set Control/Win key mapping
-        subprocess.call('/usr/local/bin/setctrl')
+        if not dry_run:
+            subprocess.call('/usr/local/bin/setctrl')
 
 
     main(sys.argv)