refactor: make screenshots even less bad, and copy to the clipboard

This commit is contained in:
kossLAN 2025-10-15 15:12:42 -04:00
parent 62ed66e60a
commit 29658fa910
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
4 changed files with 52 additions and 7 deletions

View file

@ -0,0 +1,17 @@
#!/usr/bin/env sh
# Very basic script for taking a screenshot and then
# copying it the clipboard
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <geometry> <path>"
exit 1
fi
# create directory if doesn't already exist
mkdir -p ~/Pictures
# 1 - Geometry
# 2 - Path
grim -g "$1" $2
wl-copy <$2