Compare commits
No commits in common. "077da0dad0ffc8c81fa79fc9c21b326f1724cc6c" and "9388a6672790be9d6bc99525db22ae454f925fa7" have entirely different histories.
077da0dad0
...
9388a66727
5 changed files with 14 additions and 35 deletions
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Wrapper for Feishin to auto start/stop jellyfin-rpc
|
# Wrapper for Jellyfin Media Player 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 &
|
||||||
/opt/feishin/feishin
|
/usr/bin/jellyfinmediaplayer
|
||||||
kill -9 $(pgrep -f jellyfin-rpc)
|
kill -9 $(pgrep -f jellyfin-rpc)
|
||||||
exit
|
exit
|
|
@ -1,23 +1,4 @@
|
||||||
#!/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
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd ~/Games/vintagestory
|
cd /games/vintagestory
|
||||||
./Vintagestory
|
mono Vintagestory.exe
|
||||||
|
|
|
@ -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>: ${@}</p>\n" >> $current_note
|
echo -e "<p><b>$(echo $timestamp)</b>: ${1}</p>\n" >> $current_note
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
20
common/vpn
20
common/vpn
|
@ -1,14 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ ! -n "$VPN_NODE" ]; then
|
if [ "$1" == "on" ]; then
|
||||||
echo "Please set VPN_NODE"
|
cmd="c P2P"
|
||||||
exit 2
|
elif [ "$1" == "off" ]; then
|
||||||
fi
|
cmd="d"
|
||||||
if [ "$1" == "up" ]; then
|
elif [ "$1" == "status" ]; then
|
||||||
cmd="up $VPN_NODE"
|
cmd="status"
|
||||||
elif [ "$1" == "down" ]; then
|
|
||||||
cmd="down $VPN_NODE"
|
|
||||||
else
|
else
|
||||||
echo "Please pass an argument: up, down"
|
echo "Please pass an argument: on, off, status"
|
||||||
exit 1
|
exit
|
||||||
fi
|
fi
|
||||||
doas wg-quick $cmd
|
nordvpn $cmd
|
||||||
|
|
Loading…
Reference in a new issue