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
|
||||
# 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
|
||||
echo "Please ensure jellyfin-rpc is installed to ~/.local/bin/ and executable"
|
||||
fi
|
||||
|
||||
$HOME/.local/bin/jellyfin-rpc &
|
||||
/opt/feishin/feishin
|
||||
/usr/bin/jellyfinmediaplayer
|
||||
kill -9 $(pgrep -f jellyfin-rpc)
|
||||
exit
|
|
@ -1,23 +1,4 @@
|
|||
#!/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
|
||||
|
||||
# exit arRPC when Vesktop closes
|
||||
pkill -9 $arRPCPID
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd ~/Games/vintagestory
|
||||
./Vintagestory
|
||||
cd /games/vintagestory
|
||||
mono Vintagestory.exe
|
||||
|
|
|
@ -15,6 +15,6 @@ if [ -z "$1" ]; then
|
|||
elif [[ "$1" -eq "publish" ]]; then
|
||||
publish
|
||||
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
|
||||
|
||||
|
|
20
common/vpn
20
common/vpn
|
@ -1,14 +1,12 @@
|
|||
#!/bin/sh
|
||||
if [ ! -n "$VPN_NODE" ]; then
|
||||
echo "Please set VPN_NODE"
|
||||
exit 2
|
||||
fi
|
||||
if [ "$1" == "up" ]; then
|
||||
cmd="up $VPN_NODE"
|
||||
elif [ "$1" == "down" ]; then
|
||||
cmd="down $VPN_NODE"
|
||||
if [ "$1" == "on" ]; then
|
||||
cmd="c P2P"
|
||||
elif [ "$1" == "off" ]; then
|
||||
cmd="d"
|
||||
elif [ "$1" == "status" ]; then
|
||||
cmd="status"
|
||||
else
|
||||
echo "Please pass an argument: up, down"
|
||||
exit 1
|
||||
echo "Please pass an argument: on, off, status"
|
||||
exit
|
||||
fi
|
||||
doas wg-quick $cmd
|
||||
nordvpn $cmd
|
||||
|
|
Loading…
Reference in a new issue