Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oomox CLI revamp #202

Open
actionless opened this issue Jan 15, 2019 · 9 comments
Open

Oomox CLI revamp #202

actionless opened this issue Jan 15, 2019 · 9 comments

Comments

@actionless
Copy link
Member

actionless commented Jan 15, 2019

Current CLI scripts are just links to change_color.sh scripts inside each plugin itself,

New CLI should have one entry point and reuse plugin-loader from oomox_gui.

New CLI will have 2 actions:

  • export (for theme,icons and export plugins)
  • import (for import plugins :) )

and 4 arguments:

  • --preset -- path to themix colorscheme;
  • --plugin -- name of the plugin to use, ie dir name like here: https://github.com/themix-project/oomox/tree/master/plugins;
  • --export-opts (or just --opts?) - comma-separated list of export options (--export-opts key1=value1,key2=value2), keys and values should be like in ~/.config/oomox/export_config/*.json files.
  • [optional] --override - comma-separated list of theme values/options (--override BG=ff0000,BASE16_GENERATE_DARK=True), keys and values should be like in themix/oomox theme model

Please leave any comments/feedback before the work on it will start.

@b1scu1t
Copy link

b1scu1t commented Mar 9, 2020

I see you can export color schemes in the GUI for xresources rofi and other programs.
Possibly we could expose that output through the CLI?

Or maybe, the program can accept regular text files as templates with key-values to be replaced?

I'm thinking something like WPGTK.
Its another Python 3 application to generate themes for GTK, rofi, or any template you feed it. It simple but quick.

Warni is another one, but I'm not too familiar with that...

@actionless
Copy link
Member Author

you already can use base16-template for any app, only CLI for it not implemented

base16 templates are pre-installed using collection from here (https://github.com/chriskempson/base16-templates-source/blob/master/list.yaml) but if you wanna have the options for adding user-defined templates under ~/.config/oomox/ feel free to create a separate ticket for that

@actionless
Copy link
Member Author

actionless commented Mar 8, 2022

now CLI for base16 plugin was implemented as well:
themix-project/themix-plugin-base16@ef12a90

@FragCGI
Copy link

FragCGI commented Feb 7, 2023

Any word on the CLI doing icon themes yet? I need it for ricing. 🤣

@actionless
Copy link
Member Author

@FragCGI the CLI for icons was always there and working, this ticket about revamping all CLIs under one single entry point (themix-cli) instead of individual CLIs

@FragCGI
Copy link

FragCGI commented Feb 7, 2023

@actionless well, I guess I had been looking in the wrong places because I haven't been able to figure that one out. Time to keep searching.

@actionless
Copy link
Member Author

Time to keep searching.

i would start from the ReadMe 😉

@FragCGI
Copy link

FragCGI commented Feb 7, 2023

Been there, still can't figure out the syntax to get icons based on xresources, more specifically xresources reverse. The theme was easy, but this icon export is killing me. I'm sure I'll figure it out with time though.

@actionless
Copy link
Member Author

it's described in this, same-called, paragraph... https://github.com/themix-project/themix-gui#cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants