waybar: Use opacity from stylix

This commit is contained in:
Donovan Glover 2023-06-26 12:01:50 -04:00
parent bcbadcfc23
commit 09ce58fb1c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,5 +1,8 @@
{ config, lib, ... }:
let
opacity = lib.strings.floatToString config.stylix.opacity.terminal;
in
{
programs.waybar = {
enable = true;
@ -110,7 +113,7 @@
}
window#waybar {
background: alpha(@base00, 0.92);
background: alpha(@base00, ${opacity});
border-left: 1px solid alpha(@base02, 0.67);
}