You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
427 B
14 lines
427 B
#!/usr/bin/env python3 |
|
|
|
import fileinput |
|
|
|
speed_map = [0, 0.25, 0.5, 1, 2, 4, 20] |
|
|
|
for line in fileinput.input(): |
|
if not line.startswith("AnimationSpeed="): |
|
continue |
|
speed = int(line[len("AnimationSpeed="):]) |
|
if speed < 0 or speed >= len(speed_map): |
|
continue |
|
print("AnimationDurationFactor=%f" % speed_map[speed]) |
|
print("# DELETE AnimationSpeed") #special kconf syntax to remove the old key
|
|
|