forked from external/yambar
module/network: Add link stats
Exports two new tags from network module, `ul-speed` and `dl-speed`. Because these work through polling, poll-interval must be set. Otherwise, these two tags always will be 0.
This commit is contained in:
parent
eb5cb9869c
commit
03e1c7dc13
4 changed files with 81 additions and 4 deletions
|
@ -185,6 +185,7 @@ bar:
|
|||
ipv4 == "": {string: {text: , font: *awesome, foreground: ffffff66}}
|
||||
- network:
|
||||
name: wlp2s0
|
||||
poll-interval: 1
|
||||
content:
|
||||
map:
|
||||
default: {string: {text: , font: *awesome, foreground: ffffff66}}
|
||||
|
@ -194,11 +195,12 @@ bar:
|
|||
map:
|
||||
default:
|
||||
- string: {text: , font: *awesome}
|
||||
- string: {text: "{ssid}"}
|
||||
- string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s"}
|
||||
|
||||
conditions:
|
||||
ipv4 == "":
|
||||
- string: {text: , font: *awesome, foreground: ffffff66}
|
||||
- string: {text: "{ssid}", foreground: ffffff66}
|
||||
- string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s", foreground: ffffff66}
|
||||
- alsa:
|
||||
card: hw:PCH
|
||||
mixer: Master
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue