-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Css Variables #159
Comments
In GTK you can do something like this @define-color custom rgb (181, 171, 156);
#clock {
color: @custom
} |
Awesome! Thanks to pywal allowing me to use custom user defined templates this works right out of the box. Thanks! |
Please can u explain how did u achieve it? or provide a code example, thanks :) |
I created a template file like this: And imported it into my waybar/style.css like this: |
How do you autoreload the waybar once you change the colorscheme? |
Honestly I just reload my entire window manager, which will restart waybar. |
Just set
#!/usr/bin/env bash
pkill waybar
waybar & and call it in your colorscheme updating logic. For example, I change my wallpaper using swww img "<img>" --transition-fps 30 --transition-type center --transition-duration 1
wal -i "<img>" -n -q
# Reload waybar
"<script-or-command>"
|
The down side to using GTK variables is it will throw warnings in neovim with css lsp and I don't understand why css variables not allowed. |
define use less not css |
Is there any way that we can get support for Css Custom Properties (variables)?
I would love to import the generated css vars from pywal so that I can style waybar with the generated colors. It seems that the :root selector is not supported with whatever parsing system is being used in the project.
The text was updated successfully, but these errors were encountered: