Compare commits
No commits in common. "6444dc65c15841784b9cce737ed39726832c2a4f" and "077da0dad0ffc8c81fa79fc9c21b326f1724cc6c" have entirely different histories.
6444dc65c1
...
077da0dad0
4 changed files with 16 additions and 42 deletions
|
@ -3,4 +3,4 @@
|
||||||
NC_DIR="$HOME/Nextcloud"
|
NC_DIR="$HOME/Nextcloud"
|
||||||
NC_URL="https://cloud.criminallycute.fi"
|
NC_URL="https://cloud.criminallycute.fi"
|
||||||
|
|
||||||
nextcloudcmd -s -u $NC_USER -p $NC_PASS $NC_DIR $NC_URL
|
nextcloudcmd -u $NC_USER -p $NC_PASS $NC_DIR $NC_URL
|
||||||
|
|
|
@ -1,55 +1,23 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
arRPCdir="$HOME/src/arRPC"
|
arRPCdir="$HOME/.local/share/vesktop/arrpc"
|
||||||
Vesktopdir="$HOME/src/Vesktop"
|
# check if arRPC is installed and autoinstall if necessary
|
||||||
|
|
||||||
install_arRPC () {
|
install_arRPC () {
|
||||||
echo "Installing arRPC"
|
|
||||||
git clone https://github.com/OpenAsar/arRPC "$arRPCdir"
|
git clone https://github.com/OpenAsar/arRPC "$arRPCdir"
|
||||||
cd "$arRPCdir" && npm install
|
cd "$arRPCdir" && npm install
|
||||||
echo "arRPC installed"
|
|
||||||
}
|
|
||||||
|
|
||||||
install_vesktop () {
|
|
||||||
echo "Installing Vesktop"
|
|
||||||
export COREPACK_ENABLE_STRICT=0
|
|
||||||
git clone https://github.com/Vencord/Vesktop $Vesktopdir
|
|
||||||
cd $Vesktopdir
|
|
||||||
pnpm i
|
|
||||||
echo "Vesktop installed"
|
|
||||||
}
|
|
||||||
|
|
||||||
run_arRPC () {
|
|
||||||
# skip if already running
|
|
||||||
if [ $(pgrep -f 'node src') ]; then return; fi
|
|
||||||
echo "Starting arRPC"
|
|
||||||
cd "$arRPCdir"
|
|
||||||
node src &
|
|
||||||
}
|
|
||||||
|
|
||||||
run_vesktop () {
|
|
||||||
echo "Starting Vesktop"
|
|
||||||
if [ ! -d $HOME/src/Vesktop ]; then install_vesktop; fi
|
|
||||||
cd $HOME/src/Vesktop/dist/linux-unpacked
|
|
||||||
./vesktop \
|
|
||||||
--enable-features=UseOzonePlatform,WaylandWindowDecorations \
|
|
||||||
--ozone-platform-hint=auto
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -d "$arRPCdir" ]; then
|
if [ ! -d "$arRPCdir" ]; then
|
||||||
install_arRPC
|
install_arRPC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
run_arRPC
|
# start arRPC
|
||||||
|
cd "$arRPCdir" && node src &
|
||||||
arRPCPID=$(pgrep -f 'node src')
|
arRPCPID=$(pgrep -f 'node src')
|
||||||
|
|
||||||
run_vesktop
|
# start Vesktop
|
||||||
|
$HOME/.local/share/vesktop/vesktop --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto
|
||||||
|
|
||||||
echo "Killing arRPC"
|
|
||||||
# exit arRPC when Vesktop closes
|
# exit arRPC when Vesktop closes
|
||||||
echo "Trying to kill $arRPCPID"
|
pkill -9 $arRPCPID
|
||||||
killall node -n $arRPCPID
|
|
||||||
if [ ! $(pgrep -f 'node src' ) ]; then
|
|
||||||
echo "arRPC killed"
|
|
||||||
else
|
|
||||||
echo "arRPC could not be killed"
|
|
||||||
fi
|
|
||||||
|
|
6
apsalar/wtfis
Executable file
6
apsalar/wtfis
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
emerge --search "$1" --fuzzy-search n \
|
||||||
|
| grep "Description" \
|
||||||
|
| head -1 \
|
||||||
|
| cut -d":" -f2 \
|
||||||
|
| awk '{$1=$1;print}'
|
|
@ -12,7 +12,7 @@ artist=$(echo "$data" | jq '.artist_name' | tr -d '"')
|
||||||
track=$(echo "$data" | jq '.track_name' | tr -d '"')
|
track=$(echo "$data" | jq '.track_name' | tr -d '"')
|
||||||
|
|
||||||
if [[ "$artist" != "null" ]]; then
|
if [[ "$artist" != "null" ]]; then
|
||||||
echo "Currently playing: $artist" - "$track"
|
echo "$artist" - "$track"
|
||||||
else
|
else
|
||||||
echo "Not listening to anything right now."
|
echo "Not listening to anything right now."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue