diff options
author | epoch <epoch@enzo.thebackupbox.net> | 2021-04-29 21:31:38 +0000 |
---|---|---|
committer | epoch <epoch@enzo.thebackupbox.net> | 2021-04-29 21:31:38 +0000 |
commit | 53e28c310e9612dcb6e745f74f3ead44a8ade457 (patch) | |
tree | 622bbebc3eb1414b5a0ed9e4275cf18703e78a18 /copy_start_nevermind.sh | |
parent | 6cbe81286312453a49d242189654274cfebbcef5 (diff) | |
download | uritools-53e28c310e9612dcb6e745f74f3ead44a8ade457.tar.gz uritools-53e28c310e9612dcb6e745f74f3ead44a8ade457.zip |
added QR code option to copy_start_nevermind.sh, Makefile now includes urnresolve.
Diffstat (limited to 'copy_start_nevermind.sh')
-rwxr-xr-x | copy_start_nevermind.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/copy_start_nevermind.sh b/copy_start_nevermind.sh index 0e4b60f..3f7f7af 100755 --- a/copy_start_nevermind.sh +++ b/copy_start_nevermind.sh @@ -5,7 +5,7 @@ if [ "${uri}" != "${uri:0:64}" ];then prompt="${uri:0:64}..." fi scheme="$(uricut -s <<< "$uri")" -selection="$(printf "start with: %s\ncopy\nshorten\nverbose\nforget\n%s\n" "$(urigetline "$uri")" "$(printf "%s\n" "$uri" | uricut | grep -v '^whole')" \ +selection="$(printf "start with: %s\ncopy\nshorten\nverbose\nforget\nQR\n%s\n" "$(urigetline "$uri")" "$(printf "%s\n" "$uri" | uricut | grep -v '^whole')" \ | choose "${prompt}")" # | choose "$(printf "uri: '%s'\nwill be ran with: %s\n" "$uri" "$(urigetline "$uri")" )" -default start )" echo "$selection" @@ -44,6 +44,10 @@ shorten) exit 0 ;; +QR) + x-terminal-emulator -hold -e qr "$uri" + ;; + *) exec printf "%s" "$selection" | cut '-d ' -f2- | xclip -i ;; |