dotfiles/.local/bin/screenshot_edit_hyprland.sh_gitlab
2025-05-28 18:33:04 +02:00

26 lines
777 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
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"
# Captura toda la pantalla, edita, comprime y guarda
grim - | swappy -f - -o - | pngquant - > "$screenshot_file"
# Sube a GitLab y copia al portapapeles
~/.local/bin/gitlab-paste "$screenshot_file"
# Notificación opcional (recomendado)
notify-send "📤 Screenshot subido" "Enlace copiado al portapapeles"