Skip to content

KlosRadieschen/menu-surfraw

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Note

As the original repo is no longer maintained, I will keep this here. I do not plan on modifying this script but I would be happy to accept pull requests


Menu Surfraw

A short little Bash script that uses your menu of choice (like rofi or wofi) to prompt you for an Elvis and a search term with surfraw.

Installation

This'll work anywhere. You could place it in ~/.local/bin or /usr/bin and have it built into dmenu, I use it in i3 with this line in my configuration: bindsym $mod+Mod1+space exec ~/.dotfiles/menu-surfraw, it's up to you!

Preview

Menu Surfraw Preview

Usage

menu-surfraw [OPTIONS] [ELVIS [SEARCHTERM]]

OPTIONS:
  -h, --help		Displays this message
  -m, --menu		Select a menu to use. Some of them need the -d or
                        --dmenu flag. Just add it behind the name.
                        Example: ./menu-surfraw -m wofi -d -b librewolf
  -b, --browser 	Select a browser to use.

ELVIS:
    This is the same as surfraw, any Elvi you have installed. Can be left
    blank, as you will be prompted for this in the menu.

SEARCHTERM:
    Again, the same as surfraw, the term you are searching for. Can also be
    left blank as you will be prompted for this in the menu.

Dependencies

  • Dmenu
  • Surfraw
  • Rofi or any other menu (optional)

License

Do what you like, this script makes use of Unlicense so it's essentially public domain!

About

Script to use Surfraw on dmenu-like launchers

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 100.0%