sway: wifi: show signal strength
i'd prefer to show the essid instead of the interface name, but there's no way to truncate that to just N characters, so we overflow if we do that.
This commit is contained in:
@@ -211,6 +211,7 @@ in
|
|||||||
sane.home-manager.programs.waybar = {
|
sane.home-manager.programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# docs: https://github.com/Alexays/Waybar/wiki/Configuration
|
# docs: https://github.com/Alexays/Waybar/wiki/Configuration
|
||||||
|
# format specifiers: https://fmt.dev/latest/syntax.html#syntax
|
||||||
settings = {
|
settings = {
|
||||||
mainBar = {
|
mainBar = {
|
||||||
layer = "top";
|
layer = "top";
|
||||||
@@ -239,10 +240,17 @@ in
|
|||||||
on-scroll-down = "${pkgs.playerctl}/bin/playerctl previous";
|
on-scroll-down = "${pkgs.playerctl}/bin/playerctl previous";
|
||||||
};
|
};
|
||||||
network = {
|
network = {
|
||||||
|
# docs: https://github.com/Alexays/Waybar/blob/master/man/waybar-network.5.scd
|
||||||
interval = 2;
|
interval = 2;
|
||||||
|
max-length = 40;
|
||||||
# custom :> format specifier explained here: https://github.com/Alexays/Waybar/pull/472
|
# custom :> format specifier explained here: https://github.com/Alexays/Waybar/pull/472
|
||||||
format-ethernet = " {bandwidthUpBits:>}▲ {bandwidthDownBits:>}▼";
|
format-ethernet = " {bandwidthUpBits:>}▲ {bandwidthDownBits:>}▼";
|
||||||
max-length = 40;
|
tooltip-format-ethernet = "{ifname} {bandwidthUpBits:>}▲ {bandwidthDownBits:>}▼";
|
||||||
|
|
||||||
|
format-wifi = "{ifname} ({signalStrength}%) {bandwidthUpBits:>}▲ {bandwidthDownBits:>}▼";
|
||||||
|
tooltip-format-wifi = "{essid} ({signalStrength}%) {bandwidthUpBits:>}▲ {bandwidthDownBits:>}▼";
|
||||||
|
|
||||||
|
format-disconnected = "";
|
||||||
};
|
};
|
||||||
cpu = {
|
cpu = {
|
||||||
format = " {usage:2}%";
|
format = " {usage:2}%";
|
||||||
|
Reference in New Issue
Block a user