jq->jaq
All checks were successful
Nix Build / build-nixos (push) Successful in 4m53s

This commit is contained in:
soraefir
2024-04-13 19:16:52 +02:00
parent 41efe10dd4
commit 52e9726ba7
3 changed files with 15 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ let
pkgs.writeShellScriptBin "waybar-${name}" ''
set -euo pipefail
${pre}
${pkgs.jq}/bin/jq -cn \
${pkgs.jaq}/bin/jaq -cn \
--arg text "${text}" \
--arg tooltip "${tooltip}" \
--arg alt "${alt}" \
@@ -19,7 +19,7 @@ let
in {
config = lib.mkIf (config.homecfg.wm == "Wayland") {
home.packages = [ pkgs.custom.amdgpu_top pkgs.jq ];
home.packages = [ pkgs.custom.amdgpu_top pkgs.jaq ];
programs.waybar = {
enable = true;
@@ -204,7 +204,7 @@ in {
"exec" = jsonOutput "gpu" {
tooltip = "...";
percentage = ''
$(amdgpu_top -J -n 1 | jq -r '.devices[0].GRBM2."Command Processor - Graphics".value')'';
$(amdgpu_top -J -n 1 | jaq -r '.devices[0].GRBM2."Command Processor - Graphics".value')'';
};
"return-type" = "json";
"interval" = 5;