From 10aef4e40d886473238e81d8f2e2866e3d99f4f4 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Wed, 3 Apr 2019 13:12:52 +0100 Subject: [PATCH] Support dmenu integration for Chrome bookmarks I'd like to regain control of my browsing bookmarks with a simpler solution using `dmenu`, `i3`, and a text file. TODO: drop support for Chrome bookmarks by porting all remaining bookmarks to bookmarks.txt NOTE: maybe change bookmarks.txt to bookmarks.json to support nesting. Could be simply with `jq`. --- bookmarks.txt | 3 +++ configs/shared/misc/.config/i3/config.shared | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 bookmarks.txt diff --git a/bookmarks.txt b/bookmarks.txt new file mode 100644 index 000000000..193e5d649 --- /dev/null +++ b/bookmarks.txt @@ -0,0 +1,3 @@ +reddit.com/r/unixporn +reddit.com/r/nixos +news.ycombinator.com diff --git a/configs/shared/misc/.config/i3/config.shared b/configs/shared/misc/.config/i3/config.shared index ddd84c041..ce75b1533 100644 --- a/configs/shared/misc/.config/i3/config.shared +++ b/configs/shared/misc/.config/i3/config.shared @@ -51,6 +51,9 @@ bindsym $mod+Ctrl+Shift+e split h; exec emacsclient --create-frame ~/progra bindsym $mod+Ctrl+Shift+c split h; exec google-chrome bindsym $mod+Ctrl+Shift+s split h; exec spotify +# support dmenu-based bookmarks +bindsym $mod+Ctrl+b exec dmenu <$DOTFILES/bookmarks.txt | xargs $BROWSER + bindsym $mod+Return exec st # pass integration