From: Oscar Rodriguez Date: Fri, 15 May 2020 04:13:09 +0000 (-0400) Subject: Oh-My-Tmux with ip addresses X-Git-Url: https://git.josue.xyz/?p=dotfilesold%2F.git;a=commitdiff_plain;h=4be840e8f6aa373658ad80036c98374c34bae76e Oh-My-Tmux with ip addresses --- diff --git a/.tmux.conf.local b/.tmux.conf.local index 53b94c7..331a7cb 100644 --- a/.tmux.conf.local +++ b/.tmux.conf.local @@ -180,7 +180,7 @@ tmux_conf_theme_right_separator_sub='|' # - #{username} # - #{username_ssh} tmux_conf_theme_status_left=' ❐ #S | ↑#{?uptime_y, #{uptime_y}y,}#{?uptime_d, #{uptime_d}d,}#{?uptime_h, #{uptime_h}h,}#{?uptime_m, #{uptime_m}m,} ' -tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} , %R , %d %b | #{username}#{root} | #{hostname} ' +tmux_conf_theme_status_right='#{prefix}#{pairing}#{synchronized} |E>#(curl ifconfig.me) | W> #(ip addr show | grep inet | grep -v inet6 | grep wlan0 |grep -o ".* brd"| grep -oP "(\b([0-9]{1,3}\.){3}[0-9]{1,3}\b)") | L> #(ip addr show | grep inet | grep -v inet6 | grep eno1 |grep -o ".* brd"| grep -oP "(\b([0-9]{1,3}\.){3}[0-9]{1,3}\b)") | #{?battery_status, #{battery_status},}#{?battery_bar, #{battery_bar},}#{?battery_percentage, #{battery_percentage},} | %R , %d %b | #{username}#{root} | #{hostname} ' # status left style tmux_conf_theme_status_left_fg='#000000,#e4e4e4,#e4e4e4' # black, white , white