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

[Question] Getting a error for base16-qutebrowser #53

Closed
BlueInGreen68 opened this issue Sep 3, 2024 · 2 comments
Closed

[Question] Getting a error for base16-qutebrowser #53

BlueInGreen68 opened this issue Sep 3, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@BlueInGreen68
Copy link

BlueInGreen68 commented Sep 3, 2024

What version of tinty are you using?

tinty 0.18.0

Hi! Thanks for the cool project. I'm having a little trouble applying tinty for qutebrowser.

For example, I'm trying to put a base16-3024 circuit and it's in the base16-qutebrowser repository, in the default folder. When trying to change the scheme tinty gives the following error:

Theme does not exists for base16-qutebrowser in /home/blueingreen68/.local/share/tinted-theming/tinty/repos/base16-qutebrowser/themes. Try running `tinty update` or submit an issue on https://github.com/tinted-theming/tinty

Sway in turn changes the subject successfully.

My ~/.config/tinted-theming/tinty/config.toml file:

# Global settings
shell = "sh -c '{}'"
default-scheme = "base16-mocha"

# Item configurations
[[items]]
path = "https://github.com/tinted-theming/base16-qutebrowser"
name = "base16-qutebrowser"
themes-dir = "themes"
hook = "cp -f %f ~/.config/qutebrowser/config.d/colorscheme.py"

[[items]]
path = "https://github.com/rkubosz/base16-sway"
name = "base16-sway"
themes-dir = "themes"
hook = "cp -f %f ~/.config/sway/config.d/colorscheme && swaymsg reload"
@BlueInGreen68 BlueInGreen68 added the question Further information is requested label Sep 3, 2024
@JamyGolden
Copy link
Member

JamyGolden commented Sep 3, 2024

Hello 😄 The theme path in base16-qutebrowser is slightly different since the themes are in a directory within the themes/ directory. On top of that base16-qutebrowser has a different "file extension". Tinty expects <scheme-system>-<scheme-name>.<extension>, but qutebrowser has <scheme-system>-<scheme-name>.config.<extension> so we need to tell tinty to use .config.py as the extension. I've tested the config below and it should work:

[[items]]
path = "https://github.com/tinted-theming/base16-qutebrowser"
name = "base16-qutebrowser"
themes-dir = "themes/default"
hook = "cp -f %f ~/.config/qutebrowser/config.d/colorscheme.py"
theme-file-extension = ".config.py"

I'll add this to the USAGE.md file for anyone trying to get this to work in future.

Note: I've chosen themes/default as the themes-dir, but you might want themes/minimal since that's the other set of themes base16-qutebrowser supports.

Edit: Added it https://github.com/tinted-theming/tinty/blob/main/USAGE.md#qutebrowser

@BlueInGreen68
Copy link
Author

Thank you for the clarification. It's all working now.

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

No branches or pull requests

2 participants