31 lines
699 B
Bash
Executable File
31 lines
699 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"
|
|
|
|
# Function to take screenshot
|
|
#take_screenshot() {
|
|
# /usr/bin/grim "$screenshot_file"
|
|
#~/.local/bin/pastebin_client.sh upload "$screenshot_file" yes | /usr/bin/wl-copy
|
|
#}
|
|
|
|
#take_screenshot
|
|
|
|
sleep 5
|
|
screenshot_dir="$HOME/Screenshots"
|
|
mkdir -p "$screenshot_dir"
|
|
|
|
timestamp=$(date +"%Y-%m-%d-%H-%M-%S")
|
|
screenshot_file="$screenshot_dir/screenshot_$timestamp.png"
|
|
|
|
# Función para hacer screenshot y subirlo
|
|
take_screenshot() {
|
|
/usr/bin/grim "$screenshot_file" && \
|
|
~/.local/bin/gitlab-paste "$screenshot_file"
|
|
}
|
|
|
|
take_screenshot
|
|
|