11 lines
291 B
Bash
Executable File
11 lines
291 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sleep 5;
|
|
screenshot_dir="$HOME/Screenshots"
|
|
timestamp=$(date +"%Y-%m-%d-%H-%M-%S")
|
|
screenshot_file="$screenshot_dir/screenshot_$timestamp.png"
|
|
|
|
grim - | swappy -f - -o - | pngquant - > "$screenshot_file"
|
|
~/.local/bin/pastebin_client.sh upload "$screenshot_file" yes | wl-copy
|
|
|