Finally found out how to make the IP display look decent

This commit is contained in:
Dominik V. Salonen 2017-12-21 09:49:58 +01:00
parent e97b577e39
commit 91699adcd0
2 changed files with 2 additions and 4 deletions

View File

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

View File

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