kwin/kconf_update/kwin-5.21-desktop-grid-click-behavior.py
Konstantinos Smanis dbcf43abfe Allow configuring click behavior in Desktop Grid effect
The following click behaviors are defined:
 * Switch desktop and activate window [default]
 * Switch desktop only

The former emulates the previous default of activating clicked windows
using the Present Windows effect. The latter introduces a new mode where
the clicked window is not activated, allowing the user to select a
virtual desktop without worrying about disrupting the last active
window.

The configuration toggle that controlled the use of the Present Windows
effect has been subsumed into the first click behavior, i.e., if the
effect is enabled, it will be implicitly triggered.
2020-10-30 09:39:00 +00:00

18 lines
395 B
Python

#!/usr/bin/env python
from __future__ import print_function
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])