diff options
| author | Xander Swan <[hidden email]> | 2026-01-01 17:29:58 -0500 |
|---|---|---|
| committer | Xander Swan <[hidden email]> | 2026-01-01 17:29:58 -0500 |
| commit | 98bb3c22056d15d471e075b5d75382fb1d5793d3 (patch) | |
| tree | 23329bd8220e14cb76b790aa233ec3c49a306594 /.local/bin/screenrecord | |
| parent | 9cd8db6fbe61f5e8b07315b34a0ec2db8ea608db (diff) | |
switch to alercritter
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 |
