Skip to content

Instantly share code, notes, and snippets.

@rebeccajae
Created May 30, 2019 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rebeccajae/9fba78ec0eef711ed557ed445a3421d6 to your computer and use it in GitHub Desktop.
Save rebeccajae/9fba78ec0eef711ed557ed445a3421d6 to your computer and use it in GitHub Desktop.
XFCE to Tilix Theme Porter
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