From 11783c73a341f4346032a7cd1c6d4b3fe321af3b Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 19 Sep 2019 14:34:29 +0200 Subject: [PATCH] add vpn_ip (disable by default) --- config/p10k-classic.zsh | 12 ++++++++++++ config/p10k-lean.zsh | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index a72a90a6..1480976f 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -61,6 +61,7 @@ fi context # user@host nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) ranger # ranger shell (https://github.com/ranger/ranger) + # vpn_ip # virtual private network indicator # ram # free RAM # load # CPU load # time # current time @@ -686,6 +687,17 @@ fi # Custom icon. # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' + ########################[ vpn_ip: virtual private network indicator ]######################### + # VPN IP color. + typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=81 + # When on VPN, show just an icon without the IP address. + typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION= + # Regular expression for the VPN network interface. Run ifconfig while on VPN to see the + # name of the interface. + typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(wg|(.*tun))[0-9]*' + # Custom icon. + # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' + #########################[ proxy: system-wide http/https/ftp proxy ]########################## # Proxy color. typeset -g POWERLEVEL9K_PROXY_FOREGROUND=68 diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 4df9958a..e2d7b863 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -61,6 +61,7 @@ fi context # user@host nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) ranger # ranger shell (https://github.com/ranger/ranger) + # vpn_ip # virtual private network indicator # ram # free RAM # load # CPU load # time # current time @@ -665,6 +666,17 @@ fi # Custom icon. # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' + ########################[ vpn_ip: virtual private network indicator ]######################### + # VPN IP color. + typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=81 + # When on VPN, show just an icon without the IP address. + typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION= + # Regular expression for the VPN network interface. Run ifconfig while on VPN to see the + # name of the interface. + typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(wg|(.*tun))[0-9]*' + # Custom icon. + # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐' + #########################[ proxy: system-wide http/https/ftp proxy ]########################## # Proxy color. typeset -g POWERLEVEL9K_PROXY_FOREGROUND=68