ironbar: Don't hardcode opacity

Now the opacity will always be 0.05 less than the opacity of the
terminal.
This commit is contained in:
Donovan Glover 2023-07-26 13:11:44 -04:00
parent b61e2ff951
commit a2fe09a166
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,5 +1,8 @@
{ config, ... }: { config, lib, ... }:
let
opacity = lib.strings.floatToString (config.stylix.opacity.terminal - 0.05);
in
{ {
xdg.configFile."ironbar/config.json".text = /* json */ '' xdg.configFile."ironbar/config.json".text = /* json */ ''
{ {
@ -58,7 +61,7 @@
} }
.background { .background {
background: alpha(#${base00}, 0.9); background: alpha(#${base00}, ${opacity});
} }
.clipboard { .clipboard {