You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

9 lines
254 B

#!/bin/sh
dir=$(xdg-user-dir PICTURES)/screen
[ -d "$dir" ] || mkdir -p "$dir"
file=$(date +"%Y-%m-%d_%H:%M:%S").png
path=$dir/$file
if maim -u -s "$path"; then
notify-send --icon "$path" "Screenshot saved" "$path"
xclip -sel c -t image/png "$path"
fi