aboutsummaryrefslogtreecommitdiff
path: root/home/profiles/waybar.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles/waybar.nix')
-rw-r--r--home/profiles/waybar.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/home/profiles/waybar.nix b/home/profiles/waybar.nix
index a7e1ff0..4a31377 100644
--- a/home/profiles/waybar.nix
+++ b/home/profiles/waybar.nix
@@ -13,7 +13,7 @@
margin-right = 0;
margin-bottom = 0;
modules-left = [ "sway/workspaces" "sway/mode" ];
- modules-right = [ "pulseaudio" "network" "battery" "clock" "tray" ];
+ modules-right = [ "custom/systemd" "pulseaudio" "network" "battery" "clock" "tray" ];
"sway/workspaces" = {
format = "{name}";
disable-scroll = true;
@@ -30,6 +30,12 @@
tooltip = true;
tooltip-format = "{timeTo} ({capacity}%)";
};
+ "custom/systemd" = {
+ exec = "${pkgs.tools.waybar-systemd-units}/bin/waybar-systemd-units";
+ format = "failed units: {}";
+ return-type = "json";
+ interval = 60;
+ };
pulseaudio = {
format = "vol:{volume}%";
format-bluetooth = "bt:{volume}%";
@@ -101,5 +107,8 @@
#pulseaudio.muted {
color: #8c8f91;
}
+ #custom-systemd.errors {
+ border-bottom: 2px solid #ef8773;
+ }
'';
}