15 lines
387 B
Bash
Executable file
15 lines
387 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if is_wayland; then
|
|
grim -g "$(slurp -d)" - | wl-copy
|
|
else
|
|
pkill unclutter
|
|
sleep 0.1
|
|
import ~/.ss.png
|
|
chmod 700 ~/.ss.png
|
|
< ~/.ss.png xclip -t image/png -i -selection clipboard
|
|
< ~/.ss.png xclip -t image/png -i -selection primary
|
|
< ~/.ss.png xclip -t image/png -i -selection secondary
|
|
< ~/.ss.png xclip -t image/png -i -selection buffer-cut
|
|
unclutter &
|
|
fi
|