diff --git a/users/teidesu/assets/aerospace/aerospace.toml b/users/teidesu/assets/aerospace/aerospace.toml new file mode 100644 index 0000000..aa612ae --- /dev/null +++ b/users/teidesu/assets/aerospace/aerospace.toml @@ -0,0 +1,114 @@ +after-login-command = [] +after-startup-command = [] + +start-at-login = false + +enable-normalization-flatten-containers = true +enable-normalization-opposite-orientation-for-nested-containers = true + +accordion-padding = 8 + +default-root-container-layout = 'tiles' +default-root-container-orientation = 'auto' + +automatically-unhide-macos-hidden-apps = true + +[key-mapping] +preset = 'qwerty' + +[gaps] +inner.horizontal = 0 +inner.vertical = 0 +outer.left = 0 +outer.bottom = 0 +outer.top = 0 +outer.right = 0 + +[mode.main.binding] + +alt-slash = 'layout tiles horizontal vertical' +alt-comma = 'layout accordion horizontal vertical' +alt-period = 'layout floating tiling' + +alt-p = 'focus up' +alt-l = 'focus left' +alt-semicolon = 'focus down' +alt-quote = 'focus right' + +alt-shift-p = 'move up' +alt-shift-l = 'move left' +alt-shift-semicolon = 'move down' +alt-shift-quote = 'move right' + +alt-cmd-p = ['join-with up', 'mode main'] +alt-cmd-l = ['join-with left', 'mode main'] +alt-cmd-semicolon = ['join-with down', 'mode main'] +alt-cmd-quote = ['join-with right', 'mode main'] + +# See: https://nikitabobko.github.io/AeroSpace/commands#resize +alt-shift-minus = 'resize smart -50' +alt-shift-equal = 'resize smart +50' + +# See: https://nikitabobko.github.io/AeroSpace/commands#workspace +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-q = 'workspace Q' +alt-w = 'workspace W' +alt-a = 'workspace A' +alt-s = 'workspace S' +alt-z = 'workspace Z' +alt-x = 'workspace X' + +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-q = 'move-node-to-workspace Q' +alt-shift-w = 'move-node-to-workspace W' +alt-shift-a = 'move-node-to-workspace A' +alt-shift-s = 'move-node-to-workspace S' +alt-shift-z = 'move-node-to-workspace Z' +alt-shift-x = 'move-node-to-workspace X' + +alt-tab = 'workspace-back-and-forth' +alt-shift-tab = 'move-workspace-to-monitor --wrap-around next' + +# See: https://nikitabobko.github.io/AeroSpace/commands#mode +alt-shift-period = 'mode service' + +# 'service' binding mode declaration. +# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes +[mode.service.binding] +esc = ['reload-config', 'mode main'] +r = ['flatten-workspace-tree', 'mode main'] # reset layout +f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout +backspace = ['close-all-windows-but-current', 'mode main'] + +[[on-window-detected]] +if.app-id = 'org.mozilla.firefoxdeveloperedition' +run = 'move-node-to-workspace W' + +[[on-window-detected]] +if.app-id = 'com.microsoft.VSCode' +run = 'move-node-to-workspace S' + +[[on-window-detected]] +if.app-id = 'com.tdesktop.Telegram' +run = 'move-node-to-workspace Q' + +# make all other windows floating by default +[[on-window-detected]] +check-further-callbacks = true +run = 'layout floating' \ No newline at end of file diff --git a/users/teidesu/assets/karabiner/new-ff-tab.scpt b/users/teidesu/assets/karabiner/new-ff-tab.scpt index 66cf313..ea56087 100644 --- a/users/teidesu/assets/karabiner/new-ff-tab.scpt +++ b/users/teidesu/assets/karabiner/new-ff-tab.scpt @@ -1,4 +1,4 @@ -tell application "Firefox Nightly" +tell application "Firefox Developer Edition" activate tell application "System Events" tell process "firefox" diff --git a/users/teidesu/darwin.nix b/users/teidesu/darwin.nix index 0417bc8..7cef247 100644 --- a/users/teidesu/darwin.nix +++ b/users/teidesu/darwin.nix @@ -64,5 +64,9 @@ source = ./assets/linearmouse; recursive = true; }; + home.file.".config/aerospace" = { + source = ./assets/aerospace; + recursive = true; + }; }; } \ No newline at end of file