Files
nixos/apps/btop/default.nix
T
kenji c86358010c feat(btop): autostart btop on misc monitor
note: may not work on very small monitor. needs to auto change to `btm`
if conditions are met.
2026-03-08 11:36:13 -05:00

27 lines
665 B
Nix

{
pkgs,
lib,
myConfig,
...
}: {
programs.btop = {
enable = true;
package = pkgs.btop.override {rocmSupport = true;};
settings = {
vim_keys = true;
color_theme = "TTY";
theme_background = false;
presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty cpu:0:default,mem:0:default,net:0:default,gpu0:0:default";
};
};
wayland.windowManager.hyprland.settings = lib.mkIf (myConfig.btop.autostart) {
exec-once = [
"uwsm app -- xdg-terminal-exec -e btop -p 2"
];
windowrulev2 = [
"monitor ${myConfig.btop.monitor}, title:^(btop)$"
];
};
}