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

Feature Request: Add command line arguments #47

Open
v4u6h4n opened this issue May 1, 2024 · 2 comments
Open

Feature Request: Add command line arguments #47

v4u6h4n opened this issue May 1, 2024 · 2 comments

Comments

@v4u6h4n
Copy link

v4u6h4n commented May 1, 2024

Hey everyone :-)

Just wondering if some command line argument functionality could be added so I can control the application with scripting. Specifically I am interesting in scripting some day/night switching with the new KDE theme support introduced in #43. My apologies if there is also this functionality, just haven't been able to find documentation if that is the case.

@pasbi
Copy link

pasbi commented Jul 24, 2024

I had a look at this because I would also like to control the appearance of Qt-applications from scripts.

It turns out that this application "only" provides a nice graphical user interface to modify INI files.
It would be rather pointless to provide a CLI for that because it's super simple to modify these files using a text editor or a script.
All Qt6-applications will change their appearance immediately after the ini file has been modified and saved (given QT_QPA_PLATFORMTHEME is set to qt6ct).

Please see my example python script to set the Appearance/color_scheme_path:

set_qt6ct_scheme.py ~/.config/qt6ct/qt6ct.conf darker

@v4u6h4n
Copy link
Author

v4u6h4n commented Jul 24, 2024

Hey @pasbi

Thanks for the heads up :-) I ended up arriving at a similar solution myself after some tinkering.

I used this, for anyone out there not familiar with python:

sed -i "s/color_scheme_path=.*/color_scheme_path=\"\/usr\/share\/color-schemes\/BreezeDark.colors\"/" ~/.config/qt6ct/qt6ct.conf

Or, for light:

sed -i "s/color_scheme_path=.*/color_scheme_path=\"\/usr\/share\/color-schemes\/BreezeLight.colors\"/" ~/.config/qt6ct/qt6ct.conf

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

No branches or pull requests

2 participants