38 lines
1.5 KiB
Bash
38 lines
1.5 KiB
Bash
# Left status style
|
|
if -b '[ "$WSL_DISTRO_NAME" != "" ]' \
|
|
'setw -g status-left " #(hostname)|#{WSL_DISTRO_NAME}|#{session_name}"' \
|
|
'setw -g status-left " #(hostname -s)|#{session_name}"'
|
|
setw -g status-left-style fg=colour240,bg=colour233
|
|
# Only a maximum, and the component is never padded out to it, so leave room
|
|
# for the hostname beside a full session name: project sessions are named after
|
|
# a path, e.g. modularml/modular@benie/some-branch.
|
|
setw -g status-left-length 100
|
|
|
|
# Centre status style
|
|
setw -g status-style fg=colour240,bg=colour233
|
|
|
|
# Right status style shows system info, date, and time.
|
|
setw -g status-right "#[fg=colour240]#(cat ~/.cache/tmux/system-info)#[fg=white] %a %d-%m-%y %H:%M "
|
|
setw -g status-right-style fg=white,bg=colour233
|
|
if -b '[ "`uname`" = "Darwin" ]' \
|
|
'run "tmux setw -g status-right-length $((`sysctl -n hw.ncpu` + 48))"' \
|
|
'run "tmux setw -g status-right-length $((`nproc --all` + 48))"'
|
|
|
|
# Active window status style
|
|
setw -g window-status-current-format " #{window_index}: #{window_name}"
|
|
setw -g window-status-current-style fg=white,bg=colour233
|
|
|
|
# Inactive window status style
|
|
setw -g window-status-format " #{window_index}: #{window_name}"
|
|
setw -g window-status-style fg=colour240,bg=colour233
|
|
|
|
# Pane border style
|
|
set -g pane-border-style fg=colour233,bg=colour233
|
|
set -g pane-active-border-style fg=colour235,bg=colour235
|
|
|
|
# Command line window list selection
|
|
set-window-option -g mode-style fg=white,bg=colour237
|
|
set-option -g message-style fg=white,bg=colour237
|
|
|
|
# vim: ft=tmux
|