2020-10-30 22:02:38 +02:00
|
|
|
#! /bin/sh
|
2020-06-21 12:41:26 +02:00
|
|
|
|
|
|
|
groups="$(ls "$HOME/scripts/bookmarks")\nauswahl"
|
2020-10-30 22:02:38 +02:00
|
|
|
group_selection="$(echo "$groups" | rofi -i -matching fuzzy -p open -dmenu -no-custom)"
|
|
|
|
[ "$group_selection" = "auswahl" ] && \
|
|
|
|
auswahl "$(auswahl --list | rofi -dmenu -i -no-custom)" || \
|
|
|
|
selection=$( cat "$HOME/scripts/bookmarks/$group_selection" | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -matching fuzzy -dmenu -i -no-custom) && \
|
2020-06-21 12:41:26 +02:00
|
|
|
[ -z "$selection" ] && exit 1
|
|
|
|
|
|
|
|
cat "$HOME/scripts/bookmarks/$group_selection" | sed -n -r "s/^$selection (.*)$/\1/p" | bash
|