mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
17 lines
297 B
Bash
17 lines
297 B
Bash
#!/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
|