Muh dotfiles
This commit is contained in:
8
.local/bin/screenshot.sh
Executable file
8
.local/bin/screenshot.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
timeout 10 slurp > /tmp/selection.txt 2>/dev/null
|
||||
if [ $? -eq 0 ] && [ -s /tmp/selection.txt ]; then
|
||||
grim -g "$(cat /tmp/selection.txt)" - | wl-copy
|
||||
else
|
||||
grim - | wl-copy
|
||||
fi
|
||||
rm -f /tmp/selection.txt
|
||||
Reference in New Issue
Block a user