From a6c8fd92771c92e57c8206d6de153adec2dbc673 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Sat, 28 Jan 2023 18:12:39 -0500 Subject: [PATCH] If xclip is installed, tries to place the url into your clipboard. --- ratatoskr.sh | 4 ++++ 1 file changed, 4 insertions(+) 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}" }