62 lines
1.6 KiB
Nix
62 lines
1.6 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
home.file.".aerospace.toml".text = ''
|
|
# Make all new windows floating by default
|
|
[[on-window-detected]]
|
|
run = ['layout floating']
|
|
|
|
[mode.main.binding]
|
|
alt-enter = 'layout floating tiling'
|
|
alt-f = 'fullscreen'
|
|
alt-q = 'close'
|
|
|
|
# Window focus (vim-style)
|
|
alt-h = 'focus left'
|
|
alt-j = 'focus down'
|
|
alt-k = 'focus up'
|
|
alt-l = 'focus right'
|
|
|
|
# Move windows
|
|
alt-shift-h = 'move left'
|
|
alt-shift-j = 'move down'
|
|
alt-shift-k = 'move up'
|
|
alt-shift-l = 'move right'
|
|
|
|
# Resize
|
|
alt-minus = 'resize smart -50'
|
|
alt-equal = 'resize smart +50'
|
|
|
|
# Workspaces
|
|
alt-1 = 'workspace 1'
|
|
alt-2 = 'workspace 2'
|
|
alt-3 = 'workspace 3'
|
|
alt-4 = 'workspace 4'
|
|
alt-5 = 'workspace 5'
|
|
alt-6 = 'workspace 6'
|
|
alt-7 = 'workspace 7'
|
|
alt-8 = 'workspace 8'
|
|
alt-9 = 'workspace 9'
|
|
alt-0 = 'workspace 10'
|
|
|
|
# Focus monitor
|
|
alt-comma = 'focus-monitor prev'
|
|
alt-period = 'focus-monitor next'
|
|
|
|
# Move window to monitor
|
|
alt-shift-comma = 'move-node-to-monitor prev'
|
|
alt-shift-period = 'move-node-to-monitor next'
|
|
|
|
# Move window to workspace
|
|
alt-shift-1 = 'move-node-to-workspace 1'
|
|
alt-shift-2 = 'move-node-to-workspace 2'
|
|
alt-shift-3 = 'move-node-to-workspace 3'
|
|
alt-shift-4 = 'move-node-to-workspace 4'
|
|
alt-shift-5 = 'move-node-to-workspace 5'
|
|
alt-shift-6 = 'move-node-to-workspace 6'
|
|
alt-shift-7 = 'move-node-to-workspace 7'
|
|
alt-shift-8 = 'move-node-to-workspace 8'
|
|
alt-shift-9 = 'move-node-to-workspace 9'
|
|
alt-shift-0 = 'move-node-to-workspace 10'
|
|
'';
|
|
}
|