Revert "Revert "add org-download and config""

This reverts commit 617c86d44b7579e5c9c755e57a38933638f4e355.
This commit is contained in:
cho
2023-09-28 20:11:31 +07:00
parent f2aa8f935c
commit 25665457f4
3 changed files with 45 additions and 10 deletions

View File

@ -0,0 +1,10 @@
#!/bin/sh
wl-paste -t image > /tmp/convert-paste-png.data
#convert /tmp/convert-paste-png.data -format png "$1"
case "$(file --dereference --brief --mime-type -- "/tmp/convert-paste-png.data")" in
image/jpg|image/jpeg) convert /tmp/convert-paste-png.data -format png "$1" ;;
image/png) wl-paste -t image/png > "$1" ;;
esac