aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar/module/network.nix
blob: 514d54eca6e53d0aa56224a15bf8fb45a3cce0fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, iconColor }:
with config.scheme.withHashtag;
{
  interval = 2;

  format-wifi = "<span foreground='${iconColor}'>{icon}</span>  󰁅 {bandwidthDownBytes}  󰁝 {bandwidthUpBytes}";
  format-ethernet = "<span foreground='${iconColor}'></span>  󰁅 {bandwidthDownBytes}  󰁝 {bandwidthUpBytes}";
  format-disconnected = "<span foreground='${iconColor}'>󰤮</span>  Disconnected";

  tooltip-format = "{ifname}";
  tooltip-format-wifi = "{essid} ({signalStrength}%)";
  tooltip-format-ethernet = "Wired: {ipaddr}";
  tooltip-format-disconnected = "Disconnected";

  format-icons = [
    "󰢼"
    "󰢽"
    "󰢾"
  ];
}