Skip to content

Commit

Permalink
Merge pull request #3 from link108/kitty
Browse files Browse the repository at this point in the history
adding kitty configs
  • Loading branch information
link108 authored Feb 23, 2024
2 parents 11b92d7 + 5441e86 commit e7ab36b
Show file tree
Hide file tree
Showing 2 changed files with 2,456 additions and 0 deletions.
54 changes: 54 additions & 0 deletions config/kitty/kitty.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@




# Remaps
macos_option_as_alt yes
map cmd+enter toggle_fullscreen
map cmd+shift+enter toggle_layout stack

########################
##### Cursor movement
########################
map alt+f send_text all \x1b\x66
map alt+b send_text all \x1b\x62


########################
##### Windows - Splits layout
##### from https://sw.kovidgoyal.net/kitty/layouts/#the-splits-layout
########################

enabled_layouts splits:split_axis=horizontal, stack

map cmd+minus no_op
map cmd+minus launch --location=hsplit
map cmd+0x2a launch --location=vsplit

# 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

# Switch focus to the neighboring window in the indicated direction
map cmd+h neighboring_window left
map cmd+l neighboring_window right
map cmd+k neighboring_window up
map cmd+j neighboring_window down

########################
###### Resizing Windows
###### from https://sw.kovidgoyal.net/kitty/layouts/#window-resizing
########################

map cmd+shift+h resize_window narrower
map cmd+shift+l resize_window wider
map cmd+shift+j resize_window shorter
map cmd+shift+k resize_window taller
Loading

0 comments on commit e7ab36b

Please sign in to comment.