1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00
dotfiles/.local/bin/tools/record_replay_start

12 lines
269 B
Bash
Executable File

#!/bin/sh
window=$(xdotool getwindowfocus)
fps=30
audio="$(pactl get-default-sink).monitor"
format="mp4"
lenght=20
output="$HOME/downloads"
gpu-screen-recorder -w $window -f $fps -a $audio -c $format -r $lenght -o $output
notify-send 'Screen record' 'Replay started'