dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 5ed3981a63f1dcb187a7dcedbca417f7a5308819
parent 33b2532718942084b5c15e9f82c26cdd99ca21be
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 24 Jan 2019 22:19:15 +0100

Add bookmark launcher

Diffstat:
Mlinks/.config/i3/config | 2+-
Alinks/bin/open-bookmark.sh | 10++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/links/.config/i3/config b/links/.config/i3/config @@ -100,7 +100,7 @@ bindsym $mod+$modalt+c exec --no-startup-id xcqr bindsym $mod+e exec $term -e vim bindsym $mod+f fullscreen bindsym $mod+Shift+f floating toggle -#bindsym $mod+g +bindsym $mod+g exec --no-startup-id open-bookmark.sh bindsym $mod+i exec $term -e irc.sh bindsym $mod+h focus left bindsym $mod+j focus down diff --git a/links/bin/open-bookmark.sh b/links/bin/open-bookmark.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +url=$((cat ~/.w3m/bookmark.html | \ + grep href | \ + sed 's/<\/.*>//g' | \ + sed 's/.*<a href="//;s/">/ /;s/<\/a>//' ; + cat ~/doc/bookmark.txt) | \ + dmenu_themed -i -p "Go:" | awk '{ print $1 }') + +${BROWSER:-firefox} "$url"