Compare commits

...

5 commits

5 changed files with 36 additions and 15 deletions

View file

@ -1,11 +1,11 @@
#!/bin/sh #!/bin/sh
# Wrapper for Jellyfin Media Player to auto start/stop jellyfin-rpc # Wrapper for Feishin to auto start/stop jellyfin-rpc
if [ ! -f "$HOME/.local/bin/jellyfin-rpc" ]; then if [ ! -f "$HOME/.local/bin/jellyfin-rpc" ]; then
echo "Please ensure jellyfin-rpc is installed to ~/.local/bin/ and executable" echo "Please ensure jellyfin-rpc is installed to ~/.local/bin/ and executable"
fi fi
$HOME/.local/bin/jellyfin-rpc & $HOME/.local/bin/jellyfin-rpc &
/usr/bin/jellyfinmediaplayer /opt/feishin/feishin
kill -9 $(pgrep -f jellyfin-rpc) kill -9 $(pgrep -f jellyfin-rpc)
exit exit

View file

@ -1,4 +1,23 @@
#!/bin/sh #!/bin/sh
arRPCdir="$HOME/.local/share/vesktop/arrpc"
# check if arRPC is installed and autoinstall if necessary
install_arRPC () {
git clone https://github.com/OpenAsar/arRPC "$arRPCdir"
cd "$arRPCdir" && npm install
}
if [ ! -d "$arRPCdir" ]; then
install_arRPC
fi
# start arRPC
cd "$arRPCdir" && node src &
arRPCPID=$(pgrep -f 'node src')
# start Vesktop
$HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto $HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
# exit arRPC when Vesktop closes
pkill -9 $arRPCPID

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
cd /games/vintagestory cd ~/Games/vintagestory
mono Vintagestory.exe ./Vintagestory

View file

@ -15,6 +15,6 @@ if [ -z "$1" ]; then
elif [[ "$1" -eq "publish" ]]; then elif [[ "$1" -eq "publish" ]]; then
publish publish
else else
echo -e "<p><b>$(echo $timestamp)</b>: ${1}</p>\n" >> $current_note echo -e "<p><b>$(echo $timestamp)</b>: ${@}</p>\n" >> $current_note
fi fi

View file

@ -1,12 +1,14 @@
#!/bin/sh #!/bin/sh
if [ "$1" == "on" ]; then if [ ! -n "$VPN_NODE" ]; then
cmd="c P2P" echo "Please set VPN_NODE"
elif [ "$1" == "off" ]; then exit 2
cmd="d"
elif [ "$1" == "status" ]; then
cmd="status"
else
echo "Please pass an argument: on, off, status"
exit
fi fi
nordvpn $cmd if [ "$1" == "up" ]; then
cmd="up $VPN_NODE"
elif [ "$1" == "down" ]; then
cmd="down $VPN_NODE"
else
echo "Please pass an argument: up, down"
exit 1
fi
doas wg-quick $cmd