1

I know I can add custom shortcuts or even url links to the launcher.

Can I create custom launcher shortcuts that accept or process arguments?

For example, can I set a launcher link to open http://google.com/#q=%s, so that when I type google cat videos in launcher, it will open the link replacing %s with cat videos?

1 Answers1

1
  1. How about making new command google:

    sudo nano /usr/bin/google

    #!/bin/sh
    for w in $@ ; do query=$query+$w; done
    xdg-open http://google.com/#q=$query
    

    Add executing permission:

    sudo chmod +x /usr/bin/google
    
  2. To use it, Alt+F2 to open command launcher:

    google ...
    
user.dz
  • 49,176