Could you write something like a `get_playerctl_player` function which returns a player with the player name read from the config file (like in the `widget_main` function)? For improved performance it could also work to have a thread-local player pointer instead, which is initialized in `widget_main` and used in the jscore functions. I don't know if the playerctl functions are thread-safe, so you may need a mutex or something if you go for a thread-local pointer.