Skip to content

Commit b092ed7

Browse files
authored
Merge pull request #177 from trimclain/update-wiki
docs: update wifi widget wiki
2 parents ee85474 + cd3ea99 commit b092ed7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/widgets/(Widget)-WiFi.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| `label_alt` | string | `"{wifi_name} {wifi_strength}%"` | The alternative label format for the WiFi widget. |
77
| `update_interval` | integer | `1000` | Update interval in milliseconds. |
88
| `wifi_icons` | list | `[ "\udb82\udd2e", "\udb82\udd1f", "\udb82\udd22", "\udb82\udd25", "\udb82\udd28" ]` | Icons for different WiFi signal strengths. |
9+
| `ethernet_icon` | string | "\ueba9" | The icon to indicate Ethernet connection. |
910
| `callbacks` | dict | `{ 'on_left': 'next_layout', 'on_middle': 'toggle_monocle', 'on_right': 'prev_layout' }` | Callbacks for mouse events on the widget. |
1011
| `animation` | dict | `{'enabled': True, 'type': 'fadeInOut', 'duration': 200}` | Animation settings for the widget. |
1112
| `container_padding` | dict | `{'top': 0, 'left': 0, 'bottom': 0, 'right': 0}` | Explicitly set padding inside widget container. |
@@ -23,19 +24,21 @@ wifi:
2324
on_left: "exec cmd.exe /c start ms-settings:network"
2425
on_middle: "do_nothing"
2526
on_right: "toggle_label"
27+
ethernet_icon: "\ueba9"
2628
wifi_icons: [
2729
"\udb82\udd2e", # Icon for 0% strength
28-
"\udb82\udd1f", # Icon for 1-20% strength
29-
"\udb82\udd22", # Icon for 21-40% strength
30-
"\udb82\udd25", # Icon for 41-80% strength
31-
"\udb82\udd28" # Icon for 81-100% strength
30+
"\udb82\udd1f", # Icon for 1-24% strength
31+
"\udb82\udd22", # Icon for 25-49% strength
32+
"\udb82\udd25", # Icon for 50-74% strength
33+
"\udb82\udd28" # Icon for 75-100% strength
3234
]
3335
```
3436

3537
## Description of Options
3638
- **label:** The format string for the active window title. You can use placeholders like `{win[title]}` to dynamically insert window information. Default is `"{icon}"`.
3739
- **label_alt:** The format string for the active window title when the widget is in the alternative state. Default is `"{wifi_name} {wifi_strength}%"`.
3840
- **update_interval:** The interval in milliseconds at which the widget updates. Default is `1000`.
41+
- **ethernet_icon**: The icon that indicates an active Ethernet connection. It will be used as `{wifi_icon}` whenever there's no active WiFi connection. Default is "\ueba9".
3942
- **wifi_icons:** A list of icons to use for different WiFi signal strengths. Default is `["\udb82\udd2e","\udb82\udd1f","\udb82\udd22","\udb82\udd25","\udb82\udd28",]`.
4043
- **callbacks:** A dictionary of callbacks for mouse events on the widget. Default is `{'on_left': 'toggle_label', 'on_middle': 'do_nothing', 'on_right': 'do_nothing'}`.
4144
- **animation:** A dictionary specifying the animation settings for the widget. It contains three keys: `enabled`, `type`, and `duration`. The `type` can be `fadeInOut` and the `duration` is the animation duration in milliseconds.

0 commit comments

Comments
 (0)