mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-28 16:36:28 +08:00
more waybar config
This commit is contained in:
parent
a6e205a95e
commit
bd88dbf4b4
2 changed files with 55 additions and 7 deletions
|
|
@ -34,6 +34,7 @@ in
|
|||
|
||||
acpi
|
||||
acpilight
|
||||
pavucontrol
|
||||
|
||||
# TODO: https://github.com/nix-community/home-manager/pull/5489
|
||||
hyprshade
|
||||
|
|
|
|||
|
|
@ -16,9 +16,10 @@
|
|||
"memory"
|
||||
"backlight"
|
||||
"battery"
|
||||
"power-profiles-daemon"
|
||||
"pulseaudio"
|
||||
"network"
|
||||
"tray"
|
||||
"custom/power"
|
||||
];
|
||||
"hyprland/workspaces" = {
|
||||
# active-only = true;
|
||||
|
|
@ -38,12 +39,58 @@
|
|||
"memory" = {
|
||||
format = "{}% ";
|
||||
};
|
||||
network = {
|
||||
format-wifi = " {essid} ({signalStrength}%)";
|
||||
format-ethernet = " {ifname}";
|
||||
format-disconnected = "⚠ Disconnected";
|
||||
tooltip-format = "{ifname} via {gwaddr}";
|
||||
on-click = "nm-connection-editor";
|
||||
"backlight" = {
|
||||
format = "{percent}% {icon}";
|
||||
format-icons = [ "" "" "" "" "" "" "" "" "" ];
|
||||
};
|
||||
battery = {
|
||||
states = {
|
||||
warning = 30;
|
||||
critical = 15;
|
||||
};
|
||||
format = "{capacity}% {icon}";
|
||||
format-full = "{capacity}% {icon}";
|
||||
format-charging = "{capacity}% ";
|
||||
format-plugged = "{capacity}% ";
|
||||
format-alt = "{time} {icon}";
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
};
|
||||
"power-profiles-daemon" = {
|
||||
format = "{icon}";
|
||||
tooltip-format = "Power profile: {profile}\\nDriver: {driver}";
|
||||
tooltip = true;
|
||||
format-icons = {
|
||||
default = "";
|
||||
performance = "";
|
||||
balanced = "";
|
||||
"power-saver" = "";
|
||||
};
|
||||
};
|
||||
"network" = {
|
||||
format-wifi = "{essid} ({signalStrength}%) ";
|
||||
format-ethernet = "{ipaddr}/{cidr} ";
|
||||
tooltip-format = "{ifname} via {gwaddr} ";
|
||||
format-linked = "{ifname} (No IP) ";
|
||||
format-disconnected = "Disconnected ⚠";
|
||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
||||
};
|
||||
pulseaudio = {
|
||||
format = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth = "{volume}% {icon} {format_source}";
|
||||
format-bluetooth-muted = " {icon} {format_source}";
|
||||
format-muted = " {format_source}";
|
||||
format-source = "{volume}% ";
|
||||
format-source-muted = "";
|
||||
format-icons = {
|
||||
headphone = "";
|
||||
"hands-free" = "";
|
||||
headset = "";
|
||||
phone = "";
|
||||
portable = "";
|
||||
car = "";
|
||||
default = [ "" "" "" ]; # Assuming consistent icons for simplicity
|
||||
};
|
||||
on-click = "pavucontrol";
|
||||
};
|
||||
"clock" = {
|
||||
format = "{:%H:%M} ";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue