Skip to content

Desktop entries for launching searchi engines inside the browser

Notifications You must be signed in to change notification settings

c-b5r/linux-launcher-web-search-shortcuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Launcher Search

These are a couple of example desktop files on how to launch a browser search - completely launcher independent.

Setup

Installation

Just copy the .desktop files to ~/.local/share/applications/.

Configuration

In case Chromium is /not/ your default browser you need to modify all the .desktop files according to your setup. Here is a quick example on to do this:

sed -i 's/chromium/firefox/g' ~/.local/share/applications/Search_*.desktop

Of course I could have just used something like xdg-open, but I just don't feel like installing a package for this :]

Adding your own engines

Basically just copy any .desktop file and Modify it.

  • Name= entry is the shortcut you want to assign to the specific engine.
    • IMPORTANT: you /should always/ add a space (e.g. "g ") behind said engine shortcut. Otherwise some (all?) launchers might launch different shortcuts in some cases. Reason: Spaces between a shortcut and the search query are /not/ mandatory. In other words: "gfoobar" would launch the "g" shortcut with the query "foobar" if both "g" and "gi" (/without/ trailing spaces) are registered as shortcuts, "gi foobar" would be equivalent to "g i foobar" and the actual "gi" shortcut would be entirely inaccessible.
  • Comment= is optional
  • Exec= is the actual command that gets launched. %U herein is substituted by everything other than the shortcut (Name=).

Example

Type "g I hate it when" into your application launcher to initiate a Google search.

About

Desktop entries for launching searchi engines inside the browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published