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:
+15
-2
@@ -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)$"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user