klaudiosinani / hyper-pokemon

Tailor-made Pokémon themes for your Hyper terminal
https://klaussinani.github.io/hyper-pokemon
MIT License
1.04k stars 60 forks source link

Allow the theme to change automatically with a command #40

Open kvnloo opened 5 years ago

kvnloo commented 5 years ago

It would be really cool if the theme could be changed dynamically rather than going into the configuration file and changing the pokemon tag.

The following would be examples of what I mean:

pokemon charizard --unibody false --poketab true

or

pokemon ['charizard', 'articuno', 'pikachu'] --unibody false --poketab true

Describe the solution you'd like A possible solution would be to have the hyper.js file source from another theme.js file and the command would change the contents of the theme.js file.

The theme.js file could just have the following:

config {
    pokemon: ['articuno', 'zapdos', 'moltres', 'mewtwo', 'mew'],
    unibody: 'false',
    poketab: 'false'
}

Then this file could be sourced from the default hyper configuration file.

I think that this would be a really cool feature and would allow the user to change the theme on the fly.