mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
screen-record: added hotkeys and scripts
This commit is contained in:
10
.local/bin/tools/record_start
Executable file
10
.local/bin/tools/record_start
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/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'
|
Reference in New Issue
Block a user