2020-03-22 14:43:49 +01:00

23 lines
666 B
Bash
Executable File

#!/usr/bin/env sh
bookmarks="redd.it\narch wiki\ninvidio.us\ngithub\ngitlab\ndotfiles\npython doc\nvulcan"
PHRASE="$(printf "${bookmarks}" | dmenu -h 24 -p "Web search:")"
case "$PHRASE" in
"redd.it") PG="https://reddit.com" ;;
"arch wiki") PG="https://wiki.archlinux.org" ;;
"invidio.us") PG="https://invidio.us" ;;
"github") PG="https://github.com" ;;
"gitlab") PG="https://gitlab.com" ;;
"dotfiles") PG="https:github.com/samedamci/biual-dot-conf" ;;
"python doc") PG="https://docs.python.org/3/" ;;
"vulcan") PG="https://uonetplus.vulcan.net.pl/powiatrycki" ;;
*) PG="$PHRASE"
esac
if [ -n "$PG" ]; then
qutebrowser "$PG" &
bspc desktop -f '^3'
fi