Compare commits
3 commits
433dee312d
...
b96369be23
Author | SHA1 | Date | |
---|---|---|---|
b96369be23 | |||
9180a03af9 | |||
b30fa258d0 |
23
apsalar/vesktop
Executable file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/sh
|
||||||
|
arRPCdir="$HOME/.local/lib/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
|
||||||
|
/usr/local/bin/vesktop
|
||||||
|
|
||||||
|
# exit arRPC when Vesktop closes
|
||||||
|
pkill -9 $arRPCPID
|
||||||
|
|
|
@ -25,4 +25,11 @@ if [[ $DATA == *"null"* ]]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "${DESC:1:-1}, ${DATA[0]}°C (fl ${DATA[1]}°C)\n"
|
r () {
|
||||||
|
echo $1 | sed 's/\./\,/'
|
||||||
|
}
|
||||||
|
|
||||||
|
w="$(r ${DATA[0]})"
|
||||||
|
fl="$(r ${DATA[1]})"
|
||||||
|
|
||||||
|
printf "${DESC:1:-1}, $w°C (fl $fl°C)\n"
|
||||||
|
|
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 14 KiB |
BIN
icons/publii.png
Before Width: | Height: | Size: 934 B |
Before Width: | Height: | Size: 4 KiB |
Before Width: | Height: | Size: 3.9 KiB |
BIN
icons/tidal.png
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 24 KiB |