Created
December 3, 2023 08:58
-
-
Save Strykar/d4e46c3b9344f6fee07ca337f5a2435f to your computer and use it in GitHub Desktop.
Open URLs from Kitty terminal in a browser on Ctrl + Shift + left click
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
To kitty.conf, add: | |
map kitty_mod+o pass_selection_to_program ~/.bin/selectiontobrowser.sh | |
$ cat ~/.bin/selectiontobrowser.sh | |
#!/bin/bash | |
URL="http://www.google.com/search?q=" | |
PRE_FORMAT_QUERY=$1 | |
QUERY="${PRE_FORMAT_QUERY// /+}" | |
#/usr/bin/google-chrome-stable -new-tab ${URL}${QUERY} | |
#/usr/bin/brave "${URL}""${QUERY}" | |
/usr/bin/firefox "${URL}""${QUERY}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment