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 | |
| parent | 9cd8db6fbe61f5e8b07315b34a0ec2db8ea608db (diff) | |
switch to alercritter
Diffstat (limited to '.local/bin')
| -rwxr-xr-x | .local/bin/screenrecord | 5 | ||||
| -rwxr-xr-x | .local/bin/screenshot | 11 |
2 files changed, 16 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 diff --git a/.local/bin/screenshot b/.local/bin/screenshot new file mode 100755 index 0000000..20c98af --- /dev/null +++ b/.local/bin/screenshot @@ -0,0 +1,11 @@ +#!/bin/bash + +maim -u | feh -F - & +id=$! + +maim -suc 1,1,1 > /tmp/cropped.png +xclip -selection clipboard -t image/png /tmp/cropped.png + +kill $id + +notify-send -u low -a "maim" -i /tmp/cropped.png "Screenshot captured" |
