scripts

Scripts for general automations
git clone git://git.laack.co/scripts.git
Log | Files | Refs

open-bookmark.sh (245B)


      1 #!/bin/bash
      2 
      3 # load bookmarks using dmenu
      4 
      5 file="$HOME/bookmarks/marks.txt"
      6 
      7 selection=$(cat $file| dmenu -p "open:" -l 15)
      8 
      9 
     10 if [ -z $selection ]; then
     11 	exit 0
     12 fi
     13 
     14 
     15 url=$selection
     16 
     17 if [ -n "$url" ]; then
     18 	qutebrowser --target window "$url"
     19 fi
     20