dots-of-war/files/scripts/rofi-open.sh
2020-03-29 11:36:09 +02:00

6 lines
274 B
Bash
Executable file

#!/bin/bash
selection=$( cat ~/scripts/bookmarks | sed -r 's/^([^ ]*) .*$/\1/' | rofi -p open -theme /home/leon/scripts/rofi-scripts/default_theme.rasi -dmenu -no-custom )
[ -z "$selection" ] && exit 1
cat ~/scripts/bookmarks | sed -n -r "s/^$selection (.*)$/\1/p" | bash