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 # Enable focus events
set-option -g focus-events on set-option -g focus-events on
# Stop automatic window renaming
# set -g set-titles off # Status bar styling
# set-window-option -g automatic-rename off set -g status-interval 60
# set-option -g allow-rename off 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. # Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator # 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 bind-key -T copy-mode-vi 'C-\' select-pane -l
setw -g mode-keys vi 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'