From 5d20dacdf97a97269aac5d629bdd92c571137bbf Mon Sep 17 00:00:00 2001 From: matt1432 Date: Fri, 16 Feb 2024 00:05:20 -0500 Subject: [PATCH] fix(gsr): add bind and mic input --- devices/binto/modules/gpu-replay.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devices/binto/modules/gpu-replay.nix b/devices/binto/modules/gpu-replay.nix index d4e45789..99650ff7 100644 --- a/devices/binto/modules/gpu-replay.nix +++ b/devices/binto/modules/gpu-replay.nix @@ -7,6 +7,7 @@ }: let inherit (config.vars) mainUser; + # TODO: manage this with ags gsr = pkgs.stdenv.mkDerivation { name = "gpu-screen-recorder"; version = gpu-screen-recorder-src.rev; @@ -77,6 +78,9 @@ in { }; home-manager.users.${mainUser} = { + wayland.windowManager.hyprland.settings.bind = [ + ", F8, exec, gpu-save-replay" + ]; # TODO: add mic sound xdg.configFile."gsr.sh" = { executable = true; @@ -97,7 +101,7 @@ in { # export ADDITIONAL_ARGS= # Disable compositor in X11 for best performance - exec /bin/sh -c 'AUDIO="''${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w $WINDOW -c $CONTAINER -q $QUALITY -k $CODEC -ac $AUDIO_CODEC -a "$AUDIO" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS' + exec /bin/sh -c 'AUDIO="''${AUDIO_DEVICE:-$(pactl get-default-sink).monitor}"; gpu-screen-recorder -v no -w $WINDOW -c $CONTAINER -q $QUALITY -k $CODEC -ac $AUDIO_CODEC -a "$(pactl get-default-source)" -a "$AUDIO" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS' ''; }; };