feat: darwin keybindings on linux
This commit is contained in:
parent
9d5941dacc
commit
3d5dd1bd9c
6 changed files with 53 additions and 10 deletions
|
|
@ -61,3 +61,8 @@ keybind = all:ctrl+shift+period=text:\x1b\x1f\x4c\x23\x1f
|
||||||
keybind = shift+enter=text:\x1b\r
|
keybind = shift+enter=text:\x1b\r
|
||||||
keybind = ctrl+left_bracket=text:\x1b
|
keybind = ctrl+left_bracket=text:\x1b
|
||||||
# keybind = ctrl+a=text:\x01
|
# keybind = ctrl+a=text:\x01
|
||||||
|
|
||||||
|
# macOS-style copy/paste (Super = Cmd equivalent)
|
||||||
|
keybind = super+c=copy_to_clipboard
|
||||||
|
keybind = super+v=paste_from_clipboard
|
||||||
|
keybind = super+a=select_all
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,11 @@ close_on_child_death yes
|
||||||
confirm_os_window_close 0
|
confirm_os_window_close 0
|
||||||
macos_option_as_alt yes
|
macos_option_as_alt yes
|
||||||
|
|
||||||
|
# macOS-style copy/paste (Super = Cmd equivalent)
|
||||||
|
map super+c copy_to_clipboard
|
||||||
|
map super+v paste_from_clipboard
|
||||||
|
map super+a select_all
|
||||||
|
|
||||||
background #062329
|
background #062329
|
||||||
foreground #d1b897
|
foreground #d1b897
|
||||||
# cursor-color #ffffff
|
# cursor-color #ffffff
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ set shell = "/bin/bash -l"
|
||||||
# Editor
|
# Editor
|
||||||
set editor = "nvim"
|
set editor = "nvim"
|
||||||
set edit_headers = yes
|
set edit_headers = yes
|
||||||
set query_command = "notmuch address '%s'"
|
set query_command = "echo '' && notmuch address from:/%s/"
|
||||||
set attach_save_dir = "~/"
|
set attach_save_dir = "~/"
|
||||||
|
|
||||||
# General settings
|
# General settings
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ in
|
||||||
'';
|
'';
|
||||||
windowManager.i3 =
|
windowManager.i3 =
|
||||||
let
|
let
|
||||||
modifier = "Mod4";
|
modifier = "Mod1"; # Alt key for i3, freeing Super for macOS-like app shortcuts
|
||||||
powerManagementMode = " : Screen [l]ock, [e]xit, [s]uspend, [h]ibernate, [R]eboot, [S]hutdown";
|
powerManagementMode = " : Screen [l]ock, [e]xit, [s]uspend, [h]ibernate, [R]eboot, [S]hutdown";
|
||||||
miscellaneousMode = "D [p]ause, D [c]ontinue";
|
miscellaneousMode = "D [p]ause, D [c]ontinue";
|
||||||
resizeMode = " : [h] , [j] , [k] , [l] ";
|
resizeMode = " : [h] , [j] , [k] , [l] ";
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,41 @@
|
||||||
insert = "S-insert";
|
insert = "S-insert";
|
||||||
};
|
};
|
||||||
meta = {
|
meta = {
|
||||||
w = "macro(C-w)";
|
# NOTE: c, v, x are NOT remapped here - they're handled by terminal/app configs
|
||||||
a = "macro(C-a)";
|
# This preserves Ctrl+C = SIGINT in terminals (macOS behavior)
|
||||||
|
|
||||||
|
# Undo/Redo/Save/Select All/Find
|
||||||
|
z = "C-z";
|
||||||
|
"shift+z" = "C-y";
|
||||||
|
s = "C-s";
|
||||||
|
a = "C-a";
|
||||||
|
f = "C-f";
|
||||||
|
|
||||||
|
# Tab/Window management
|
||||||
|
w = "C-w";
|
||||||
|
t = "C-t";
|
||||||
|
n = "C-n";
|
||||||
|
q = "A-F4";
|
||||||
|
|
||||||
|
# Text navigation (macOS-style)
|
||||||
|
left = "home";
|
||||||
|
right = "end";
|
||||||
|
up = "C-home";
|
||||||
|
down = "C-end";
|
||||||
|
backspace = "C-backspace";
|
||||||
|
|
||||||
|
# Other common shortcuts
|
||||||
|
r = "C-r";
|
||||||
|
p = "C-p";
|
||||||
|
o = "C-o";
|
||||||
|
l = "C-l";
|
||||||
|
"/" = "C-/";
|
||||||
|
};
|
||||||
|
"meta+shift" = {
|
||||||
|
left = "S-home";
|
||||||
|
right = "S-end";
|
||||||
|
up = "C-S-home";
|
||||||
|
down = "C-S-end";
|
||||||
};
|
};
|
||||||
"capslock:C" = { };
|
"capslock:C" = { };
|
||||||
};
|
};
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue