mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 03:50:03 +02:00
crazy tmux and fzf stuff
This commit is contained in:
parent
734df8b01e
commit
b84701ce35
43 changed files with 2130 additions and 7 deletions
35
tmux.conf
35
tmux.conf
|
|
@ -4,26 +4,47 @@ set -ag terminal-overrides ",xterm-256color:RGB"
|
|||
set-window-option -g mode-keys vi
|
||||
set -g escape-time 10
|
||||
set -g focus-events on
|
||||
set -g mouse off
|
||||
set -g mouse on
|
||||
set -s set-clipboard external
|
||||
set -s copy-command 'wl-copy -p'
|
||||
|
||||
set -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
|
||||
# remap prefix
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style ''
|
||||
set -g status-left '#[bg=colour3,fg=#0E1019] #(hostname) #[fg=color3,bg=default]'
|
||||
#set -g status-left '#[bg=colour3,fg=#0E1019] #(hostname) #[fg=color3,bg=default]'
|
||||
set -g status-left ' #S | '
|
||||
set -g status-right ''
|
||||
set -g status-right-length 50
|
||||
set -g status-left-length 50
|
||||
|
||||
set -g pane-border-style "fg=#1a1c2d"
|
||||
set -g pane-active-border-style "bg=default fg=#1a1c2d"
|
||||
|
||||
setw -g window-status-style ''
|
||||
setw -g window-status-format ' #[fg=colour4]#I#[fg=colour15] #W '
|
||||
setw -g window-status-current-style 'fg=#0E1019 bg=color4 bold'
|
||||
setw -g window-status-current-format ' #I #W '
|
||||
setw -g window-status-separator ''
|
||||
|
||||
# tmux fzf plugin
|
||||
TMUX_FZF_OPTIONS="-p -w 40% -h 20% -m --border=sharp --margin=0"
|
||||
TMUX_FZF_PREVIEW=0
|
||||
TMUX_FZF_SWITCH_CURRENT=1
|
||||
|
||||
|
||||
# Keybinds
|
||||
|
||||
# remap prefix
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
bind-key "w" run-shell -b "~/.config/tmux-plugins/tmux-fzf/scripts/session.sh switch"
|
||||
|
||||
# Plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'sainnhe/tmux-fzf'
|
||||
run '~/.config/tmux-plugins/tpm/tpm'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue