This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2019-05-08 13:31:23 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-03-24 14:11:38 -05:00
|
|
|
if is_wayland; then
|
|
|
|
grim -g "$(slurp -d)" - | wl-copy
|
|
|
|
else
|
|
|
|
pkill unclutter
|
|
|
|
sleep 0.1
|
2020-04-20 10:57:33 -05:00
|
|
|
fn="$SCROTS_PATH/clipshot_$(date +"%Y-%m-%d_%H-%M-%S").png"
|
|
|
|
import "$fn"
|
|
|
|
chmod 700 "$fn"
|
|
|
|
< "$fn" xclip -t image/png -i -selection clipboard
|
|
|
|
< "$fn" xclip -t image/png -i -selection primary
|
|
|
|
< "$fn" xclip -t image/png -i -selection secondary
|
|
|
|
< "$fn" xclip -t image/png -i -selection buffer-cut
|
2020-03-24 14:11:38 -05:00
|
|
|
unclutter &
|
|
|
|
fi
|