darwin: yabai, skhd. brew -> nix

This commit is contained in:
Guanran Wang 2023-09-20 10:07:33 +08:00
parent 181b4e8446
commit 5c6b79dfaa
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
4 changed files with 28 additions and 20 deletions

View file

@ -39,6 +39,34 @@
programs.zsh.enable = true; # default shell on catalina
programs.fish.enable = true;
services = {
yabai = {
enable = true;
enableScriptingAddition = true;
config = {
layout = "bsp";
mouse_modifier = "fn";
# very broken on slow cpu
#focus_follows_mouse = "autoraise";
#mouse_follows_focus = "on";
top_padding = 10;
bottom_padding = 10;
left_padding = 10;
right_padding = 10;
window_gap = 4;
};
};
skhd = {
enable = true;
skhdConfig = ''
cmd - return : open -n ${pkgs.alacritty}/Applications/Alacritty.app
'';
};
};
system.defaults = {
# Apple... Do I really have to change literally
# every setting in macOS to make it actually usable.

View file

@ -5,8 +5,6 @@
enable = true;
brews = [
"fastfetch" # fastfetch is broken in nixpkgs
"yabai" # b3z/small
];
casks = [
#"alacritty"
@ -32,7 +30,6 @@
];
taps = [
"b3z/small" # activate
"koekeishiya/formulae" # yabai
];
};
}

View file

@ -1,13 +0,0 @@
yabai -m config layout bsp
yabai -m config mouse_modifier fn
# very broken on slow cpu
#yabai -m config focus_follows_mouse autoraise
#yabai -m config mouse_follows_focus on
yabai -m config top_padding 10
yabai -m config bottom_padding 10
yabai -m config left_padding 10
yabai -m config right_padding 10
yabai -m config window_gap 4

View file

@ -15,10 +15,6 @@ in
source = "${configPath}/alacritty";
recursive = true;
};
"yabai" = {
source = "${configPath}/yabai";
recursive = true;
};
"fish" = {
source = "${configPath}/fish";
recursive = true;