From 4f22744983f366313e173791271fa0de100ea96f Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Sat, 17 Aug 2024 23:37:08 -0700 Subject: [PATCH] writeXrandrScriptBin: fix xrandr path --- pkgs/writeXrandrScriptBin.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/writeXrandrScriptBin.nix b/pkgs/writeXrandrScriptBin.nix index d5f8002..c647295 100644 --- a/pkgs/writeXrandrScriptBin.nix +++ b/pkgs/writeXrandrScriptBin.nix @@ -1,7 +1,7 @@ -{ lib, writeShellScriptBin }: +{ lib, writeShellScriptBin, xrandr }: let inherit (builtins) getAttr hasAttr isAttrs concatStringsSep; - inherit (lib) assertMsg lists escapeShellArgs; + inherit (lib) assertMsg lists escapeShellArgs getExe; inherit (lib.attrsets) mapAttrsToList; inherit (lib.cli) toGNUCommandLine; in @@ -22,6 +22,6 @@ let args = mapAttrsToList getArgList config; in writeShellScriptBin name '' - xrandr \ + ${getExe xrandr} \ ${concatStringsSep " \\\n " args} ''