clean up scripts
This commit is contained in:
10
.config/polybar/scripts/notification-chess.sh
Normal file
10
.config/polybar/scripts/notification-chess.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
USERNAME=""
|
||||
games=$(curl -sf "https://api.chess.com/pub/player/$USERNAME/games/to-move" | jq ".[] | length")
|
||||
|
||||
if [ "$games" -gt 0 ]; then
|
||||
echo "#1 $games"
|
||||
else
|
||||
echo "#2"
|
||||
fi
|
||||
Reference in New Issue
Block a user