Bookmarks menu - bakkeby/dusk GitHub Wiki

OK, so this is about a dmenu script to store URLs and to open them in a browser. The idea is pretty silly and nobody would blame you for saying "not for me" and keep on living your life.

But, this has one specific advantage that could make you reconsider it. That advantage is that you can open the same URLs in the browser's app or kiosk mode.

Opening a URL in the browser's app / kiosk mode means that it will open in a new window that has no tabs, no address bar, no buttons, just content. This is more or less identical to how it looks when opening a page in surf or when using fake fullscreen.

Another benefit is that opening another URL will do so in the main browser window as opposed to the app / kiosk window. This is not the case when tearing off a tab and making that fake fullscreen.

Setup

Dependencies:

  • dmenu
  • sed
  • notify-send
  • xclip

To set this up you will need:

Example sxhkd keybindings:

super + ctrl + p
   ~/bin/bookmarks_menu.sh

super + ctrl + semicolon
   ~/bin/webapps_menu.sh

If you have set up a BROWSER environment variable then the URL will open using that browser. If no such environment variable has been set up then the script will fall back to copying the URL(s) to the clipboard.

If you do not want to set up BROWSER environment variable then you can also just add a local variable in the script itself.

It is possible to export existing bookmarks and transform these into key - value pairs to store in the bookmarks.dat file, just note that the delimiter used by the script is a broken vertical bar (¦) because bookmark names can be just about anything.


Back to Other scripts and life hacks.

⚠️ **GitHub.com Fallback** ⚠️