Brooklyn/plasma/kcms/keyboard/kcminputrc_migrate_repeat_value.py

13 lines
317 B
Python
Raw Normal View History

#!/usr/bin/env python3
import sys
for line in sys.stdin:
line = line.rstrip()
print(line, file=sys.stderr)
if line.startswith("KeyboardRepeating=1"):
print("KeyRepeat=nothing")
elif line.startswith("KeyboardRepeating="):
print("KeyRepeat=repeat")
print("# DELETE KeyboardRepeating")