apple_cursor/config.py

46 lines
1.3 KiB
Python
Raw Normal View History

2020-07-29 01:03:33 -04:00
import tempfile
import json
2020-07-29 01:03:33 -04:00
# Build Config
2020-08-10 23:18:45 -04:00
delay = 35
name = "macOSBigSur"
2020-08-02 01:46:06 -04:00
sizes = [24, 28, 32, 40, 48, 56, 64, 72, 80, 88, 96]
2020-07-29 01:03:33 -04:00
bitmaps_dir = "./bitmaps"
temp_folder = tempfile.mkdtemp()
# Cleanup Configs
x11_out = name
win_out = name + "_Windows"
# getting author name
with open("./package.json") as f:
data = json.loads(f.read())
author = data["author"]
# Windows Cursors Config
2020-08-10 01:55:59 -04:00
windows_cursors = {
2020-08-11 08:27:12 -04:00
"all-scroll.cur": "move.cur",
2020-08-10 01:55:59 -04:00
"bd_double_arrow.cur": "diagonal-resize-1.cur",
"bottom_left_corner.cur": "diagonal-resize-2.cur",
2020-08-11 08:27:12 -04:00
"bottom_side.cur": "vertical-resize.cur",
"circle.cur": "unavailable.cur",
"crosshair.cur": "precision-select.cur",
2020-08-10 01:55:59 -04:00
"dnd-ask.cur": "help-select.cur",
"hand2.cur": "link-select.cur",
"left_ptr.cur": "normal-select.cur",
2020-08-11 08:27:12 -04:00
"left_ptr_watch.ani": "working-in-background.ani",
"pencil.cur": "handwriting.cur",
"right_side.cur": "horizontal-resize.cur",
"sb_up_arrow.cur": "alt-select.cur",
2020-08-10 01:55:59 -04:00
"wait.ani": "busy.ani",
2020-08-11 08:27:12 -04:00
"x_cursor.cur": "pirate.cur",
"xterm.cur": "text-select.cur"
2020-08-10 01:55:59 -04:00
}
# Windows install.inf file content
with open("./scripts/windows.inf") as f:
data = f.read()
window_install_inf = data.replace(
"<inject_theme_name>", name+" Cursors").replace("<inject_author_name>", author)