From 5c5e2414e3f096d741d3bd469aba923cd723314c Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Tue, 13 Aug 2024 15:49:28 +0200 Subject: [PATCH] Add special system monitor workspace --- modules/home/hyprland/keybinds.nix | 5 +++++ modules/home/shell/aliases.nix | 6 ------ users/seb/home.nix | 1 + wrappers/bottom.nix | 12 ++++++++++++ 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 wrappers/bottom.nix diff --git a/modules/home/hyprland/keybinds.nix b/modules/home/hyprland/keybinds.nix index d728318..ec62c0b 100644 --- a/modules/home/hyprland/keybinds.nix +++ b/modules/home/hyprland/keybinds.nix @@ -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} windowrulev2 = noblur, class:(kitty), onworkspace:special: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 ''; }; } diff --git a/modules/home/shell/aliases.nix b/modules/home/shell/aliases.nix index 3a4859b..8fda9f6 100644 --- a/modules/home/shell/aliases.nix +++ b/modules/home/shell/aliases.nix @@ -9,7 +9,6 @@ home.packages = [ pkgs.eza pkgs.bat - pkgs.bottom ]; home.shellAliases = @@ -79,15 +78,10 @@ { cat = "bat --plain --theme=${theme}"; }; - - bottomAlias = { - btm = "btm --group"; - }; in lib.mkMerge [ lsAliases catAlias - bottomAlias ]; }; } diff --git a/users/seb/home.nix b/users/seb/home.nix index 8f73c2e..ee02777 100644 --- a/users/seb/home.nix +++ b/users/seb/home.nix @@ -19,6 +19,7 @@ }; home.packages = [ + wrappers.bottom pkgs.fastfetch (wrappers.kitty { inherit (config.myConfig) theme; }) diff --git a/wrappers/bottom.nix b/wrappers/bottom.nix new file mode 100644 index 0000000..491c99d --- /dev/null +++ b/wrappers/bottom.nix @@ -0,0 +1,12 @@ +{ inputs, pkgs, ... }: +(inputs.wrapper-manager.lib { + inherit pkgs; + modules = [ + { + wrappers.bottom = { + basePackage = pkgs.bottom; + flags = [ "--group" ]; + }; + } + ]; +}).config.wrappers.bottom.wrapped