This commit is contained in:
Henrik Bakken
2025-04-12 21:00:41 +02:00
parent 9227de2678
commit 33bf510e7e
+50 -22
View File
@@ -3,14 +3,7 @@
###################### ######################
# escape time # escape time
set -sg escape-time 0 set -sg escape-time 0
# loud or quiet?
setw -g monitor-activity off
# enable vi mode keys
setw -g mode-keys vi setw -g mode-keys vi
# mouse control (clickable windows, panes, resizable panes)
set -g mouse on set -g mouse on
# clipboard control # clipboard control
@@ -19,11 +12,8 @@ set -g allow-passthrough
set -g history-limit 20000 set -g history-limit 20000
set -g focus-events on set -g focus-events on
# terminal
set -g default-shell /bin/nu
# screen colors # screen colors
set -ga terminal-overrides ",*-256color*:Tc" set -as terminal-features ",gnome*:RGB"
# Start with index 1 # Start with index 1
set -g base-index 1 set -g base-index 1
@@ -32,7 +22,10 @@ setw -g pane-base-index 1
# pane title # pane title
setw -g pane-border-status top setw -g pane-border-status top
setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}' setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}'
#set -g pane-border-format "#P: #{pane_current_command}" set -g window-style 'fg=color252,bg=color236'
set -g window-active-style 'fg=color253,bg=color235'
set -g pane-active-border-style fg=white
set -g pane-border-style fg=grey
# Automatically set window title # Automatically set window title
@@ -57,9 +50,8 @@ unbind -a
bind ? list-keys bind ? list-keys
bind d detach-client bind d detach-client
bind D choose-client bind D choose-client
bind ø command-prompt
bind : command-prompt bind : command-prompt
#bind \ show-messages bind '~' show-messages
# Copy mode # Copy mode
bind c copy-mode bind c copy-mode
@@ -76,6 +68,7 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip
# Rename window # Rename window
bind , command-prompt "rename-window %%" bind , command-prompt "rename-window %%"
bind . command-prompt "rename-session %%"
# Clock mode # Clock mode
bind t clock-mode bind t clock-mode
@@ -105,16 +98,20 @@ bind S split-window -fv -c "#{pane_current_path}"
bind o rotate-window bind o rotate-window
bind Space next-layout bind Space next-layout
bind = select-layout even-horizontal bind = select-layout even-horizontal
bind / select-layout even-vertical bind + select-layout main-horizontal
bind - select-layout even-vertical
bind _ select-layout main-vertical
bind / select-layout tiled
bind K swap-pane -d -t "{up-of}" bind K swap-pane -d -t "{up-of}"
bind J swap-pane -d -t "{down-of}" bind J swap-pane -d -t "{down-of}"
bind H swap-pane -d -t "{left-of}" bind H swap-pane -d -t "{left-of}"
bind L swap-pane -d -t "{right-of}" bind L swap-pane -d -t "{right-of}"
# Choose Window # Choose
bind w choose-window bind w choose-tree
# Change current pane to next window # Change current pane to next window
bind ` break-pane
bind 1 join-pane -t :1 -h bind 1 join-pane -t :1 -h
bind 2 join-pane -t :2 -h bind 2 join-pane -t :2 -h
bind 3 join-pane -t :3 -h bind 3 join-pane -t :3 -h
@@ -139,7 +136,7 @@ bind -n M-9 if-shell 'tmux select-window -t :9' '' 'new-window -t :9'
bind -n M-0 if-shell 'tmux select-window -t :10' '' 'new-window -t :10' bind -n M-0 if-shell 'tmux select-window -t :10' '' 'new-window -t :10'
# Kill Selected Pane # Kill Selected Pane
bind Q kill-pane bind q confirm-before -p "kill-pane #P? (y/n)" kill-pane
# clear selected pane # clear selected pane
bind b send-keys -R \; clear-history \; send-keys Enter bind b send-keys -R \; clear-history \; send-keys Enter
@@ -173,12 +170,43 @@ set -g @tmux-fzf-launch-key 'f'
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'arcticicestudio/nord-tmux' # set -g @plugin 'arcticicestudio/nord-tmux'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'odedlaz/tmux-onedark-theme'
# set -g @plugin 'seebi/tmux-colors-solarized' # set -g @plugin 'seebi/tmux-colors-solarized'
# set -g @plugin 'jimeh/tmux-themepack' # set -g @plugin 'jimeh/tmux-themepack'
# set -g @plugin 'wfxr/tmux-power'
set -g @plugin 'niksingh710/minimal-tmux-status'
set -g @minimal-tmux-fg "#000000"
set -g @minimal-tmux-bg "#698DDA"
set -g @minimal-tmux-justify "centre"
set -g @minimal-tmux-indicator-str " tmux "
set -g @minimal-tmux-indicator true
set -g @minimal-tmux-status "bottom"
# Enables or disables the left and right status bar
set -g @minimal-tmux-right true
set -g @minimal-tmux-left true
# expanded icon (fullscreen icon)
set -g @minimal-tmux-expanded-icon "󰊓 "
# on all tabs (default is false)
# false will make it visible for the current tab only
set -g @minimal-tmux-show-expanded-icons-for-all-tabs true
# To add or remove extra text in status bar
set -g @minimal-tmux-status-right-extra ""
set -g @minimal-tmux-status-left-extra ""
# To make the selection box rounded () or edged <>
# Default is nothing, when set to true default is edged
set -g @minimal-tmux-use-arrow true
set -g @minimal-tmux-right-arrow ""
set -g @minimal-tmux-left-arrow ""
# If getting strings cut in left status or right
# Here 20 is the length of the characters in the string
set -g status-right-length 20
set -g status-left-length 20
# keep at bottom # keep at bottom
run -b '~/.config/tmux/plugins/tpm/tpm' run -b '~/.config/tmux/plugins/tpm/tpm'