Initial push

This commit is contained in:
Daniele Viganò 2024-03-02 15:03:12 +01:00
commit 6079e9aa79
Signed by: dani
GPG Key ID: DB49AFC03C40EE02
4 changed files with 73 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
plugins/**/

0
plugins/.gitignore vendored Normal file
View File

6
tmux-no-shift.conf Normal file
View File

@ -0,0 +1,6 @@
# 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"

66
tmux.conf Normal file
View File

@ -0,0 +1,66 @@
# set-option -sa terminal-overrides ",xterm*:Tc"
# set -g mouse on
unbind C-b
set -g prefix C-a
bind C-a send-prefix
set -g default-terminal "screen-256color"
set -as terminal-features ",xterm-256color:RGB"
# # Vim style pane selection
# bind h select-pane -L
# bind j select-pane -D
# bind k select-pane -U
# bind l select-pane -R
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# # Use Alt-arrow keys without prefix key to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# From byobu but using S
unbind -n F2
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"
# Shift Alt vim keys to switch windows
# bind -n M-H previous-window
# bind -n M-L next-window
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'kylepeeler/tmux-nightowl'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @nightowl-show-network false
set -g @nightowl-show-weather false
set -g @nightowl-show-powerline true
set -g @nightowl-show-left-icon ""
set -g @nightowl-military-time true
run '~/.config/tmux/plugins/tpm/tpm'
# set vi-mode
set-window-option -g mode-keys vi
# keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
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}"