diff options
| -rwxr-xr-x | local/bin/translate-prompt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/local/bin/translate-prompt b/local/bin/translate-prompt index d1588da..fb23b56 100755 --- a/local/bin/translate-prompt +++ b/local/bin/translate-prompt @@ -10,6 +10,7 @@ command -v rofi > /dev/null && choice="$( $menu_exec <<EOF +From Selection From Clipboard Open Editor EOF @@ -20,6 +21,9 @@ EOF text_file="$(mktemp /tmp/translate_prompt_text_XXXXXX)" case "$choice" in + 'From Selection') + xsel --output > "$text_file" + ;; 'From Clipboard') xclip -out -selection clipboard > "$text_file" ;; |
