dotfiles

Cem's Dotfiles
git clone git://git.ckyln.com/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 542c9210ffb67656041a715efa403813353e169b
parent f9a8123834fc8cf7b2df764fa05dbd6c516f4685
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}'