all repos — dotfiles @ 1bc68c8e1ecbc599d7c4916f4f8ba06cbd99cafb

my *nix dotfiles

bin: Add durl script; fix browser

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Fri, 17 Jan 2020 22:13:07 +0530
commit

1bc68c8e1ecbc599d7c4916f4f8ba06cbd99cafb

parent

feb1b0d1ce1c1a20554d9f687f32a4d59a986fc7

2 files changed, 7 insertions(+), 1 deletions(-)

jump to
M bin/browserbin/browser

@@ -1,3 +1,3 @@

#!/bin/sh -tabbed vimb "$@" -e & +tabbed -df vimb -e > /tmp/tabbed.xid
A bin/durl

@@ -0,0 +1,6 @@

+#!/usr/bin/env bash + +regex='(https?|ftp|mailto)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]' +url=$(grep -Eo "$regex" | dmenu -p "url:" -w "$WINDOWID" | tr -d '\n') +[[ "$url" = "" ]] && exit +vimb -e $(</tmp/tabbed.xid) "$url" &