From b70400e1ee7a75d6a1b463394da149967de0d491 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 21 Jan 2024 21:31:47 +0100 Subject: [PATCH] added the #{wan_ip_v4} and #{wan_ip_v6} custom variable examples, resolves #281 --- .tmux.conf.local | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.tmux.conf.local b/.tmux.conf.local index 52766a3..918f6b0 100644 --- a/.tmux.conf.local +++ b/.tmux.conf.local @@ -445,6 +445,16 @@ tmux_conf_uninstall_plugins_on_reload=true # ping -c 1 1.1.1.1 >/dev/null 2>&1 && printf '✔' || printf '✘' # } # +# wan_ip_v4() { +# curl -f -s -m 2 -4 ifconfig.me +# sleep 300 # sleep for 5 minutes, throttle network requests whatever the value of status-interval +# } +# +# wan_ip_v6() { +# curl -f -s -m 2 -6 ifconfig.me +# sleep 300 # sleep for 5 minutes, throttle network requests whatever the value of status-interval +# } +# # "$@" # # /!\ do not remove the previous line # # do not write below this line