power menu, redshift, polybar

This commit is contained in:
azpsen
2024-01-28 16:37:10 -06:00
parent 89516a6ce1
commit 319b44ecbd
307 changed files with 7642 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
# Script: notification-chess
A small script that indicates whether you need to move.
![notification-chess](screenshots/1.png)
## Dependencies
* `curl`
* `jq`
* obviously a chess.com account
## Module
```ini
[module/notification-chess]
type = custom/script
exec = ~/polybar-scripts/notification-chess.sh
interval = 10
click-left = xdg-open https://www.chess.com/goto_ready_game & disown
```

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B