apple_cursor/config.py

46 lines
1.2 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
delay = 50
2020-08-10 23:18:45 -04:00
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"
2020-08-26 02:49:39 -04:00
package_dir = "./themes"
2020-07-29 01:03:33 -04:00
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-26 02:41:33 -04:00
"left_ptr_watch.ani": "AppStarting.ani",
"left_ptr.cur": "Arrow.cur",
"crosshair.cur": "Cross.cur",
"hand2.cur": "Hand.cur",
"pencil.cur": "Handwriting.cur",
"dnd-ask.cur": "Help.cur",
"xterm.cur": "IBeam.cur",
"circle.cur": "NO.cur",
"all-scroll.cur": "SizeAll.cur",
"bd_double_arrow.cur": "SizeNESW.cur",
"sb_v_double_arrow.cur": "SizeNS.cur",
"fd_double_arrow.cur": "SizeNWSE.cur",
"sb_h_double_arrow.cur": "SizeWE.cur",
"sb_up_arrow.cur": "UpArrow.cur",
"wait.ani": "Wait.ani",
2020-08-10 01:55:59 -04:00
}
# Windows install.inf file content
with open("./scripts/windows.inf") as f:
data = f.read()
2020-08-26 02:31:18 -04:00
window_install_inf_content = data.replace(
"<inject_theme_name>", name+" Cursors").replace("<inject_author_name>", author)