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.

screenshot 254B

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