mirror of https://git.sr.ht/~skiqqy/bin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
56 lines
1.1 KiB
#!/bin/bash
|
|
# @Auther skiqqy
|
|
# Launches my web-applications in surf
|
|
|
|
PI="192.168.68.106" # Change ip to machine you wish to connect to.
|
|
SURF="https://surf.suckless.org/"
|
|
|
|
# Import stuff
|
|
SCRIPT_PATH=$(dirname $0)
|
|
. "$SCRIPT_PATH/import/alert.sh" > /dev/null 2>&1
|
|
[ ! $(command -v error) ] && echo "[WARNING] Missing 'alert.sh' import"
|
|
|
|
usage () {
|
|
echo -e "Usage: launch [options]\n"
|
|
echo -e "h:\tShows this message."
|
|
echo -e "d:\tLaunches cockpit-docker."
|
|
}
|
|
|
|
[ ! $(command -v surf) ] && error "Missing 'surf' dependecy. Download it here: $SURF" 1 || echo "Found 'surf'"
|
|
[[ $# -eq 0 ]] && error "Must have arguments, for help use \'-h\'" 1 || echo "Starting launcher"
|
|
|
|
while getopts "hdbgfsmGH" opt
|
|
do
|
|
case $opt in
|
|
h)
|
|
usage
|
|
;;
|
|
d)
|
|
surf "$PI:9090/docker" &
|
|
;;
|
|
b)
|
|
surf "https://blog.skiqqy.xyz/ghost/" &
|
|
;;
|
|
g)
|
|
surf "https://git.skiqqy.xyz/" &
|
|
;;
|
|
f)
|
|
surf "https://files.skiqqy.xyz/" &
|
|
;;
|
|
s)
|
|
surf "https://social.skiqqy.xyz/" &
|
|
;;
|
|
m)
|
|
surf "https://music.skiqqy.xyz/" &
|
|
;;
|
|
G)
|
|
surf "https://github.com/skiqqy/" &
|
|
;;
|
|
H)
|
|
surf "https://skiqqy.xyz/" &
|
|
;;
|
|
*)
|
|
error "Invalid arg" 1
|
|
;;
|
|
esac
|
|
done
|
|
|