0
공식적인 Imgur 업로드 스크립트를 수정하여 키에 바인딩 할 수있게했지만 실제로 키를 누르면 그냥 두 개의 notify-send 명령을 사용하고 스크립트를 종료하십시오. 터미널이나 ALT + F2를 통해 실행하지만 키를 누르지 않아도 작동합니다. 다음과 같이Imgur bash 스크립트가 키에 바인딩되어있을 때 작동하지 않습니다
스크립트는 다음과 같습니다
#!/bin/bash
sleep 0.5;
notify-send "Imgur Uploader";
function uploadImage {
curl -s -F "[email protected]$1" -F "key=486690f872c678126a2c09a9e196ce1b" http://imgur.com/api/upload.xml | grep -E -o "<original_image>(.)*</original_image>" | grep -E -o "http://i.stack.imgur.com/[^<]*";
}
scrot -s "shot.png";
image=`uploadImage "shot.png"`;
echo $image | xclip -selection c;
rm "shot.png";
notify-send "Done!" "$image";
내가 말했듯이, 스크립트를 수동으로 호출 할 때 작동하지만 나는 키 누르기에 바인딩 실행 얻을 수 없습니다. 나는 screenshot
, /usr/bin/screenshot
, sh screenshot
및 sh /usr/bin/screenshot
을 시도했습니다. 여기서 중요한 일을 놓친 거니?
나는 똑같은 문제에 봉착하고있는 유일한 awnser 아래 아무것도하지 않습니다. –