From b98e05ba63f2e108df634b4d9f9e5530769c6b80 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 10 Jun 2021 18:58:52 +0200 Subject: Added scripts and readme --- dmenu-urlselect | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 dmenu-urlselect (limited to 'dmenu-urlselect') diff --git a/dmenu-urlselect b/dmenu-urlselect new file mode 100755 index 0000000..e19ec7b --- /dev/null +++ b/dmenu-urlselect @@ -0,0 +1,10 @@ +#!/bin/sh + +# Finds all URLs in stdin and prompts a dmenu choice, then writes the selected +# url to stdout. +# Requires: dmenu (or similar), urlgrep + +menu=${MENU:-dmenu} +menuopts="-l 20" + +urlgrep | $menu $menuopts -- cgit v1.3