fix(gsr): change path to mainMonitor
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
85a3c28438
commit
686d459f9c
1 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,9 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) concatStringsSep removePrefix;
|
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;
|
gsr = self.packages.${pkgs.system}.gpu-screen-recorder;
|
||||||
hyprPkgs = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.finalPackage;
|
hyprPkgs = config.home-manager.users.${mainUser}.wayland.windowManager.hyprland.finalPackage;
|
||||||
|
@ -44,7 +46,7 @@ in {
|
||||||
name = "gsr-start";
|
name = "gsr-start";
|
||||||
runtimeInputs = [pkgs.pulseaudio hyprPkgs pkgs.xorg.xrandr];
|
runtimeInputs = [pkgs.pulseaudio hyprPkgs pkgs.xorg.xrandr];
|
||||||
text = ''
|
text = ''
|
||||||
main="${removePrefix "desc:" mainMonitor}"
|
main="${removePrefix "desc:" cfgDesktop.mainMonitor}"
|
||||||
WINDOW=$(hyprctl -j monitors | jq '.[] |= (.description |= gsub(","; ""))' | jq -r ".[] | select(.description | test(\"$main\")) | .name")
|
WINDOW=$(hyprctl -j monitors | jq '.[] |= (.description |= gsub(","; ""))' | jq -r ".[] | select(.description | test(\"$main\")) | .name")
|
||||||
|
|
||||||
# Fix fullscreen game resolution
|
# Fix fullscreen game resolution
|
||||||
|
|
Loading…
Reference in a new issue