kwin/kconf_update/kwin-5.23-remove-flip-switch.py

12 lines
289 B
Python
Raw Normal View History

#!/usr/bin/env python3
import fileinput
for line in fileinput.input():
if not line.startswith("LayoutName="):
continue
value = line[len("LayoutName="):].strip()
if value != "flipswitch":
continue
print("# DELETE LayoutName") # will use the default layout