dotfiles/tmux/dot-tmux.conf

52 lines
1.3 KiB
Plaintext

# ericonr's tmux config
# If sessions is wayland, launch nmtui
if '[[ "$XDG_SESSION_TYPE" = wayland ]]' 'new-session -A -s standard nmtui'
if '[[ "$XDG_SESSION_TYPE" =~ wayland ]]' 'new-session -A -s standard'
kill-session -tstandard -a
# Windows
new-window -tstandard -n pkgtop pkgtop
new-window -tstandard -n multishell
split-window -h htop
split-window -v
select-pane -tstandard:multishell.0
split-window -v
select-pane -tstandard:multishell.0
# Bindings
unbind-key C-b
set -g prefix "C-a"
bind-key C-a send-prefix
unbind-key l
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind r source-file ~/.tmux.conf
bind -n M-down set -q status off
bind -n M-up set -q status on
bind P paste-buffer
set -sg escape-time 0
set -g mouse on
# appearance
set -g base-index 1
setw -g pane-base-index 1
set -g status-justify right
set -g status-style "bg=colour0"
set -ag status-style "fg=colour7"
# ░ ▒ ▓ █
set -g window-status-current-format "#[fg=colour15, italics] #W "
set -g window-status-format "#[fg=colour8, italics] #W "
set -g status-left-length 100
set -g status-left "#[fg=colour15]#(date +"%H:%M") #[fg=colour8]hrs "
set -ag status-left "#[fg=colour15]#(date +"%d/%m")#[fg=colour8] #(date +"%Y") "
set -ag status-left "#[fg=colour7]#(battmux -q)#[fg=colour12] "