9 lines
378 B
Bash
Executable file
9 lines
378 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- | tr -d '\n' |
|
|
xsel -ib && notify-send " Bookmarks" "'$name' copied to clipboard"
|