From 6424413fa6d073a30e206bf84f04d930219029d9 Mon Sep 17 00:00:00 2001 From: Petr Nyc Date: Sat, 11 Feb 2023 21:06:05 +0100 Subject: [PATCH] iTerm dynamic profile for tmux keys --- .tmux.conf | 4 +- .../DynamicProfiles/dynamic_profile.json | 65 +++++++++++++++++++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 Library/Application Support/iTerm2/DynamicProfiles/dynamic_profile.json diff --git a/.tmux.conf b/.tmux.conf index ad54f46..82b2329 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -36,8 +36,8 @@ bind C-a send-prefix # vi copy mode set -g mode-keys vi bind Escape copy-mode -unbind p -bind p paste-buffer +# unbind p +# bind p paste-buffer bind-key -T copy-mode-vi 'v' send-keys -X begin-selection bind-key -T copy-mode-vi 'y' send-keys -X copy-selection bind-key -T copy-mode-vi 'c-v' send-keys -X rectangle-toggle diff --git a/Library/Application Support/iTerm2/DynamicProfiles/dynamic_profile.json b/Library/Application Support/iTerm2/DynamicProfiles/dynamic_profile.json new file mode 100644 index 0000000..2d7953e --- /dev/null +++ b/Library/Application Support/iTerm2/DynamicProfiles/dynamic_profile.json @@ -0,0 +1,65 @@ +{ + "Profiles": [ + { + "Name": "tmux keys", + "Guid": "A443EFA8-953E-4B85-9ABE-793EBF2A5496", + "Dynamic Profile Parent Name": "Default", + "Keyboard Map" : { + "0x31-0x80000-0x12" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 31", + "Label" : "" + }, + "0x32-0x80000-0x13" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 32", + "Label" : "" + }, + "0x33-0x80000-0x14" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 33", + "Label" : "" + }, + "0x34-0x80000-0x15" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 34", + "Label" : "" + }, + "0x35-0x80000-0x17" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 35", + "Label" : "" + }, + "0x36-0x80000-0x16" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 36", + "Label" : "" + }, + "0x37-0x80000-0x1a" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 37", + "Label" : "" + }, + "0x38-0x80000-0x1c" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 38", + "Label" : "" + }, + "0x39-0x80000-0x19" : { + "Version" : 1, + "Action" : 11, + "Text" : "01 39", + "Label" : "" + } + } + } + ] +}