mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
tools: restructured
This commit is contained in:
3
.local/bin/etc/screen_capture/record_replay_save
Executable file
3
.local/bin/etc/screen_capture/record_replay_save
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
killall -SIGUSR1 gpu-screen-recorder && notify-send 'Screen record' 'Replay saved'
|
14
.local/bin/etc/screen_capture/record_replay_start
Executable file
14
.local/bin/etc/screen_capture/record_replay_start
Executable 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'
|
13
.local/bin/etc/screen_capture/record_start
Executable file
13
.local/bin/etc/screen_capture/record_start
Executable 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'
|
3
.local/bin/etc/screen_capture/record_stop
Executable file
3
.local/bin/etc/screen_capture/record_stop
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
killall -SIGINT gpu-screen-recorder && notify-send 'Screen record' 'Recording stopped'
|
Reference in New Issue
Block a user