dotfiles/.tmux.conf

46 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

# Colors
orange='#eb7718'
red='#ef3e36'
green='#6da34d'
dark_blue='#001b2e'
blue='#294c60'
light_blue='#adb6c4'
violet='#413c58'
beige='#ffefd3'
black='#000000'
white='#ffffff'
# r ==> reload quickly config file.
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Tell TMUX to use true color.
tmux_conf_theme_24b_colour=true
set -g default-terminal screen-256color
set -ga terminal-overrides ",xterm-256color:Tc"
# Enable mouse mode
set -g mouse on
# Auto set title and window title
set-window-option -g automatic-rename on
set -g set-titles on
# Status bar configuration
#setw -g mode-style 'fg=colour255 bg=colour0'
set -g status-position bottom
set -g status-justify left
set -g status-style "bg=${dark_blue} fg=${white}"
set -g status-right-length 150
set -g status-left-length 50
set -g status-left ""
set -g status-right "#(whoami)@#h #[bg=${violet}] #(if grep -Fxq "1" /sys/class/power_supply/AC/online; then echo "⚡"; fi)#(if [ -e /sys/class/power_supply/BAT0 ]; then echo '%' | cat /sys/class/power_supply/BAT0/capacity - | tr '\n' ' ' ; fi) #[fg=${black}, bg=${light_blue}] #(cat /proc/loadavg | cut -d' ' -f 1-3) #[bg=${beige}] %d/%m %H:%M:%S "
setw -g window-status-current-style "bg=${orange} bold"
setw -g window-status-current-format "#[fg=${dark_blue}] #I#[fg=${black}]:#[fg=${white}]#W#[fg=${blue}]#F "
setw -g window-status-style "fg=${light_blue} bg=${blue}"
setw -g window-status-format " #I#[fg=${light_blue}]:#[fg=${light_blue}]#W#[fg=${light_blue}]#F "
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'