From 8c10f0ac0d943da670e0f1c9c6c690694c538541 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 7 Aug 2024 18:20:37 -0400 Subject: [PATCH] waybar: fix lib.getExe' --- homeManagerModules/services/waybar/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeManagerModules/services/waybar/default.nix b/homeManagerModules/services/waybar/default.nix index e59ce609..bc584820 100644 --- a/homeManagerModules/services/waybar/default.nix +++ b/homeManagerModules/services/waybar/default.nix @@ -89,8 +89,8 @@ CRIT=''${1:-10} NOTIFY=${lib.getExe' pkgs.libnotify "notify-send"} - stat=$(${lib.getExe pkgs.coreutils "cat"} $bat/status) - perc=$(${lib.getExe pkgs.coreutils "cat"} $bat/capacity) + stat=$(${lib.getExe' pkgs.coreutils "cat"} $bat/status) + perc=$(${lib.getExe' pkgs.coreutils "cat"} $bat/capacity) if [[ $perc -le $CRIT ]] && [[ $stat == "Discharging" ]]; then $NOTIFY --urgency=critical --icon=dialog-error "Battery Critical" "Current charge: $perc%". @@ -178,10 +178,10 @@ mako-dnd = pkgs.writeShellScript "mako-dnd" '' show() { MAKO_MODE=$(${lib.getExe' pkgs.mako "makoctl"} mode) - if ${lib.getExe pkgs.coreutils "echo"} "$MAKO_MODE" | ${lib.getExe pkgs.gnugrep "grep"} -q "do-not-disturb"; then - ${lib.getExe pkgs.coreutils "printf"} '{"text": "󰂛", "class": "on", "tooltip": "Notifications snoozed."}\n' + if ${lib.getExe' pkgs.coreutils "echo"} "$MAKO_MODE" | ${lib.getExe' pkgs.gnugrep "grep"} -q "do-not-disturb"; then + ${lib.getExe' pkgs.coreutils "printf"} '{"text": "󰂛", "class": "on", "tooltip": "Notifications snoozed."}\n' else - ${lib.getExe pkgs.coreutils "printf"} '{"text": "󰂚", "class": "off","tooltip": "Notifications enabled."}\n' + ${lib.getExe' pkgs.coreutils "printf"} '{"text": "󰂚", "class": "off","tooltip": "Notifications enabled."}\n' fi }