vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 89a2d9d81e176fbe63b49de5024209f91e9982cd
parent 75a3fcad07c3114e577266d0f445f92b69c928f4
Author: Cem Keylan <cem@ckyln.com>
Date:   Sun, 24 Nov 2019 10:37:36 +0300

bookmark scripts for surf bookmark patch

Diffstat:
A.local/bin/bookmarkurl | 5+++++
A.local/bin/loadbookmark | 2++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/.local/bin/bookmarkurl b/.local/bin/bookmarkurl @@ -0,0 +1,5 @@ +#!/usr/bin/env sh +file=~/.surf/bookmarks +url=$(xprop -id "$1" | grep URI | awk '{print $3}' | sed 's/\"//g') +title=$(xprop -id "$1" | grep WM_ICON_NAME\(STRING\) | cut -c 40- | sed 's/.$//g') +echo "$url" "$title" | dmenu -p 'Add Bookmark' -b -w "$1" >> "$file" diff --git a/.local/bin/loadbookmark b/.local/bin/loadbookmark @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +dmenu -p 'Load Bookmark' -i -b -l 10 -w "$1" < ~/.surf/bookmarks | awk '{print $1}'