about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-04-03T12·12+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-04-03T12·12+0100
commit10aef4e40d886473238e81d8f2e2866e3d99f4f4 (patch)
treed282bf9bcd74d7f50db80b1da9b86b066228d138
parent8220336205226432c9fc3ca77f8f21c7af32f908 (diff)
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`.
-rw-r--r--bookmarks.txt3
-rw-r--r--configs/shared/misc/.config/i3/config.shared3
2 files changed, 6 insertions, 0 deletions
diff --git a/bookmarks.txt b/bookmarks.txt
new file mode 100644
index 000000000000..193e5d649cda
--- /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 ddd84c0410a8..ce75b153366c 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