1
0
Fork 0
dotfiles/home/programs/aerospace.nix
Daniel Kempkens 1b67156339
All checks were successful
Build / build-amd64-linux (push) Successful in 42s
Build / build-arm64-linux (push) Successful in 3m23s
Update deps
2024-06-07 23:19:55 +02:00

61 lines
1.4 KiB
Nix

{ pkgs, lib, ... }:
let
settingsFormat = pkgs.formats.toml { };
settings = {
start-at-login = true;
enable-normalization-flatten-containers = false;
enable-normalization-opposite-orientation-for-nested-containers = false;
default-root-container-layout = "tiles";
default-root-container-orientation = "auto";
gaps = {
inner = {
horizontal = 10;
vertical = 10;
};
outer = {
left = 10;
bottom = 10;
top = 10;
right = 10;
};
};
key-mapping = {
preset = "qwerty";
};
mode.main.binding =
let
meh = "ctrl-alt-shift";
in
{
"${meh}-h" = "move left";
"${meh}-j" = "move down";
"${meh}-k" = "move up";
"${meh}-l" = "move right";
"${meh}-w" = "move-node-to-monitor --wrap-around left";
"${meh}-e" = "move-node-to-monitor --wrap-around right";
"${meh}-f" = "fullscreen";
"${meh}-t" = "layout floating tiling";
};
};
in
{
home.packages = [ pkgs.aerospace ];
xdg.configFile."aerospace/aerospace.toml".source = settingsFormat.generate "aerospace.toml" settings;
home.activation.aeorspaceConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] /* bash */ ''
$VERBOSE_ECHO "Reloading configuration"
$DRY_RUN_CMD ${pkgs.aerospace}/bin/aerospace reload-config
'';
}