fix(gsr): change path to mainMonitor
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-06-27 01:03:50 -04:00
parent 85a3c28438
commit 686d459f9c

View file

@ -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