Files
dotfiles/hypr/screenshot.sh

9 lines
232 B
Bash
Executable File

#!/bin/bash
date=$(date +"%Y-%m-%d.%H:%M:%S")
filename="$date.png"
filepath="/home/pablusha/Pictures/$filename"
grim -g "$(slurp -c 00000000)" "$filepath"
wl-copy < "$filepath"
notify-send -i $filepath "screenshot saved" $filepath