From 2fb39e8b60bcc037c568c5fcc15780fb145aa43b Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Thu, 14 Nov 2024 22:16:42 +0100 Subject: [PATCH] Change some keyboard shortcuts in sway to align with aerospace config on mac. Also rebind capslock to escape. --- linux_home/.config/sway/config | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/linux_home/.config/sway/config b/linux_home/.config/sway/config index 81598e3..ec12d54 100644 --- a/linux_home/.config/sway/config +++ b/linux_home/.config/sway/config @@ -1,4 +1,10 @@ include catppuccin_macchiato + +# Remap caps lock to escape +input * { + xkb_options "caps:escape" +} + # Logo key. Use Mod1 for Alt. set $mod Mod4 # Your preferred terminal emulator @@ -76,18 +82,18 @@ exec_always --no-startup-id ~/.config/sway/dim_inactive.windows.py # Layout stuff: # # Inverse the split to match neovim directions - bindsym $mod+v splith - bindsym $mod+h splitv + bindsym $mod+Shift+v splith + bindsym $mod+Shift+h splitv # Switch the current container between different layout styles - bindsym $mod+t layout tabbed - bindsym $mod+s layout toggle split + bindsym $mod+Shift+t layout tabbed + bindsym $mod+Shift+s layout toggle split # Make the current focus fullscreen - bindsym $mod+f fullscreen + bindsym $mod+Shift+f fullscreen # Move focus to the parent container - bindsym $mod+a focus parent + bindsym $mod+Shift+a focus parent # Resizing containers: # mode "resize" {