Created
May 28, 2021 22:16
-
-
Save AdSegura/fd2a72a4b69c0c0fe1ee08b0e6d5a764 to your computer and use it in GitHub Desktop.
create a keyboard shortcut to launch, firefox new tab, google search with clipboard content
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 | |
## create a keyboard shortcut [ctrl + up + q] | |
## to launch a search with clipboard content | |
QUERY=`xclip -o` | |
URL='https://www.google.com/search?&q=' | |
URL+="$QUERY" | |
firefox --new-tab "$URL" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment