mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-18 18:07:45 +01:00
14 lines
391 B
Bash
Executable File
14 lines
391 B
Bash
Executable File
#!/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'
|