From d4387dbc71c905c54e523e8c65916827b2c2c38d Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 8 Feb 2024 10:35:22 -0500 Subject: [PATCH] adapt waybar/hyprland theme --- dot_config/hypr/hyprland.conf.tmpl | 4 ++++ dot_config/waybar/style.css.tmpl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/dot_config/hypr/hyprland.conf.tmpl b/dot_config/hypr/hyprland.conf.tmpl index 2a44a0f927903e55cfbb954d93b53a7f2bccb649..c63d151e566ce8ec27db0f95cfb4b0cd0148b04d 100644 --- a/dot_config/hypr/hyprland.conf.tmpl +++ b/dot_config/hypr/hyprland.conf.tmpl @@ -132,7 +132,11 @@ misc { force_default_wallpaper = 0 # Set to 0 to disable the anime mascot wallpapers enable_swallow = yes focus_on_activate = no +{{- if eq .theme_variant "light" }} + background_color = rgb(eff1f5) +{{- else if eq .theme_variant "dark" }} background_color = rgb(24273A) +{{- end }} } # Example windowrule v1 diff --git a/dot_config/waybar/style.css.tmpl b/dot_config/waybar/style.css.tmpl index 4f46563a9eacc7c846d7c6c19b2f9f5739ca1326..107c42959ac90609dabe756d63fb1928a92a7204 100644 --- a/dot_config/waybar/style.css.tmpl +++ b/dot_config/waybar/style.css.tmpl @@ -1,4 +1,8 @@ +{{- if eq .theme_variant "light" }} +@import "latte.css"; +{{- else if eq .theme_variant "dark" }} @import "macchiato.css"; +{{- end }} * { font-family: "JetBrainsMono NF", "Berkely Mono";