dotfiles/scripts/dmenu-bookmarks
tavo-wasd fd69ecbbe6 init
2023-05-08 20:39:39 -06:00

8 lines
320 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=$(awk -F '-' '{print $1}' ~/.config/bookmarks | dmenu -i -p "Site:")
[ -z "$name" ] && exit
grep "$name" ~/.config/bookmarks | cut -d '-' -f 2- | xsel -ib && notify-send "󰖟 $name" "Copied to clipboard"