kwin-5.21-desktop-grid-click-behavior.py 357 Bytes
Newer Older
1
#!/usr/bin/env python3
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

import sys

VALUE_MAP = {
    'true': 0,
    'false': 1,
}

if __name__ == '__main__':
    for line in sys.stdin:
        line = line.strip()
        if line.startswith('PresentWindows='):
            _, value = line.split('=', 1)
            print("# DELETE PresentWindows")
            print("ClickBehavior=%d" % VALUE_MAP[value])