mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
296 B
11 lines
296 B
#!/bin/sh
|
|
|
|
window=$(xdotool getwindowfocus)
|
|
fps=30
|
|
audio="$(pactl get-default-sink).monitor"
|
|
format="mp4"
|
|
output="$HOME/downloads/recording-$(date '+%Y-%m-%d_%H-%M-%S').$format"
|
|
|
|
gpu-screen-recorder -w $window -c "mp4" -f $fps -a $audio -o $output
|
|
notify-send 'Screen record' 'Recording started'
|