Change network module for yambar 1.11

This commit is contained in:
Andrew Scott 2024-04-28 07:48:43 -04:00
parent c4afc6156c
commit 1e824ad9d4
Signed by: a
GPG key ID: 7CD5A5977E4931C1
2 changed files with 52 additions and 46 deletions

View file

@ -170,41 +170,44 @@ bar:
- label:
content: *separator
- network:
name: wlan0
poll-interval: 2000
content:
map:
default: {string: {text: , font: *awesome}}
default: {empty {}}
conditions:
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
state == up:
name >= wlan0 && name <= wlan9:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down - {ul-speed:mb} mb/s up"}
conditions:
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
~carrier: {empty: {}}
carrier:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down - {ul-speed:mb} mb/s up"}
conditions:
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
- network:
name: eth0
poll-interval: 2000
content:
map:
default: {empty: {}}
conditions:
~carrier: {empty: {}}
carrier:
name >= eth0 && name <= eth9:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
conditions:
state == down: {string: {text: , font: *awesome}}
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
~carrier: {empty {}}
carrier:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
conditions:
state == down: {string: {text: , font: *awesome}}
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
- label:
content: *separator
content: *separator
{{- end }}
- cpu:
poll-interval: 2000
@ -215,7 +218,7 @@ bar:
- string: {text: , font: *awesome}
- string: {text: " {cpu}%"}
- label:
content: *separator
content: *separator
- mem:
poll-interval: 5000
content:

View file

@ -200,39 +200,42 @@ bar:
- label:
content: *separator
- network:
name: wlan0
poll-interval: 2000
content:
map:
default: {string: {text: , font: *awesome}}
default: {empty: {}}
conditions:
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
state == up:
name >= wlan0 && name <= wlan9:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
conditions:
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
~carrier: {empty: {}}
carrier:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {quality}%"}
conditions:
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
- network:
name: eth0
poll-interval: 2000
content:
map:
default: {empty: {}}
conditions:
~carrier: {empty: {}}
carrier:
name >= eth0 && name <= eth9:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
conditions:
state == down: {string: {text: , font: *awesome}}
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
~carrier: {empty: {}}
carrier:
map:
default:
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
conditions:
state == down: {string: {text: , font: *awesome}}
ipv4 == "":
- string: {text: , font: *awesome}
- string: {text: " {name}: {state}"}
- label:
content: *separator
- battery: