btop: use theme option (#1126)
Use the programs.btop.theme option, introduced in commit [1] ("btop: add
themes option (#6777)").
[1]: 0daadc7784
Link: https://github.com/danth/stylix/pull/1126
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
parent
8d5cd725ad
commit
8b0d9317ed
2 changed files with 10 additions and 11 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -224,11 +224,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1743869639,
|
||||
"narHash": "sha256-Xhe3whfRW/Ay05z9m1EZ1/AkbV1yo0tm1CbgjtCi4rQ=",
|
||||
"lastModified": 1744618730,
|
||||
"narHash": "sha256-n3gN7aHwVRnnBZI64EDoKyJnWidNYJ0xezhqQtdjH2Q=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "d094c6763c6ddb860580e7d3b4201f8f496a6836",
|
||||
"rev": "85dd758c703ffbf9d97f34adcef3a898b54b4014",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
|||
|
|
@ -11,14 +11,12 @@
|
|||
&& config.programs.btop.enable
|
||||
)
|
||||
{
|
||||
|
||||
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 config.lib.stylix.colors.withHashtag; ''
|
||||
programs.btop = {
|
||||
settings = {
|
||||
color_theme = "stylix";
|
||||
theme_background = lib.mkIf (config.stylix.opacity.terminal != 1.0) false;
|
||||
};
|
||||
themes.stylix = with config.lib.stylix.colors.withHashtag; ''
|
||||
#Generated by Stylix
|
||||
theme[main_bg]="${base00}"
|
||||
theme[main_fg]="${base05}"
|
||||
|
|
@ -63,5 +61,6 @@
|
|||
theme[process_mid]="${base0A}"
|
||||
theme[process_end]="${base08}"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue