dotfiles/conf/tmux.conf.local

93 lines
2.7 KiB
Plaintext
Raw Normal View History

2021-06-25 09:18:49 +00:00
# File : .tmux.conf.local
# Author : Jeff LANCE <email@jefflance.me>
# Date : 25.06.2021
2021-06-27 20:20:03 +00:00
# Last Modified Date: 27.06.2021
2021-06-25 09:18:49 +00:00
# Last Modified By : Jeff LANCE <email@jefflance.me>
2020-10-24 15:39:43 +00:00
# -- user customizations -------------------------------------------------------
# this is the place to override or undo settings
# increase history size
2021-01-27 20:40:04 +00:00
set -g history-limit 10000
2020-10-24 15:39:43 +00:00
# start with mouse mode enabled
2021-01-27 20:40:04 +00:00
set -g mouse on
2020-10-24 15:39:43 +00:00
# replace C-b by C-Space instead of using both prefixes
2021-04-10 16:17:14 +00:00
set -gu prefix2
set -g prefix C-Space
bind C-Space send-prefix
# colored underscores
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# true-color support
set -as terminal-overrides ',alacritty:RGB'
# keybindings correction for home and end keys as i set the terminal env for tmux to alacritty
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
2020-10-24 15:39:43 +00:00
2024-03-05 08:21:54 +00:00
# # swap panes
# bind-key -r "<" swap-panes -d -t -1
# bind-key -r ">" swap-panes -d -t +1
# swap windows
bind-key -r "<" swap-window -d -t -1
bind-key -r ">" swap-window -d -t +1
2020-10-24 15:39:43 +00:00
# move status line to top
2022-01-26 20:16:49 +00:00
# set -g status-right '%Y-%m-%d %H:%M #{tmux_mode_indicator}'
2020-10-24 15:39:43 +00:00
2021-07-02 13:26:27 +00:00
# -- plugins configuration -----------------------------------------------------
#
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins'
2022-01-26 20:16:49 +00:00
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
tmux-plugins/tmux-continuum \
tmux-plugins/tmux-sidebar \
tmux-plugins/tmux-yank \
odedlaz/tmux-onedark-theme \
dracula/tmux \
jaclu/tmux-menus \
MunifTanjim/tmux-mode-indicator \
kenos1/tmux-cht-sh \
2021-07-02 13:26:27 +00:00
'
2021-06-27 20:20:03 +00:00
# set -g @onedark_widgets "#(date +%s)"
2022-01-26 20:16:49 +00:00
set -g @dracula-refresh-rate 5
2022-07-18 15:36:58 +00:00
set -g @dracula-show-fahrenheit false
# set -g @dracula-fixed-location "Livry-Gargan"
2022-01-26 20:16:49 +00:00
# set -g @dracula-day-month true
set -g @dracula-military-time false
set -g @dracula-show-timezone true
set -g @dracula-time-format "%F %R"
set -g @dracula-show-network false
set -g @dracula-show-powerline true
set -g @dracula-show-battery false
set -g @dracula-show-left-icon session
2024-03-05 08:21:54 +00:00
2023-04-21 16:26:35 +00:00
set -g status-right 'Continuum status: #{continuum_status}'
set -g @continuum-boot 'on'
2022-01-26 20:16:49 +00:00
2024-03-05 08:21:54 +00:00
set -g @menus_trigger 'F1'
set -g @menus_without_prefix 1
2021-07-02 13:26:27 +00:00
run '~/.tmux/plugins/tpm/tpm'
2022-04-23 14:34:32 +00:00
2022-07-18 15:36:58 +00:00
# -- startup customizations -----------------------------------------------------
2022-07-18 15:36:58 +00:00
#
# make tmux works with ssh-agent
set -g update-environment "DISPLAY SSH_ASKPASS \
2023-04-04 09:38:34 +00:00
SSH_AGENT_PID \
2022-07-18 15:36:58 +00:00
SSH_CONNECTION WINDOWID XAUTHORITY"
2023-04-04 09:38:34 +00:00
setenv -g SSH_AUTH_SOCK "/run/user/1000/keyring/ssh"
2022-07-18 15:36:58 +00:00
# start with a new session
2023-04-21 16:26:35 +00:00
new-session -s jeff