mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
configure waybar better
This commit is contained in:
parent
e59d3746c8
commit
a629e9f28c
1 changed files with 36 additions and 1 deletions
|
|
@ -119,6 +119,41 @@
|
||||||
tray = {
|
tray = {
|
||||||
spacing = 10;
|
spacing = 10;
|
||||||
};
|
};
|
||||||
|
"network" = {
|
||||||
|
# "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||||
|
"format-wifi" = " ({signalStrength}%)";
|
||||||
|
"format-ethernet" = "{ipaddr}/{cidr} ";
|
||||||
|
"tooltip-format" = "{ifname} via {gwaddr} ({ipaddr}/{cidr})";
|
||||||
|
"format-linked" = "{ifname} (No IP) ";
|
||||||
|
"format-disconnected" = "Disconnected ⚠";
|
||||||
|
"format-alt" = "{ifname}: {ipaddr}/{cidr}";
|
||||||
|
};
|
||||||
|
"power-profiles-daemon" = {
|
||||||
|
"format" = "{icon}";
|
||||||
|
"tooltip-format" = "Power profile: {profile}\nDriver: {driver}";
|
||||||
|
"tooltip" = true;
|
||||||
|
"format-icons" = {
|
||||||
|
"default" = "";
|
||||||
|
"performance" = "";
|
||||||
|
"balanced" = "";
|
||||||
|
"power-saver" = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
"battery" = {
|
||||||
|
"states" = {
|
||||||
|
# "good": 95,
|
||||||
|
"warning" = 30;
|
||||||
|
"critical" = 5;
|
||||||
|
};
|
||||||
|
"format" = "{capacity}% {icon}";
|
||||||
|
"format-full" = "{capacity}% {icon}";
|
||||||
|
"format-charging" = "{capacity}% ";
|
||||||
|
"format-plugged" = "{capacity}% ";
|
||||||
|
"format-alt" = "{time} {icon}";
|
||||||
|
# "format-good": "", // An empty format will hide the module
|
||||||
|
# "format-full": "",
|
||||||
|
"format-icons" = [ "" "" "" "" "" ];
|
||||||
|
};
|
||||||
"custom/power" =
|
"custom/power" =
|
||||||
let
|
let
|
||||||
power-menu = pkgs.writeText "power_menu.xml" ''
|
power-menu = pkgs.writeText "power_menu.xml" ''
|
||||||
|
|
@ -202,7 +237,7 @@
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
#privacy *, #pulseaudio, #cpu, #memory, #tray {
|
#privacy *, #pulseaudio, #cpu, #memory, #tray, #network, #power-profiles-daemon, #battery {
|
||||||
background-color: unset;
|
background-color: unset;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue