2024-01-30 07:42:22 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-02-13 10:23:29 +00:00
|
|
|
set -eux -o pipefail
|
|
|
|
|
2024-01-30 07:42:22 +00:00
|
|
|
rm -r ~/.config/clan
|
|
|
|
|
2024-02-13 10:23:29 +00:00
|
|
|
if [ -z "$1" ]; then
|
|
|
|
echo "Usage: $0 <democlan>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
democlan="$1"
|
2024-01-30 07:42:22 +00:00
|
|
|
|
2024-02-13 10:23:29 +00:00
|
|
|
clan history add "clan://$democlan#syncthing-peer1"
|
|
|
|
clan history add "clan://$democlan#syncthing-peer2"
|
|
|
|
|
|
|
|
clan history add "clan://$democlan#moonlight-peer1"
|
|
|
|
clan history add "clan://$democlan#moonlight-peer2"
|
2024-01-30 07:42:22 +00:00
|
|
|
|
|
|
|
clear
|
|
|
|
cat << EOF
|
|
|
|
Open up this link in a browser:
|
2024-02-13 10:23:29 +00:00
|
|
|
"clan://$democlan#syncthing-introducer"
|
2024-01-30 07:42:22 +00:00
|
|
|
EOF
|
|
|
|
|
|
|
|
cat << EOF
|
|
|
|
Execute this command to show waypipe windows:
|
2024-02-13 15:15:36 +00:00
|
|
|
$ clan --flake $democlan vms run wayland
|
2024-01-30 07:42:22 +00:00
|
|
|
EOF
|