Skip to content

Commit 6a29176

Browse files
committed
feat: remap ARM64 keybindings for Apple Magic Keyboard compatibility
- Kitty: new window with ctrl+enter and super+enter - Kitty: scroll buffer with ctrl+shift+hjkl - Kitty: panel navigation with ctrl+shift+arrows - sxhkd: ctrl+{1-9,0} for desktop switching
1 parent 93acdeb commit 6a29176

2 files changed

Lines changed: 15 additions & 10 deletions

File tree

config-arm64/kitty/kitty.conf

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ inactive_tab_background #5e35b1
5959
inactive_tab_font_style normal
6060

6161
# KEYMAPS
62-
map ctrl+left neighboring_window left
63-
map ctrl+right neighboring_window right
64-
map ctrl+up neighboring_window up
65-
map ctrl+down neighboring_window down
62+
map ctrl+shift+left neighboring_window left
63+
map ctrl+shift+right neighboring_window right
64+
map ctrl+shift+up neighboring_window up
65+
map ctrl+shift+down neighboring_window down
6666

6767
map f1 copy_to_buffer a
6868
map f2 paste_from_buffer a
@@ -71,14 +71,15 @@ map f4 paste_from_buffer b
7171

7272
map ctrl+shift+z toggle_layout stack
7373

74-
map ctrl+shift+enter new_window_with_cwd
74+
map ctrl+enter new_window_with_cwd
75+
map super+enter new_window_with_cwd
7576
map ctrl+shift+t new_tab_with_cwd
7677

77-
# MOVE IN SHELL BUFFERS
78-
map shift+alt+up scroll_home
79-
map shift+alt+down scroll_end
80-
map shift+alt+left scroll_page_up
81-
map shift+alt+right scroll_page_down
78+
# SCROLL BUFFER
79+
map ctrl+shift+k scroll_page_up
80+
map ctrl+shift+j scroll_page_down
81+
map ctrl+shift+h scroll_home
82+
map ctrl+shift+l scroll_end
8283

8384
# MOVE PANELS
8485
map shift+left resize_window wider 5

config-arm64/sxhkd/sxhkdrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ super + {o,i}
9696
super + {_,shift + }{1-9,0}
9797
bspc {desktop -f,node -d} '^{1-9,10}'
9898

99+
# Control + number = change desktop, Control + Shift + number = move window (Apple Magic Keyboard)
100+
ctrl + {_,shift + }{1-9,0}
101+
bspc {desktop -f,node -d} '^{1-9,10}'
102+
99103
# Alternative with Alt + F-keys (for Mac/Parallels compatibility)
100104
# Alt + F1-F10 = change desktop, Alt + Shift + F1-F10 = move window
101105
alt + {_,shift + }{F1,F2,F3,F4,F5,F6,F7,F8,F9,F10}

0 commit comments

Comments
 (0)