My Scripts.
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.
bin/run

57 lines
1.1 KiB

#!/bin/bash
# @Auther skiqqy
4 years ago
# 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)
4 years ago
. "$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"
4 years ago
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/" &
;;
4 years ago
f)
surf "https://files.skiqqy.xyz/" &
;;
4 years ago
s)
surf "https://fosstodon.org/" &
;;
4 years ago
m)
surf "https://music.skiqqy.xyz/" &
;;
G)
surf "https://github.com/skiqqy/" &
;;
H)
surf "https://skiqqy.xyz/" &
;;
*)
error "Invalid arg" 1
;;
esac
done