My dotfiles
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.

10 lines
195 B

  1. #!/bin/sh
  2. if [ $# -eq 0 ]
  3. then
  4. magick import -window root ~/Screenshots/"$(date +%Y.%m.%d-%T)".jpg
  5. else
  6. magick import temp.jpg
  7. xclip -selection clipboard -t image/png temp.jpg
  8. rm temp.png
  9. fi