Add weather to tmux statusbar

This commit is contained in:
Evie Litherland-Smith 2023-01-09 14:17:27 +00:00
parent a5836620b9
commit 7b8e64a8c3

View file

@ -17,10 +17,19 @@ set-option -sg escape-time 10
# Enable focus events
set-option -g focus-events on
# Stop automatic window renaming
# set -g set-titles off
# set-window-option -g automatic-rename off
# set-option -g allow-rename off
# Status bar styling
set -g status-interval 60
WEATHER='#(curl -s 'wttr.in/?format="%%C+%%t+%%p"')'
set -g status-bg colour238
set -g status-fg colour255
set -g status-left "[#H] "
set -g status-right "$WEATHER"
# set the pane border colors
set -g pane-border-style 'fg=colour235,bg=colour238'
set -g pane-active-border-style 'fg=colour75,bg=colour236'
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
@ -43,12 +52,3 @@ bind-key -T copy-mode-vi 'C-l' select-pane -R
bind-key -T copy-mode-vi 'C-\' select-pane -l
setw -g mode-keys vi
# Status bar styling
set -g status-bg colour238
set -g status-fg colour255
set -g status-left '[#S] '
# set the pane border colors
set -g pane-border-style 'fg=colour235,bg=colour238'
set -g pane-active-border-style 'fg=colour75,bg=colour236'