mirror of
https://github.com/kossLAN/dots.git
synced 2025-11-04 22:49:50 -05:00
refactor: make screenshots even less bad, and copy to the clipboard
This commit is contained in:
parent
62ed66e60a
commit
29658fa910
4 changed files with 52 additions and 7 deletions
17
shell/scripts/screenshot.sh
Normal file
17
shell/scripts/screenshot.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue