2020-03-17 20:06:32 +01:00
|
|
|
#!/usr/bin/env sh
|
2020-03-13 12:03:40 +01:00
|
|
|
|
2020-03-17 20:06:32 +01:00
|
|
|
bookmarks="redd.it\narch wiki\ninvidio.us\ngithub\ngitlab\ndotfiles\npython doc\nvulcan"
|
2020-03-22 14:43:49 +01:00
|
|
|
PHRASE="$(printf "${bookmarks}" | dmenu -h 24 -p "Web search:")"
|
2020-03-13 12:03:40 +01:00
|
|
|
|
2020-03-17 20:06:32 +01:00
|
|
|
case "$PHRASE" in
|
2020-03-22 14:43:49 +01:00
|
|
|
"redd.it") PG="https://reddit.com" ;;
|
2020-03-17 20:06:32 +01:00
|
|
|
"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" &
|
2020-03-13 12:03:40 +01:00
|
|
|
bspc desktop -f '^3'
|
|
|
|
fi
|
2020-03-17 20:06:32 +01:00
|
|
|
|