# HG changeset patch # User Yuya Nishihara # Date 1716617423 -32400 # Sat May 25 15:10:23 2024 +0900 # Node ID 081cb05daa9645520c14051dcc48b2f012a75434 # Parent b151064266bf47740bd72fb90825b4af8e5904dc yambar: simplify wireless network status diff --git a/dot.config/yambar/config.yml b/dot.config/yambar/config.yml --- a/dot.config/yambar/config.yml +++ b/dot.config/yambar/config.yml @@ -51,7 +51,7 @@ conditions: state == up && ipv4 != "": {string: {text: , font: *awesome}} - network: - poll-interval: 1000 + poll-interval: 5000 content: map: default: {empty: {}} @@ -61,16 +61,9 @@ default: {string: {text: , font: *awesome, foreground: ffffff66}} conditions: state == down: {string: {text: , font: *awesome, foreground: ff0000ff}} - state == up: - map: - default: - - string: {text: , font: *awesome} - - string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s"} - - conditions: - ipv4 == "": - - string: {text: , font: *awesome, foreground: ffffff66} - - string: {text: "{ssid} {dl-speed:mb}/{ul-speed:mb} Mb/s", foreground: ffffff66} + state == up || state == unknown: + - string: {text: , font: *awesome} + - string: {text: "{ssid} {ipv4}"} - battery: name: BAT0 poll-interval: 30000