More flexible IP display

This commit is contained in:
Dominik V. Salonen 2017-12-13 09:38:03 +00:00
parent c13cf7556c
commit 2a34164d80
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ Uptime:$alignr$uptime
${color #d1d1d1}NETWORK $hr${color}
Gateway:$alignr$gw_ip
Local IP (Eth): $alignr ${addr enp10s0}
Local IP (WiFi): $alignr ${addr wlp8s0}
IP(s):
${exec ip addr | awk '/inet.[0-9\.]+\/24/{printf $2 "\n"}'}
Rx: ${downspeed enp10s0}/s$alignr Tx: ${upspeed enp10s0}/s
${color #d1d1d1}CPU $hr${color}