Warning, /plasma/breeze/cursors/Breeze_Light/scale_cursor is written in an unsupported language. File is not indexed.
0001 #!/usr/bin/python3 0002 0003 import sys 0004 0005 if len(sys.argv) < 3: 0006 print("Usage: " + sys.argv[0] + " <cursor name> <scales>") 0007 sys.exit(1) 0008 0009 scales = [int(i) for i in sys.argv[2:]] 0010 0011 for line in open(sys.argv[1]): 0012 t = line.strip().split(maxsplit=3) 0013 if len(t) != 4: 0014 continue 0015 0016 size = int(t[0]) 0017 xhot = int(t[1]) 0018 yhot = int(t[2]) 0019 rest = t[3] 0020 0021 if not rest.startswith("x1/"): 0022 continue 0023 0024 for scale in scales: 0025 print("%d %d %d %s" % (size * scale / 100, xhot * scale / 100, yhot * scale / 100, rest.replace("x1/", "x%d/" % scale)))