From e07320c9fb3fd23fc1e491b42a808d8436ca8f48 Mon Sep 17 00:00:00 2001 From: Elias Almqvist Date: Thu, 25 Jul 2024 16:47:58 -0700 Subject: [PATCH] nix: add yabai + skhd --- nix-darwin/home.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/nix-darwin/home.nix b/nix-darwin/home.nix index 92dc421..f683a8b 100644 --- a/nix-darwin/home.nix +++ b/nix-darwin/home.nix @@ -77,6 +77,10 @@ # Tools nmap dig + + # DE/WM/Ricing + yabai # wm + skhd # key mngr ]; # Home Manager is pretty good at managing dotfiles. The primary way to manage @@ -154,4 +158,32 @@ vimAlias = true; defaultEditor = true; }; + + # Services + + # yabai (wm) + services.yabai = { + enable = true; + package = pkgs.yabai; + config = { + layout = "bsp"; + auto_balance = "on"; + split_ratio = 0.50; + window_placement = "second_child"; + }; + # extraConfig = '' + # ''; + }; + + # skhd (keybinds etc.) + services.skhd = { + enable = true; + package = pkgs.skhd; + skhdConfig = '' + # Add your skhd keybindings here + # For example: + # alt - return : open -n /Applications/iTerm.app + # shift + alt - r : yabai -m space --rotate 90 + ''; + }; }