X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=dispcfg;h=9c996112f2260c5a36e96aa89a509ece5b621bbb;hb=HEAD;hp=02f1f8d1721cfd272f6efe57bb3fc2ae8423ef7f;hpb=0f6016015dc8d21eaa4b9112230fdf29202573b2;p=dispcfg.git diff --git a/dispcfg b/dispcfg index 02f1f8d..9c99611 100755 --- 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)