Compare commits

...

3 commits

12 changed files with 31 additions and 1 deletions

23
apsalar/vesktop Executable file
View 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

View file

@ -25,4 +25,11 @@ if [[ $DATA == *"null"* ]]; then
exit
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"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 934 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB