aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-05-30 22:21:03 +0200
committerdec05eba <dec05eba@protonmail.com>2024-05-30 22:21:03 +0200
commitbccf6e2dfe2121cff96d2dd2e329704e33668a5f (patch)
tree192f6e3d47be03f01fec8fa94aefc66912fca44a /extra
parent47dbf1a6d1b49eb079b1530540c496aec433369c (diff)
Rename gopm to keyint in service file too
Diffstat (limited to 'extra')
-rw-r--r--extra/gpu-screen-recorder.env2
-rw-r--r--extra/gpu-screen-recorder.service4
2 files changed, 3 insertions, 3 deletions
diff --git a/extra/gpu-screen-recorder.env b/extra/gpu-screen-recorder.env
index 0de20ed..e776bd6 100644
--- a/extra/gpu-screen-recorder.env
+++ b/extra/gpu-screen-recorder.env
@@ -8,4 +8,4 @@ SECONDARY_AUDIO_DEVICE=alsa_input.some-mic.mono-fallback
FRAMERATE=60
REPLAYDURATION=60
OUTPUTDIR=/run/media/dec05eba/SSD1TB/Videos/aaaa
-GOPM=2
+KEYINT=2
diff --git a/extra/gpu-screen-recorder.service b/extra/gpu-screen-recorder.service
index 7ba4ae2..6933f66 100644
--- a/extra/gpu-screen-recorder.service
+++ b/extra/gpu-screen-recorder.service
@@ -15,8 +15,8 @@ Environment=REPLAYDURATION=30
Environment=OUTPUTDIR=%h/Videos
Environment=MAKEFOLDERS=no
Environment=COLOR_RANGE=limited
-Environment=GOPM=2
-ExecStart=/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" -a "$SECONDARY_AUDIO_DEVICE" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS -cr $COLOR_RANGE -gopm $GOPM'
+Environment=KEYINT=2
+ExecStart=/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" -a "$SECONDARY_AUDIO_DEVICE" -f $FRAMERATE -r $REPLAYDURATION -o "$OUTPUTDIR" -mf $MAKEFOLDERS $ADDITIONAL_ARGS -cr $COLOR_RANGE -keyint $KEYINT'
KillSignal=SIGINT
Restart=on-failure
RestartSec=5s