From 98bb3c22056d15d471e075b5d75382fb1d5793d3 Mon Sep 17 00:00:00 2001 From: Xander Swan <[hidden email]> Date: Thu, 1 Jan 2026 17:29:58 -0500 Subject: switch to alercritter --- .local/bin/screenrecord | 5 +++++ .local/bin/screenshot | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100755 .local/bin/screenrecord create mode 100755 .local/bin/screenshot (limited to '.local') 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" -- cgit v1.3-2-g0d8e