mirror of
https://github.com/samoshkin/tmux-config.git
synced 2026-01-05 01:08:01 +00:00
Finish with appearence and status bar. Integrate various plugins including tmux-plugin-sysstat
This commit is contained in:
@@ -1,43 +1,27 @@
|
||||
# TODO: extract colour to variables
|
||||
|
||||
# Status line
|
||||
set -g status on
|
||||
set -g status-interval 10
|
||||
set -g status-justify centre
|
||||
set -g status-left-length 70
|
||||
set -g status-right-length 90
|
||||
# =====================================
|
||||
# === Theme ===
|
||||
# =====================================
|
||||
|
||||
# Feel free to NOT use this variables at all (remove, rename)
|
||||
# this are named colors, just for convenience
|
||||
color_orange="colour166" # 208, 166
|
||||
color_purple="colour134" # 135, 134
|
||||
color_green="colour076" # 070
|
||||
color_blue="colour39"
|
||||
color_yellow="colour220"
|
||||
color_red="colour160"
|
||||
color_black="colour232"
|
||||
color_white="white" # 015
|
||||
|
||||
wg_battery='#{battery_status_fg} #{battery_icon} #{battery_percentage} #{battery_remain}'
|
||||
|
||||
wg_loadavg='#[fg=colour167,bg=colour235]#( \
|
||||
uptime | cut -d "," -f 3- | cut -d ":" -f2 | sed -e "s/^[ \t]*//" \
|
||||
)#[default]'
|
||||
|
||||
wg_date='#[fg=colour167,bg=colour235] %h %d %H:%M #[default]'
|
||||
|
||||
wg_session='#[fg=green]#S:#[fg=default]#I.#P'
|
||||
wg_host='#[fg=colour167,bg=colour235]#(echo $USER)@#H#[default]'
|
||||
|
||||
wg_is_zoomed='#[fg=colour231,bg=colour04]#{?window_zoomed_flag,[Z],}#[default]'
|
||||
wg_clients_attached='#[fg=cyan]#{?session_many_attached,~#{session_attached},}#[default]'
|
||||
|
||||
|
||||
# CPU is updated to often, put stress on CPU
|
||||
# wg_cpu='#{cpu_fg_color}#{cpu_percentage}'
|
||||
# wg_cpu="#(iostat -c -y 5 1 | tail -n 2 | head -n 1)"
|
||||
|
||||
|
||||
set -g status-style fg=white,bg=colour235
|
||||
set -g status-right "$wg_loadavg $wg_battery $wg_host $wg_date #{online_status}"
|
||||
set -g status-left "$wg_session $wg_clients_attached $wg_is_zoomed #{prefix_highlight}"
|
||||
|
||||
|
||||
setw -g window-status-style fg=white,dim
|
||||
setw -g window-status-current-style fg=brightwhite,nodim,bold,bg=brightred
|
||||
setw -g window-status-activity-style fg=black,bg=cyan
|
||||
|
||||
|
||||
# Appearence
|
||||
setw -g pane-active-border-style fg=red
|
||||
set -g message-style fg=green,bold,bg=black
|
||||
# This is a theme CONTRACT, you are required to define variables below
|
||||
# Change values, but not remove/rename variables itself
|
||||
color_dark="$color_black"
|
||||
color_light="$color_white"
|
||||
color_session_text="$color_blue"
|
||||
color_status_text="colour245"
|
||||
color_main="$color_orange"
|
||||
color_secondary="$color_purple"
|
||||
color_level_good="$color_green"
|
||||
color_level_warn="$color_yellow"
|
||||
color_lelel_achtung="$color_red"
|
||||
|
||||
Reference in New Issue
Block a user