more yabai & rice stuff

master
Elias Almqvist 4 months ago
parent 4e45674770
commit 21eefbf136
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 4
      nix-darwin/home.nix
  2. 21
      nix-darwin/modules/yabai.nix

@ -80,6 +80,10 @@
tmux tmux
htop htop
# Cringe
pfetch
neofetch
# Tools # Tools
nmap nmap
dig dig

@ -1,5 +1,9 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
let
split_ratio = "0.50";
gap_padding = "16";
in
{ {
# Create configuration files for yabai and skhd # Create configuration files for yabai and skhd
home.file.".yabairc" = { home.file.".yabairc" = {
@ -14,10 +18,23 @@
# global settings # global settings
yabai -m config layout bsp yabai -m config layout bsp
yabai -m config window_placement second_child yabai -m config window_placement second_child
yabai -m config split_ratio 0.50 yabai -m config split_ratio ${split_ratio}
yabai -m config auto_balance on yabai -m config auto_balance on
# Add more yabai configuration here # Set all padding and gaps
yabai -m config top_padding ${gap_padding}
yabai -m config bottom_padding ${gap_padding}
yabai -m config left_padding ${gap_padding}
yabai -m config right_padding ${gap_padding}
yabai -m config window_gap ${gap_padding}
# mouse stuff
# yabai -m config mouse_follows_focus on
yabai -m config focus_follows_mouse autofocus
yabai -m config mouse_modifier cmd
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
''; '';
}; };
} }

Loading…
Cancel
Save