feat/binding-darwin-on-linux #1

Merged
rayandrew merged 3 commits from feat/binding-darwin-on-linux into master 2025-12-24 20:18:30 -06:00
6 changed files with 53 additions and 10 deletions
Showing only changes of commit 3d5dd1bd9c - Show all commits

View file

@ -61,3 +61,8 @@ 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

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,7 @@ in
'';
windowManager.i3 =
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";
miscellaneousMode = "D [p]ause, D [c]ontinue";
resizeMode = " : [h] , [j] , [k] , [l] ";

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" = { };
};

File diff suppressed because one or more lines are too long