all repos — dotfiles @ a23a4945b23420b1b0800e9e3dfe9bfc083f1968

my *nix dotfiles

bin/record (view raw)

 1#!/bin/bash
 2slop=$(slop -f "%x %y %w %h %g %i") || exit 1
 3read -r X Y W H G ID < <(echo $slop)
 4ffmpeg \
 5    -f x11grab \
 6    -s "$W"x"$H" \
 7    -i :0.0+$X,$Y  \
 8    -framerate 60 \
 9    -vcodec libx264 \
10    -threads 4 \
11    -y \
12    "$HOME"/tmp/x.mkv
13
14ffmpeg \
15    -i "$HOME"/tmp/x.mkv \
16    -pix_fmt yuv420p \
17    -vf scale=-2:1080 \
18    "/home/np/vids/rec/$1"