]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Use cmd for kitty layout shortcuts
authorRuben Beltran del Rio <redacted>
Tue, 17 Dec 2024 22:45:39 +0000 (23:45 +0100)
committerRuben Beltran del Rio <redacted>
Tue, 17 Dec 2024 22:45:39 +0000 (23:45 +0100)
config/kitty/kitty.conf

index bdce07fff9b5f4de02a827cae006765be955f3db..5bc1968791c1f0de0768d3f2659ca01cee6f62fb 100644 (file)
@@ -136,31 +136,30 @@ color15 #ffffff
 hide_window_decorations titlebar-only
 window_margin_width 10 5 5
 tab_bar_style separator
+tab_separator " ⁣ "
 tab_bar_margin_width 5.0
 
+enabled_layouts splits,tall,fat,grid,stack
+
 # keyboard
 macos_option_as_alt left
 
 # Splits and Navigation, Tmux Style
-map ctrl+a>- launch --location=hsplit
-map ctrl+a>| launch --location=vsplit
+map cmd+a>- launch --location=hsplit
+map cmd+a>| launch --location=vsplit
 # map f7 layout_action rotate
 
-# Switch focus to the neighboring window in the indicated direction
-map ctrl+a>h neighboring_window left
-map ctrl+a>l neighboring_window right
-map ctrl+a>k neighboring_window up
-map ctrl+a>j neighboring_window down
+# Navigate Windows
+map cmd+a>h neighboring_window left
+map cmd+a>l neighboring_window right
+map cmd+a>k neighboring_window up
+map cmd+a>j neighboring_window down
 
 # Move the active window in the indicated direction
-map shift+up move_window up
-map shift+left move_window left
-map shift+right move_window right
-map shift+down move_window down
-
-# Move the active window to the indicated screen edge
-map ctrl+shift+up layout_action move_to_screen_edge top
-map ctrl+shift+left layout_action move_to_screen_edge left
-map ctrl+shift+right layout_action move_to_screen_edge right
-map ctrl+shift+down layout_action move_to_screen_edge bottom
+map cmd+a>shift+h move_window left
+map cmd+a>shift+l move_window right
+map cmd+a>shift+k move_window up
+map cmd+a>shift+j move_window down
 
+map cmd+a>, set_tab_title
+map cmd+a>z toggle_layout stack