1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

tools: restructured

This commit is contained in:
2023-11-10 13:55:20 +01:00
parent 4cf03f336e
commit 1547250832
38 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#!/bin/sh
killall -SIGUSR1 gpu-screen-recorder && notify-send 'Screen record' 'Replay saved'

View File

@@ -0,0 +1,14 @@
#!/bin/sh
window=$(xdotool getwindowfocus)
fps=60
audio_1="easyeffects_sink.monitor"
audio_2="easyeffects_source"
format="mp4"
v_codec="h264"
a_codec="opus"
lenght=20
output="$HOME/downloads"
gpu-screen-recorder -w $window -f $fps -a $audio_1 -a $audio_2 -c $format -k $v_codec -ac $a_codec -r $lenght -o $output &
notify-send 'Screen record' 'Replay started'

View File

@@ -0,0 +1,13 @@
#!/bin/sh
window=$(xdotool getwindowfocus)
fps=30
audio_1="easyeffects_sink.monitor"
audio_2="easyeffects_source"
format="mp4"
v_codec="h264"
a_codec="opus"
output="$HOME/downloads/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
gpu-screen-recorder -w $window -c $format -k $v_codec -ac $a_codec -f $fps -a $audio_1 -a $audio_2 -o $output &
notify-send 'Screen record' 'Recording started'

View File

@@ -0,0 +1,3 @@
#!/bin/sh
killall -SIGINT gpu-screen-recorder && notify-send 'Screen record' 'Recording stopped'