diff options
Diffstat (limited to '.local/bin/screenrecord')
| -rwxr-xr-x | .local/bin/screenrecord | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.local/bin/screenrecord b/.local/bin/screenrecord new file mode 100755 index 0000000..ac5c2e3 --- /dev/null +++ b/.local/bin/screenrecord @@ -0,0 +1,5 @@ +#!/bin/bash + +name=`date +"%b-%d-%y_%H-%M-%S"` +audio_dev=`pactl list short sources | awk '/output/ {print $2}' | head -n 1` +ffmpeg -f x11grab -s $(awk '/dimensions/ {print $2}' <(xdpyinfo)) -i :0.0 -f pulse -i $audio_dev ~/media/vid/$name.mp4 |
