aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/screenshot
blob: fb50efec577bfd8d04eaae7d550d9f14d9fb15b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

maim -u | feh -F - &
id=$!

maim -suc 1,1,1 > /tmp/screenshot.png
xclip -selection clipboard -t image/png /tmp/screenshot.png

kill $id

notify-send -u low -a "maim" -i /tmp/screenshot.png "Screenshot captured"