diff --git a/ratatoskr.sh b/ratatoskr.sh index 565887a..a7ffdce 100755 --- a/ratatoskr.sh +++ b/ratatoskr.sh @@ -28,6 +28,10 @@ get_oauth_token() { echo echo "${url}" echo + if command -v xclip &> /dev/null ; then + echo "${url}" | xclip -selection clipboard -d "${DISPLAY:-:0}" 2> /dev/null && + echo "For convenience the url has been copied to your clipboard." + fi read -er oauth_token echo "oauth_token=\"${oauth_token}\"" >> "${configPath}/${configFile}" }