Oh-My-Tmux with ip addresses
authorOscar Rodriguez <josuer08@gmail.com>
Fri, 15 May 2020 04:13:09 +0000 (00:13 -0400)
committerOscar Rodriguez <josuer08@gmail.com>
Fri, 15 May 2020 04:13:09 +0000 (00:13 -0400)
.tmux.conf.local

index 53b94c777770fd5660360cc4d1030e8e7db5711a..331a7cbf9eb3864cd4abfa247658ca61be93e958 100644 (file)
@@ -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