Compare commits

..

3 commits

Author SHA1 Message Date
3e87972f4b
fix: binding incosistency 2025-12-24 20:17:53 -06:00
35e3a47fe0
feat: fix the binding 2025-12-24 20:08:10 -06:00
3d5dd1bd9c
feat: darwin keybindings on linux 2025-12-24 18:43:36 -06:00
7 changed files with 64 additions and 14 deletions

View file

@ -46,7 +46,7 @@ on-focus-changed = [
alt-v = 'split vertical'
alt-shift-v = 'split horizontal'
alt-f = 'fullscreen'
alt-z = 'fullscreen'
alt-s = 'layout v_accordion'
alt-t = 'layout h_accordion'

View file

@ -61,3 +61,12 @@ keybind = all:ctrl+shift+period=text:\x1b\x1f\x4c\x23\x1f
keybind = shift+enter=text:\x1b\r
keybind = ctrl+left_bracket=text:\x1b
# 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

View file

@ -7,6 +7,11 @@ close_on_child_death yes
confirm_os_window_close 0
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
foreground #d1b897
# cursor-color #ffffff

View file

@ -10,7 +10,7 @@ set shell = "/bin/bash -l"
# Editor
set editor = "nvim"
set edit_headers = yes
set query_command = "notmuch address '%s'"
set query_command = "echo '' && notmuch address from:/%s/"
set attach_save_dir = "~/"
# General settings

View file

@ -112,7 +112,8 @@ in
'';
windowManager.i3 =
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";
miscellaneousMode = "D [p]ause, D [c]ontinue";
resizeMode = " : [h] , [j] , [k] , [l] ";
@ -178,6 +179,8 @@ in
"${modifier}+Shift+p" = "focus mode_toggle";
"${modifier}+Shift+c" = "reload";
"${modifier}+Shift+r" = "restart";
"${modifier}+z" = "fullscreen";
"${modifier}+f" = "nop";
# mode
"${modifier}+r" = ''mode "${resizeMode}"'';
"${modifier}+Escape" = ''mode "${powerManagementMode}"'';
@ -209,7 +212,7 @@ in
# others
"${modifier}+space" = "exec --no-startup-id ${dmenu}";
"${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}";
# reset
"${modifier}+Shift+e" = null;

View file

@ -35,8 +35,41 @@
insert = "S-insert";
};
meta = {
w = "macro(C-w)";
a = "macro(C-a)";
# NOTE: c, v, x are NOT remapped here - they're handled by terminal/app configs
# 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" = { };
};
@ -54,8 +87,8 @@
commonSettings
{
main = {
leftalt = "layer(meta)";
leftmeta = "layer(alt)";
# leftalt = "layer(meta)";
# leftmeta = "layer(alt)";
};
}
];

File diff suppressed because one or more lines are too long