]> oss.titaniummirror.com Git - dispcfg.git/blobdiff - dispcfg
Update README
[dispcfg.git] / dispcfg
diff --git a/dispcfg b/dispcfg
index 02f1f8d1721cfd272f6efe57bb3fc2ae8423ef7f..9c996112f2260c5a36e96aa89a509ece5b621bbb 100755 (executable)
--- a/dispcfg
+++ b/dispcfg
@@ -23,6 +23,10 @@ class record:
         self.of.write(data)
         sys.stdout.write(data)
 
+    def fout(self, line):
+        data = '%s\n' % line
+        self.of.write(data)
+
     def outTime(self, line):
         tstamp = datetime.datetime.fromtimestamp(time.time())
         data = '%s %s\n' % (tstamp.strftime('%Y-%m-%d %H:%M:%S'), line)
@@ -227,11 +231,8 @@ if __name__ == '__main__':
                 enabled_count -= disable_an_entry(outputs)
             enabled_count += enable_an_entry(outputs, enabled_count < 2)
 
-        # A hack to set Control/Win key mapping
-        if not dry_run:
-            subprocess.call('/usr/local/bin/setctrl')
-
         out.outTime('completed')
+        out.fout('')
 
 
     main(sys.argv)