aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/screenshot
diff options
context:
space:
mode:
authorXander Swan <[hidden email]>2026-01-01 17:29:58 -0500
committerXander Swan <[hidden email]>2026-01-01 17:29:58 -0500
commit98bb3c22056d15d471e075b5d75382fb1d5793d3 (patch)
tree23329bd8220e14cb76b790aa233ec3c49a306594 /.local/bin/screenshot
parent9cd8db6fbe61f5e8b07315b34a0ec2db8ea608db (diff)
switch to alercritter
Diffstat (limited to '.local/bin/screenshot')
-rwxr-xr-x.local/bin/screenshot11
1 files changed, 11 insertions, 0 deletions
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"