diff options
author | davidovski <david@davidovski.xyz> | 2025-03-17 22:54:39 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2025-03-17 22:54:39 +0000 |
commit | b3b4975df588e7c71bebb3cd7f4e83fd7a70b983 (patch) | |
tree | ae01e2115993946c5841aaf0c810a26476c2fa8e /scripts/record_window_hd.sh | |
parent | 6c1de1e807d39883c975933c4c35b91f1df88fd6 (diff) |
floating little bars and rounded borders
Diffstat (limited to 'scripts/record_window_hd.sh')
-rw-r--r-- | scripts/record_window_hd.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/record_window_hd.sh b/scripts/record_window_hd.sh new file mode 100644 index 0000000..f732fb7 --- /dev/null +++ b/scripts/record_window_hd.sh @@ -0,0 +1,19 @@ +#!/bin/sh +info=/tmp/wminfo + +xwininfo > /tmp/wminfo + +geom=$(cat $info | grep "geometry" | cut -d' ' -f4) + +width=$(cat $info | grep Width | cut -d' ' -f4) +height=$(cat $info | grep Height | cut -d' ' -f4) + +size="${width}x${height}" +position=+$(echo $geom | cut -d'+' -f2- | sed "s/+/,/g") + +filename=$(date +"$HOME/pics/screenshot/%F_%T.mp4") + +echo $size and $position +ffmpeg -y -f x11grab -video_size $size -i $position -f pulse -i default $filename + +rm $info |