Compare commits
5 commits
9388a66727
...
077da0dad0
Author | SHA1 | Date | |
---|---|---|---|
077da0dad0 | |||
126d737d9d | |||
ae990d46ff | |||
cc8835df90 | |||
dd25a91ce8 |
5 changed files with 36 additions and 15 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/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
|
||||
echo "Please ensure jellyfin-rpc is installed to ~/.local/bin/ and executable"
|
||||
fi
|
||||
|
||||
$HOME/.local/bin/jellyfin-rpc &
|
||||
/usr/bin/jellyfinmediaplayer
|
||||
/opt/feishin/feishin
|
||||
kill -9 $(pgrep -f jellyfin-rpc)
|
||||
exit
|
|
@ -1,4 +1,23 @@
|
|||
#!/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
|
||||
mono Vintagestory.exe
|
||||
cd ~/Games/vintagestory
|
||||
./Vintagestory
|
||||
|
|
|
@ -15,6 +15,6 @@ if [ -z "$1" ]; then
|
|||
elif [[ "$1" -eq "publish" ]]; then
|
||||
publish
|
||||
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
|
||||
|
||||
|
|
22
common/vpn
22
common/vpn
|
@ -1,12 +1,14 @@
|
|||
#!/bin/sh
|
||||
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: on, off, status"
|
||||
exit
|
||||
if [ ! -n "$VPN_NODE" ]; then
|
||||
echo "Please set VPN_NODE"
|
||||
exit 2
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue