2021-04-27 09:45:10 +02:00
|
|
|
# Colors
|
|
|
|
orange='#eb7718'
|
2021-04-30 22:39:58 +02:00
|
|
|
red='#ef3e36'
|
|
|
|
green='#6da34d'
|
2021-04-27 09:45:10 +02:00
|
|
|
dark_blue='#001b2e'
|
|
|
|
blue='#294c60'
|
|
|
|
light_blue='#adb6c4'
|
2021-04-30 22:39:58 +02:00
|
|
|
violet='#413c58'
|
2021-04-27 09:45:10 +02:00
|
|
|
beige='#ffefd3'
|
|
|
|
black='#000000'
|
|
|
|
white='#ffffff'
|
2021-04-26 15:39:32 +02:00
|
|
|
|
2021-04-27 09:45:10 +02:00
|
|
|
# r ==> reload quickly config file.
|
|
|
|
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
2021-04-26 15:39:32 +02:00
|
|
|
|
2021-04-27 09:45:10 +02:00
|
|
|
# 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
|
2021-04-26 15:39:32 +02:00
|
|
|
set -g mouse on
|
|
|
|
|
2021-04-27 09:45:10 +02:00
|
|
|
# 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'
|
2021-04-26 15:39:32 +02:00
|
|
|
set -g status-position bottom
|
|
|
|
set -g status-justify left
|
2021-04-27 09:45:10 +02:00
|
|
|
set -g status-style "bg=${dark_blue} fg=${white}"
|
2021-04-30 22:39:58 +02:00
|
|
|
set -g status-right-length 150
|
|
|
|
set -g status-left-length 50
|
2021-04-26 15:39:32 +02:00
|
|
|
|
2021-04-30 22:39:58 +02:00
|
|
|
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 "
|
2021-04-27 09:45:10 +02:00
|
|
|
|
|
|
|
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 "
|
2021-04-26 15:39:32 +02:00
|
|
|
|
|
|
|
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|