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

  format-wifi = "${mkIcon iconColor "{icon}"}  󰁅{bandwidthDownBytes}  󰁝{bandwidthUpBytes}";
  format-ethernet = "${mkIcon iconColor ""}  󰁅{bandwidthDownBytes}  󰁝{bandwidthUpBytes}";
  format-disconnected = "${mkIcon iconColor "󰤮"}  Disconnected";

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

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