mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 09:53:10 -05:00
Change network module for yambar 1.11
This commit is contained in:
parent
c4afc6156c
commit
1e824ad9d4
2 changed files with 52 additions and 46 deletions
|
@ -170,39 +170,42 @@ bar:
|
||||||
- label:
|
- label:
|
||||||
content: *separator
|
content: *separator
|
||||||
- network:
|
- network:
|
||||||
name: wlan0
|
|
||||||
poll-interval: 2000
|
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
default: {string: {text: , font: *awesome}}
|
default: {empty {}}
|
||||||
conditions:
|
conditions:
|
||||||
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
|
name >= wlan0 && name <= wlan9:
|
||||||
state == up:
|
|
||||||
map:
|
map:
|
||||||
default:
|
|
||||||
- string: {text: , font: *awesome}
|
|
||||||
- string: {text: " {name}: {dl-speed:mb} mb/s down - {ul-speed:mb} mb/s up"}
|
|
||||||
conditions:
|
conditions:
|
||||||
ipv4 == "":
|
~carrier: {empty: {}}
|
||||||
- string: {text: , font: *awesome}
|
carrier:
|
||||||
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
|
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:
|
- network:
|
||||||
name: eth0
|
|
||||||
poll-interval: 2000
|
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
|
default: {empty: {}}
|
||||||
conditions:
|
conditions:
|
||||||
~carrier: {empty: {}}
|
name >= eth0 && name <= eth9:
|
||||||
carrier:
|
|
||||||
map:
|
map:
|
||||||
default:
|
|
||||||
- string: {text: , font: *awesome}
|
|
||||||
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
|
|
||||||
conditions:
|
conditions:
|
||||||
state == down: {string: {text: , font: *awesome}}
|
~carrier: {empty {}}
|
||||||
ipv4 == "":
|
carrier:
|
||||||
- string: {text: , font: *awesome}
|
map:
|
||||||
- string: {text: " {name}: {dl-speed:mb} mb/s down / {ul-speed:mb} mb/s up"}
|
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:
|
- label:
|
||||||
content: *separator
|
content: *separator
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -200,39 +200,42 @@ bar:
|
||||||
- label:
|
- label:
|
||||||
content: *separator
|
content: *separator
|
||||||
- network:
|
- network:
|
||||||
name: wlan0
|
|
||||||
poll-interval: 2000
|
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
default: {string: {text: , font: *awesome}}
|
default: {empty: {}}
|
||||||
conditions:
|
conditions:
|
||||||
state == down: {string: {text: , font: *awesome, foreground: *dark_grey}}
|
name >= wlan0 && name <= wlan9:
|
||||||
state == up:
|
|
||||||
map:
|
map:
|
||||||
default:
|
|
||||||
- string: {text: , font: *awesome}
|
|
||||||
- string: {text: " {name}: {state}"}
|
|
||||||
conditions:
|
conditions:
|
||||||
ipv4 == "":
|
~carrier: {empty: {}}
|
||||||
- string: {text: , font: *awesome}
|
carrier:
|
||||||
- string: {text: " {name}: {state}"}
|
map:
|
||||||
|
default:
|
||||||
|
- string: {text: , font: *awesome}
|
||||||
|
- string: {text: " {name}: {quality}%"}
|
||||||
|
conditions:
|
||||||
|
ipv4 == "":
|
||||||
|
- string: {text: , font: *awesome}
|
||||||
|
- string: {text: " {name}: {state}"}
|
||||||
- network:
|
- network:
|
||||||
name: eth0
|
|
||||||
poll-interval: 2000
|
|
||||||
content:
|
content:
|
||||||
map:
|
map:
|
||||||
|
default: {empty: {}}
|
||||||
conditions:
|
conditions:
|
||||||
~carrier: {empty: {}}
|
name >= eth0 && name <= eth9:
|
||||||
carrier:
|
|
||||||
map:
|
map:
|
||||||
default:
|
|
||||||
- string: {text: , font: *awesome}
|
|
||||||
- string: {text: " {name}: {state}"}
|
|
||||||
conditions:
|
conditions:
|
||||||
state == down: {string: {text: , font: *awesome}}
|
~carrier: {empty: {}}
|
||||||
ipv4 == "":
|
carrier:
|
||||||
- string: {text: , font: *awesome}
|
map:
|
||||||
- string: {text: " {name}: {state}"}
|
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:
|
- label:
|
||||||
content: *separator
|
content: *separator
|
||||||
- battery:
|
- battery:
|
||||||
|
|
Loading…
Reference in a new issue