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.
This commit is contained in:
kenji
2026-03-08 11:36:13 -05:00
parent 318718aabd
commit c86358010c
2 changed files with 23 additions and 2 deletions
+15 -2
View File
@@ -1,8 +1,12 @@
{ pkgs, ... }:
{
pkgs,
lib,
myConfig,
...
}: {
programs.btop = {
enable = true;
package = pkgs.btop.override { rocmSupport = true; };
package = pkgs.btop.override {rocmSupport = true;};
settings = {
vim_keys = true;
color_theme = "TTY";
@@ -10,4 +14,13 @@
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)$"
];
};
}