This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RESPONSE="`$HOME/bin/post-picasa "$1" 2>&1`" | |
if [ $? = 0 ]; then | |
zenity --entry --entry-text="$RESPONSE" --title="Изображение $1 загружено" --text="Нажмите «OK», чтобы скопировать адрес и закрыть это окно" | xclip -selection clipboard | |
else | |
echo $RESPONSE | zenity --text-info --title="Произошла ошибка" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function youtube-play() { | |
if [ $# -eq 1 ]; then | |
YOUTUBE_LINK=$1 | |
else | |
YOUTUBE_LINK=`xclip -o -selection "clipboard" | grep -oE 'http[^&]*' | head -n1` | |
fi | |
YOUTUBE_COOKIES=$HOME/.youtube.cookies | |
if [ ! -e $YOUTUBE_COOKIES ]; then | |
curl -c $YOUTUBE_COOKIES http://www.youtube.com > /dev/null 2>&1 | |
fi |
NewerOlder