Add special system monitor workspace

This commit is contained in:
SebastianStork 2024-08-13 15:49:28 +02:00
parent a84721bcf1
commit 5c5e2414e3
4 changed files with 18 additions and 6 deletions

View file

@ -132,6 +132,11 @@
workspace = special:flake, border:false, gapsout:30, on-created-empty:kitty --override background_opacity=0.7 --directory ${config.home.sessionVariables.FLAKE} workspace = special:flake, border:false, gapsout:30, on-created-empty:kitty --override background_opacity=0.7 --directory ${config.home.sessionVariables.FLAKE}
windowrulev2 = noblur, class:(kitty), onworkspace:special:flake windowrulev2 = noblur, class:(kitty), onworkspace:special:flake
bind = SUPER, Q, togglespecialworkspace, flake bind = SUPER, Q, togglespecialworkspace, flake
# System monitor workspace
workspace = special:monitor, border:false, gapsout:30, on-created-empty:kitty btm
exec-once = [workspace special:monitor silent] kitty btm
bind = SUPER, M, togglespecialworkspace, monitor
''; '';
}; };
} }

View file

@ -9,7 +9,6 @@
home.packages = [ home.packages = [
pkgs.eza pkgs.eza
pkgs.bat pkgs.bat
pkgs.bottom
]; ];
home.shellAliases = home.shellAliases =
@ -79,15 +78,10 @@
{ {
cat = "bat --plain --theme=${theme}"; cat = "bat --plain --theme=${theme}";
}; };
bottomAlias = {
btm = "btm --group";
};
in in
lib.mkMerge [ lib.mkMerge [
lsAliases lsAliases
catAlias catAlias
bottomAlias
]; ];
}; };
} }

View file

@ -19,6 +19,7 @@
}; };
home.packages = [ home.packages = [
wrappers.bottom
pkgs.fastfetch pkgs.fastfetch
(wrappers.kitty { inherit (config.myConfig) theme; }) (wrappers.kitty { inherit (config.myConfig) theme; })

12
wrappers/bottom.nix Normal file
View file

@ -0,0 +1,12 @@
{ inputs, pkgs, ... }:
(inputs.wrapper-manager.lib {
inherit pkgs;
modules = [
{
wrappers.bottom = {
basePackage = pkgs.bottom;
flags = [ "--group" ];
};
}
];
}).config.wrappers.bottom.wrapped