Add remwharead-rofi.

This commit is contained in:
tastytea 2019-11-28 09:04:07 +01:00
parent ad676bbc13
commit bce12ae53b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 15 additions and 0 deletions

15
scripts/remwharead-rofi Executable file
View File

@ -0,0 +1,15 @@
#!/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
/home/tastytea/Projekte/remwharead/build/src/cli/remwharead -e rofi
else
rofi -show remwharead -modi remwharead:"${0} runremwharead"
fi