Improve flakestat

This commit is contained in:
2024-04-29 11:51:25 +02:00
parent 960da0c59b
commit 0c97e9f3f6
2 changed files with 16 additions and 9 deletions

View File

@@ -172,12 +172,11 @@ in
({
"layer" = "top";
"position" = "top";
modules-left = [ "custom/launcher" "hyprland/workspaces" ];
modules-left = [ "custom/flakestat" "hyprland/workspaces" ];
modules-center = [ "clock" ];
modules-right =
[
(lib.mkIf (withArrhist) "custom/arrhist")
"custom/flakestat"
"pulseaudio"
"pulseaudio#microphone"
"memory"
@@ -185,11 +184,6 @@ in
"tray"
(lib.mkIf (withBattery) "battery")
];
"custom/launcher" = {
"format" = " ";
"on-click" = "pkill rofi || ~/.config/rofi/launcher.sh";
"tooltip" = false;
};
"hyprland/workspaces" = {
"format" = "{name}";
"on-click" = "activate";
@@ -248,13 +242,15 @@ in
};
"custom/flakestat" = {
"exec" = "${flakestat}/bin/flakestat";
"format" = " {}";
"return-type" = "json";
"interval" = 600;
};
} // lib.optionalAttrs (withArrhist) {
"custom/arrhist" = {
"exec" = "${arrhist}/bin/arrhist";
"return-type" = "json";
"interval" = 30;
"interval" = 600;
};
})
];