Have you seen Spicetify[0]? It allows for this kind of stuff and seems to be a lot more stable than doing it all manually.
[0] https://spicetify.app/