scripts

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

bookmarks.sh (265B)


      1 #!/bin/bash
      2 
      3 # load bookmarks using dmenu
      4 
      5 file="$HOME/bookmarks/marks.txt"
      6 
      7 selection=$(cat $file| dmenu -p "copy:" -l 15)
      8 
      9 
     10 if [ -z $selection ]; then
     11 	exit 0
     12 fi
     13 
     14 notify-send -t 3000 "$selection copied to clipboard."
     15 
     16 echo $selection | xclip -selection clipboard