From 2b0cb0b43ce7b4d212d91415390db8faf1b421df Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 3 Feb 2019 11:18:45 +0100 Subject: [PATCH] updated README.md to show how to 'curl wttr.in' to display weather, resolves #71 --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 2987a78..a635c76 100644 --- a/README.md +++ b/README.md @@ -258,6 +258,18 @@ This configuration supports the following builtin variables: - `#{username_ssh}`: SSH aware username information, blank when not connected to a remote server through SSH/Mosh +Beside custom variables mentioned above, the `tmux_conf_theme_status_left` and +`tmux_conf_theme_status_right` variables support usual tmux syntax, e.g. using +`#()` to call an external command that inserts weather information provided by +[wttr.in]: +``` +tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} #(curl wttr.in?format=3) , %R , %d %b | #{username}#{root} | #{hostname} ' +``` + +![Weather information from wttr.in](https://user-images.githubusercontent.com/553208/52175490-07797c00-27a5-11e9-9fb6-42eec4fe4188.png) + +[wttr.in]: https://github.com/chubin/wttr.in#one-line-output + ### Accessing the macOS clipboard from within tmux sessions [Chris Johnsen created the `reattach-to-user-namespace`