Compare commits
3 commits
9d5941dacc
...
3e87972f4b
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e87972f4b | |||
| 35e3a47fe0 | |||
| 3d5dd1bd9c |
7 changed files with 64 additions and 14 deletions
|
|
@ -46,7 +46,7 @@ on-focus-changed = [
|
||||||
alt-v = 'split vertical'
|
alt-v = 'split vertical'
|
||||||
alt-shift-v = 'split horizontal'
|
alt-shift-v = 'split horizontal'
|
||||||
|
|
||||||
alt-f = 'fullscreen'
|
alt-z = 'fullscreen'
|
||||||
|
|
||||||
alt-s = 'layout v_accordion'
|
alt-s = 'layout v_accordion'
|
||||||
alt-t = 'layout h_accordion'
|
alt-t = 'layout h_accordion'
|
||||||
|
|
|
||||||
|
|
@ -61,3 +61,12 @@ 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
|
||||||
|
|
||||||
|
keybind = alt+c=copy_to_clipboard
|
||||||
|
keybind = alt+v=paste_from_clipboard
|
||||||
|
keybind = alt+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,8 @@ in
|
||||||
'';
|
'';
|
||||||
windowManager.i3 =
|
windowManager.i3 =
|
||||||
let
|
let
|
||||||
modifier = "Mod4";
|
modifier = "Mod4"; # Alt key for i3, freeing Super for macOS-like app shortcuts
|
||||||
|
# superModifier = "Mod1";
|
||||||
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] ";
|
||||||
|
|
@ -178,6 +179,8 @@ in
|
||||||
"${modifier}+Shift+p" = "focus mode_toggle";
|
"${modifier}+Shift+p" = "focus mode_toggle";
|
||||||
"${modifier}+Shift+c" = "reload";
|
"${modifier}+Shift+c" = "reload";
|
||||||
"${modifier}+Shift+r" = "restart";
|
"${modifier}+Shift+r" = "restart";
|
||||||
|
"${modifier}+z" = "fullscreen";
|
||||||
|
"${modifier}+f" = "nop";
|
||||||
# mode
|
# mode
|
||||||
"${modifier}+r" = ''mode "${resizeMode}"'';
|
"${modifier}+r" = ''mode "${resizeMode}"'';
|
||||||
"${modifier}+Escape" = ''mode "${powerManagementMode}"'';
|
"${modifier}+Escape" = ''mode "${powerManagementMode}"'';
|
||||||
|
|
@ -209,7 +212,7 @@ in
|
||||||
# others
|
# others
|
||||||
"${modifier}+space" = "exec --no-startup-id ${dmenu}";
|
"${modifier}+space" = "exec --no-startup-id ${dmenu}";
|
||||||
"${modifier}+b" = "exec --no-startup-id ${terminal} -e ${yazi}";
|
"${modifier}+b" = "exec --no-startup-id ${terminal} -e ${yazi}";
|
||||||
"${modifier}+z" = "exec --no-startup-id ${boomer}"; # tsoding's zoom
|
"${modifier}+x" = "exec --no-startup-id ${boomer}"; # tsoding's zoom
|
||||||
# "${modifier}+Shift+Return" = "exec ${second_terminal}";
|
# "${modifier}+Shift+Return" = "exec ${second_terminal}";
|
||||||
# reset
|
# reset
|
||||||
"${modifier}+Shift+e" = null;
|
"${modifier}+Shift+e" = null;
|
||||||
|
|
|
||||||
|
|
@ -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" = { };
|
||||||
};
|
};
|
||||||
|
|
@ -54,8 +87,8 @@
|
||||||
commonSettings
|
commonSettings
|
||||||
{
|
{
|
||||||
main = {
|
main = {
|
||||||
leftalt = "layer(meta)";
|
# leftalt = "layer(meta)";
|
||||||
leftmeta = "layer(alt)";
|
# leftmeta = "layer(alt)";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue