btop: added support for transparent terminals (#263)

This commit is contained in:
Michael McCandless 2024-02-24 01:40:41 +11:00 committed by GitHub
parent 32fe070be5
commit 6c447e8761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,10 @@ in {
config = lib.mkIf config.stylix.targets.btop.enable {
programs.btop.settings.color_theme = "stylix";
programs.btop.settings = {
color_theme = "stylix";
theme_background = lib.mkIf (config.stylix.opacity.terminal != 1.0) false;
};
xdg.configFile."btop/themes/stylix.theme".text = with colors; ''
#Generated by Stylix