16 May 2020

Firefox / Waterfox shortcut : open clipboard content in new TAB (LXDE Linux)

With this other shortcut, you can select anything (text or URL) and get it open in a new TAB just pressing Ctrl+'  (I chose that because is beside Ctrl+# which I use to open whatever is on clipboard on a new window).

<!-- open new TAB and search whatever is on clipboard/selection -->
    <keybind key="C-apostrophe">
      <action name="Execute">
        <command>/bin/bash -c '/opt/waterfox/waterfox -new-tab "https://www.google.com/search?q=`xclip -o -selection primary`"'</command>
      </action>
    </keybind>
<!-- END OF open new TAB and search whatever is on clipboard/selection -->


To know the 'name' of a specific key or combination, run
# xev | sed -ne '/^KeyPress/,/^$/p'
and press the desired keys

This last info comes from https://askubuntu.com/questions/466646/how-to-get-the-name-of-the-key-combination-keybind-key-for-the-openbox-confi
Too Cool for Internet Explorer