darwin: yabai, skhd. brew -> nix
This commit is contained in:
parent
181b4e8446
commit
5c6b79dfaa
4 changed files with 28 additions and 20 deletions
|
@ -39,6 +39,34 @@
|
||||||
programs.zsh.enable = true; # default shell on catalina
|
programs.zsh.enable = true; # default shell on catalina
|
||||||
programs.fish.enable = true;
|
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 = {
|
system.defaults = {
|
||||||
# Apple... Do I really have to change literally
|
# Apple... Do I really have to change literally
|
||||||
# every setting in macOS to make it actually usable.
|
# every setting in macOS to make it actually usable.
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
brews = [
|
brews = [
|
||||||
"fastfetch" # fastfetch is broken in nixpkgs
|
"fastfetch" # fastfetch is broken in nixpkgs
|
||||||
|
|
||||||
"yabai" # b3z/small
|
|
||||||
];
|
];
|
||||||
casks = [
|
casks = [
|
||||||
#"alacritty"
|
#"alacritty"
|
||||||
|
@ -32,7 +30,6 @@
|
||||||
];
|
];
|
||||||
taps = [
|
taps = [
|
||||||
"b3z/small" # activate
|
"b3z/small" # activate
|
||||||
"koekeishiya/formulae" # yabai
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -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
|
|
|
@ -15,10 +15,6 @@ in
|
||||||
source = "${configPath}/alacritty";
|
source = "${configPath}/alacritty";
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
"yabai" = {
|
|
||||||
source = "${configPath}/yabai";
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
"fish" = {
|
"fish" = {
|
||||||
source = "${configPath}/fish";
|
source = "${configPath}/fish";
|
||||||
recursive = true;
|
recursive = true;
|
||||||
|
|
Loading…
Reference in a new issue