adds weather info to tmux status

This commit is contained in:
koehr 2021-08-02 21:44:14 +02:00
parent 5b2cb236d3
commit 31aca49575

View file

@ -36,14 +36,12 @@ set-option -ga terminal-overrides ',st-256color:smkx=\E='
set -g status-style fg=colour208,bg=colour237 set -g status-style fg=colour208,bg=colour237
# set-option -g status-attr default # set-option -g status-attr default
set-option -g status-position bottom set-option -g status-position bottom
set-option -g status-interval 5 set-option -g status-interval 60
# Basic status bar colors
set-option -g status-bg default set-option -g status-bg default
set-option -g status-fg white set-option -g status-fg white
# Left side of status bar # Left side of status bar
set-option -g status-left-length 40 set-option -g status-left-length 10
#set-option -g status-left "#[fg=brightwhite,bg=colour234] #S #[fg=default,bg=default] " #set-option -g status-left "#[fg=brightwhite,bg=colour234] #S #[fg=default,bg=default] "
set-option -g status-left '#{?client_prefix,#[bg=colour62]  ,#[bg=colour234] #S }#[fg=default,bg=default] ' set-option -g status-left '#{?client_prefix,#[bg=colour62]  ,#[bg=colour234] #S }#[fg=default,bg=default] '
@ -54,8 +52,9 @@ set-option -g window-status-separator " "
set-option -g status-justify left set-option -g status-justify left
# Right side of status bar # Right side of status bar
set-option -g status-right-length 40 set-option -g status-right-length 80
set-option -g status-right " #[fg=brightwhite,bg=colour62]  #[fg=brightwhite,bg=colour234] #(whoami)@#h " WEATHER='#(curl -s wttr.in/Berlin\?format\="%%t+%%C+%%w+%%m")'
set-option -g status-right "#[fg=brightwhite,bg=colour62]🌡 BER #[fg=brightwhite,bg=colour234] $WEATHER #[fg=brightwhite,bg=colour62]  #[fg=brightwhite,bg=colour234] #(whoami)@#h "
# pane border # pane border
set -g pane-border-style fg=colour238,bg=colour235 set -g pane-border-style fg=colour238,bg=colour235