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`.
This commit is contained in:
William Carroll 2019-04-03 13:12:52 +01:00
parent 8220336205
commit 10aef4e40d
2 changed files with 6 additions and 0 deletions

3
bookmarks.txt Normal file
View file

@ -0,0 +1,3 @@
reddit.com/r/unixporn
reddit.com/r/nixos
news.ycombinator.com

View file

@ -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+c split h; exec google-chrome
bindsym $mod+Ctrl+Shift+s split h; exec spotify 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 bindsym $mod+Return exec st
# pass integration # pass integration