Delete yabai & skhd, install amethyst
This commit is contained in:
parent
5a8240bc50
commit
2725aa33e3
2 changed files with 23 additions and 37 deletions
|
|
@ -21,58 +21,38 @@
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
services.yabai = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.yabai;
|
|
||||||
enableScriptingAddition = true;
|
|
||||||
config = {
|
|
||||||
layout = "bsp";
|
|
||||||
window_placement = "second_child";
|
|
||||||
top_padding = 8;
|
|
||||||
bottom_padding = 8;
|
|
||||||
left_padding = 8;
|
|
||||||
right_padding = 8;
|
|
||||||
window_gap = 8;
|
|
||||||
mouse_follows_focus = "on";
|
|
||||||
mouse_modifier = "alt";
|
|
||||||
mouse_action1 = "move";
|
|
||||||
mouse_action2 = "resize";
|
|
||||||
mouse_drop_action = "swap";
|
|
||||||
};
|
|
||||||
extraConfig = ''
|
|
||||||
yabai -m rule --add app="^System Settings$" manage=off
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
services.skhd = {
|
|
||||||
enable = true;
|
|
||||||
skhdConfig = ''
|
|
||||||
alt - h : yabai -m window --focus west
|
|
||||||
alt - l : yabai -m window --focus east
|
|
||||||
alt - j : yabai -m window --focus south
|
|
||||||
alt - k : yabai -m window --focus north
|
|
||||||
alt - p : yabei -m display --focus west
|
|
||||||
alt - n : yabei -m display --focus east
|
|
||||||
alt - y : yabai -m space --mirror x-axis
|
|
||||||
alt - m : yabai -m window --toggle zoom-fullscreen
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
system.defaults = {
|
system.defaults = {
|
||||||
dock.autohide = true;
|
dock.autohide = true;
|
||||||
|
dock.autohide-time-modifier = 0.1;
|
||||||
|
dock.expose-animation-duration = 0.0;
|
||||||
dock.mru-spaces = false;
|
dock.mru-spaces = false;
|
||||||
dock.orientation = "right";
|
dock.orientation = "right";
|
||||||
NSGlobalDomain.InitialKeyRepeat = 14;
|
NSGlobalDomain.InitialKeyRepeat = 14;
|
||||||
NSGlobalDomain.KeyRepeat = 1;
|
NSGlobalDomain.KeyRepeat = 1;
|
||||||
NSGlobalDomain.AppleFontSmoothing = 1;
|
NSGlobalDomain.AppleShowAllExtensions = true;
|
||||||
|
NSGlobalDomain.AppleShowAllFiles = true;
|
||||||
|
NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
|
||||||
finder.AppleShowAllExtensions = true;
|
finder.AppleShowAllExtensions = true;
|
||||||
finder.AppleShowAllFiles = true;
|
finder.AppleShowAllFiles = true;
|
||||||
finder.CreateDesktop = false;
|
finder.CreateDesktop = false;
|
||||||
|
finder.FXPreferredViewStyle = "Nlsv";
|
||||||
|
finder.QuitMenuItem = true;
|
||||||
|
finder._FXShowPosixPathInTitle = true;
|
||||||
|
menuExtraClock.ShowDate = 0;
|
||||||
|
menuExtraClock.ShowDayOfWeek = false;
|
||||||
};
|
};
|
||||||
|
users.users.tobi.description = "Tobias Ostner";
|
||||||
users.users.tobi.home = "/Users/tobi";
|
users.users.tobi.home = "/Users/tobi";
|
||||||
|
users.users.tobi.shell = pkgs.zshInteractive;
|
||||||
homebrew = {
|
homebrew = {
|
||||||
enable = true;
|
enable = true;
|
||||||
brews = [
|
brews = [
|
||||||
"imagemagick"
|
"imagemagick"
|
||||||
"trippy"
|
"trippy"
|
||||||
];
|
];
|
||||||
|
casks = [
|
||||||
|
"firefox"
|
||||||
|
"amethyst"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -48,4 +48,10 @@
|
||||||
decorations = "Buttonless";
|
decorations = "Buttonless";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
xdg.configFile."amethyst/amethyst.yml".text = ''
|
||||||
|
window-margins: true
|
||||||
|
window-margin-size: 10
|
||||||
|
mouse-swaps-windows: true
|
||||||
|
mouse-resizes-windows: true
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue