Shorthand for web search based on each own query with dmenu.
OPTIONS='''
[
[ "Arch:Manpage", "https://man.archlinux.org/search?q=" ],
[ "Arch:Wiki", "https://wiki.archlinux.org/index.php?search=" ],
[ "Arch:Packages", "https://archlinux.org/packages/?q=" ],
[ "Arch:Packages:AUR", "https://aur.archlinux.org/packages/?K=" ],
[ "DuckDuckGo:Search", "https://duckduckgo.com/?q=" ],
[ "GitHub:Search", "https://github.com/search?q=" ],
[ "Google:Search", "https://duckduckgo.com/?q=!g+" ],
[ "Google:Search:Image", "https://duckduckgo.com/?q=!gi+" ],
[ "Google:Translate", "https://translate.google.com/?sl=auto&tl=id&text=" ],
[ "Ruby:Gems", "https://rubygems.org/gems/" ],
[ "Ruby:Toolbox", "https://www.ruby-toolbox.com/search?q=" ]
]
'''
Just add in the OPTIONS
array.
β
|
Donβt give comma , in the last element!
|
Complete the menu search with Tab, and write down your keywords.
The form should be like this,
Prefix:Menu <your> <keywords>
π
|
Youβre free to define the prefix menu. My example is just for ease in explaining. |
Copyright Β© 2021 Rizqi Nur Assyaufi. Free use of this software is granted under the terms of the MIT License. See LICENSE for details.