Git Product home page Git Product logo

linux-launcher-web-search-shortcuts's Introduction

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.

linux-launcher-web-search-shortcuts's People

Watchers

Cedric Bodemer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.