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

Command-line option to export nwg-look preferences to files #49

Closed
nwg-piotr opened this issue Nov 15, 2023 · 6 comments · Fixed by #50
Closed

Command-line option to export nwg-look preferences to files #49

nwg-piotr opened this issue Nov 15, 2023 · 6 comments · Fixed by #50
Labels
enhancement New feature or request

Comments

@nwg-piotr
Copy link
Owner

nwg-piotr commented Nov 15, 2023

(...) is it possible to have a command-line option to export nwg-look preferences to files? i use nwg-look to set my themes, and on top of that, i have darkman for automatic dark mode toggling. i set my theme to a light one during the day, and a dark one when it's night time, and apps under XWayland reads the gtk settings files instead of directly reading from gsettings, so having a command-line option for nwg-look to automatically export to files would be really neat!

Originally posted by @j1nxie in nwg-piotr/nwg-shell#157 (comment)

@nwg-piotr nwg-piotr added the enhancement New feature or request label Nov 15, 2023
@nwg-piotr
Copy link
Owner Author

I'll take a closer look at this soon.

@nwg-piotr
Copy link
Owner Author

@j1nxie - could you build from the add-49 branch and tell me if it works for you? I've added the -x argument to read settings, export config files and quit. Only files marked in the Preferences tab will be exported.

@j1nxie
Copy link

j1nxie commented Nov 20, 2023

@j1nxie - could you build from the add-49 branch and tell me if it works for you? I've added the -x argument to read settings, export config files and quit. Only files marked in the Preferences tab will be exported.

looks like it's working fine for me! built it from the branch and executed and everything ran smoothly without a hitch.

@nwg-piotr
Copy link
Owner Author

Does the execution with the -x argument resolve you issue? The light/dark theme switch is a kind of exception, as there are two different registry keys responsible for it.

@j1nxie
Copy link

j1nxie commented Nov 20, 2023

i have a script that sets my gsettings registry keys for me, and this command-line switch looks just perfect to finish off what i need. thank you!

@nwg-piotr
Copy link
Owner Author

Thanks! I'll merge the branch, if so.

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

Successfully merging a pull request may close this issue.

2 participants