Skip to content

Commit

Permalink
more waybar config
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 5, 2024
1 parent a6e205a commit bd88dbf
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 7 deletions.
1 change: 1 addition & 0 deletions modules/nixos/linux/gui/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ in

acpi
acpilight
pavucontrol

# TODO: https://github.com/nix-community/home-manager/pull/5489
hyprshade
Expand Down
61 changes: 54 additions & 7 deletions modules/nixos/linux/gui/hyprland/waybar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"memory"
"backlight"
"battery"
"power-profiles-daemon"
"pulseaudio"
"network"
"tray"
"custom/power"
];
"hyprland/workspaces" = {
# active-only = true;
Expand All @@ -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}  ";
Expand Down

0 comments on commit bd88dbf

Please sign in to comment.