site/tools/prep-state.py (439B)
1 """Shoot-only player settings; the caller restores the originals afterwards."""
2 import json, sys
3 p = sys.argv[1]
4 d = json.load(open(p))
5 d["volume"] = 0.72 # a realistic meter; silence comes from muting the stream
6 d["pane_widths"] = [20, 50, 30] # wider right column: track info stops wrapping
7 d["right_split"] = 46 # a little more room for the info fields
8 d["info_view"] = "AlbumArt"
9 json.dump(d, open(p, "w"), indent=2)