And I could never get enough
This commit is contained in:
parent
ae7aefa541
commit
b88dc9011a
15 changed files with 159 additions and 50 deletions
13
.local/bin/aws
Executable file
13
.local/bin/aws
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
notify(){
|
||||
notify-send "aws" "screenshot copied to clipboard"
|
||||
}
|
||||
|
||||
img="$HOME/Pictures/$(date +"%d_%m_%y-%H_%M_%S").png"
|
||||
|
||||
case "$1" in
|
||||
-f) grim "$img" && wl-copy -t image/png < "$img" && notify ;;
|
||||
-r) grim -g "$(slurp)" "$img" && wl-copy -t image/png < "$img" && notify ;;
|
||||
-h|*) echo "usage: aws [-f] [-r]" >&2; exit 1; ;;
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue