From 686d459f9cfe0d9a09b16f66463b9358a3fa4219 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 27 Jun 2024 01:03:50 -0400 Subject: [PATCH] fix(gsr): change path to mainMonitor --- devices/binto/modules/gpu-replay.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/devices/binto/modules/gpu-replay.nix b/devices/binto/modules/gpu-replay.nix index 82f3860f..23095464 100644 --- a/devices/binto/modules/gpu-replay.nix +++ b/devices/binto/modules/gpu-replay.nix @@ -7,7 +7,9 @@ }: let inherit (lib) concatStringsSep removePrefix; - inherit (config.vars) mainUser mainMonitor; + inherit (config.vars) mainUser; + + cfgDesktop = config.roles.desktop; gsr = self.packages.${pkgs.system}.gpu-screen-recorder; hyprPkgs = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.finalPackage; @@ -44,7 +46,7 @@ in { name = "gsr-start"; runtimeInputs = [pkgs.pulseaudio hyprPkgs pkgs.xorg.xrandr]; text = '' - main="${removePrefix "desc:" mainMonitor}" + main="${removePrefix "desc:" cfgDesktop.mainMonitor}" WINDOW=$(hyprctl -j monitors | jq '.[] |= (.description |= gsub(","; ""))' | jq -r ".[] | select(.description | test(\"$main\")) | .name") # Fix fullscreen game resolution