From 3446f5387389b0e1671481c8a8fb9ea0eed519f6 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 10 Mar 2016 14:29:06 +0000 Subject: Remove . from dotfiles for convenience --- .qutebrowser/userscripts/bookmarks-dmenu | 7 ------- .qutebrowser/userscripts/quickmarks-dmenu | 7 ------- .qutebrowser/userscripts/url-from-surfraw | 20 -------------------- 3 files changed, 34 deletions(-) delete mode 100755 .qutebrowser/userscripts/bookmarks-dmenu delete mode 100755 .qutebrowser/userscripts/quickmarks-dmenu delete mode 100755 .qutebrowser/userscripts/url-from-surfraw (limited to '.qutebrowser/userscripts') diff --git a/.qutebrowser/userscripts/bookmarks-dmenu b/.qutebrowser/userscripts/bookmarks-dmenu deleted file mode 100755 index 0f89413..0000000 --- a/.qutebrowser/userscripts/bookmarks-dmenu +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -url=$(cat ~/.config/qutebrowser/bookmarks/urls | dmenu -i -l 15 | awk '{print $1}') - -[ -z ${url} ] && exit - -echo "open $url" >> "$QUTE_FIFO" diff --git a/.qutebrowser/userscripts/quickmarks-dmenu b/.qutebrowser/userscripts/quickmarks-dmenu deleted file mode 100755 index 354b398..0000000 --- a/.qutebrowser/userscripts/quickmarks-dmenu +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -url=$(cat ~/.config/qutebrowser/quickmarks | dmenu -i -l 15 | awk '{print $NF}') - -[ -z ${url} ] && exit - -echo "open $url" >> "$QUTE_FIFO" diff --git a/.qutebrowser/userscripts/url-from-surfraw b/.qutebrowser/userscripts/url-from-surfraw deleted file mode 100755 index 9bd6795..0000000 --- a/.qutebrowser/userscripts/url-from-surfraw +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -DEFAULT_SEARCH=startpage - -if [[ $1 =~ ^-.$ ]]; then - option="$1" - shift 1 -fi - -is_elvi=$(surfraw -elvi | grep -c "^$1\s") -nbr_words=$(echo $1 | wc -w) - -if [[ $is_elvi -eq 0 && $nbr_words -eq 1 && ($1 == *.* || $1 == *:*) ]]; then - url="$1" -else - [[ $is_elvi -eq 0 ]] && sr="$DEFAULT_SEARCH $*" || sr=$* - url=$(surfraw -print $sr) -fi - -echo "open $option $url" >> $QUTE_FIFO -- cgit v1.2.3