From 205b7e35cb7dcb3e4528a65f94f8406902bad968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Tue, 28 Jan 2025 13:38:15 +0100 Subject: [PATCH] Set default F without Shift --- tmux-no-shift.conf | 6 ------ tmux-shift.conf | 6 ++++++ tmux.conf | 11 ++++++----- 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 tmux-no-shift.conf create mode 100644 tmux-shift.conf diff --git a/tmux-no-shift.conf b/tmux-no-shift.conf deleted file mode 100644 index 2e2d2be..0000000 --- a/tmux-no-shift.conf +++ /dev/null @@ -1,6 +0,0 @@ -# From byobu -bind -n F2 new-window -bind -n F3 previous-window -bind -n F4 next-window -bind -n F8 command-prompt -p "(rename-window) " "rename-window '%%'" -bind -n S-F12 source ~/.config/tmux/tmux.conf \; display-message "F-keys: SHIFT" diff --git a/tmux-shift.conf b/tmux-shift.conf new file mode 100644 index 0000000..96b47c5 --- /dev/null +++ b/tmux-shift.conf @@ -0,0 +1,6 @@ +# From byobu +bind -n S-F2 new-window +bind -n S-F3 previous-window +bind -n S-F4 next-window +bind -n S-F8 command-prompt -p "(rename-window) " "rename-window '%%'" +bind -n S-F12 source ~/.config/tmux/tmux.conf \; display-message "F-keys: NO SHIFT" diff --git a/tmux.conf b/tmux.conf index 455c8c1..2b1286f 100644 --- a/tmux.conf +++ b/tmux.conf @@ -32,11 +32,11 @@ unbind -n F3 unbind -n F4 unbind -n F8 -bind -n S-F2 new-window -bind -n S-F3 previous-window -bind -n S-F4 next-window -bind -n S-F8 command-prompt -p "(rename-window) " "rename-window '%%'" -bind -n S-F12 source ~/.config/tmux/tmux-no-shift.conf \; display-message "F-keys: NO SHIFT" +bind -n F2 new-window +bind -n F3 previous-window +bind -n F4 next-window +bind -n F8 command-prompt -p "(rename-window) " "rename-window '%%'" +bind -n S-F12 source ~/.config/tmux/tmux-shift.conf \; display-message "F-keys: SHIFT" # Shift Alt vim keys to switch windows # bind -n M-H previous-window @@ -64,3 +64,4 @@ bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel bind '|' split-window -v -c "#{pane_current_path}" bind % split-window -h -c "#{pane_current_path}" +unbind M-Right