remwharead/scripts/remwharead-rofi

16 lines
395 B
Plaintext
Raw Normal View History

2019-11-28 09:04:07 +01:00
#!/bin/sh
# Open the whole database in rofi. Searches in title, tags and URI.
# The selected entry will be opened with the default browser.
if [ -n "${2}" ]; then
uri=$(echo "${*}" | sed -E 's|^.+>([^><]+)</span>$|\1|')
xdg-open "${uri}"
exit 0
fi
if [ "${1}" = "runremwharead" ]; then
2019-11-28 09:33:27 +01:00
remwharead -e rofi
2019-11-28 09:04:07 +01:00
else
rofi -show remwharead -modi remwharead:"${0} runremwharead"
fi