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,24 @@
# Script: notification-github
A small script that shows your GitHub notifications.
## Dependencies
* `curl`
* `jq`
## Configuration
Generate a token at `GitHub Settings` > `Developer settings` > `Personal access tokens`.
## Module
```ini
[module/notification-github]
type = custom/script
exec = ~/polybar-scripts/notification-github.sh
interval = 60
```

View File

@@ -0,0 +1,12 @@
#!/bin/sh
USER=""
TOKEN="1234567890"
notifications=$(echo "user = \"$USER:$TOKEN\"" | curl -sf -K- https://api.github.com/notifications | jq ".[].unread" | grep -c true)
if [ "$notifications" -gt 0 ]; then
echo "# $notifications"
else
echo ""
fi