Created
May 30, 2019 20:32
-
-
Save rebeccajae/9fba78ec0eef711ed557ed445a3421d6 to your computer and use it in GitHub Desktop.
XFCE to Tilix Theme Porter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import configparser | |
import json | |
import sys | |
config = configparser.ConfigParser() | |
config.read(sys.argv[1]) | |
output = {} | |
output['name'] = config['Scheme']['Name'] | |
output['comment'] = "Ported by ThemePorter" | |
output['use-theme-colors'] = False | |
output['foreground-color'] = config['Scheme']['ColorForeground'] | |
output['background-color'] = config['Scheme']['ColorBackground'] | |
output['palette'] = config['Scheme']['ColorPalette'].split(";") | |
print(json.dumps(output)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment