8 lines
361 B
Bash
Executable file
8 lines
361 B
Bash
Executable file
#!/bin/sh
|
|
# Open URLs from bookmarks file
|
|
|
|
# Print site names, then get URL based on the name. Exit if empty
|
|
name=$(cut -d '-' -f 1 $HOME/Documents/bookmarks | grep -v '^#' | sed '/^\s*$/d' | menu "Site:")
|
|
[ -z "$name" ] && exit
|
|
|
|
grep "$name" $HOME/Documents/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send " Bookmarks" "'$name' copied to clipboard"
|