solorice/.config/eww/scripts/github

5 lines
140 B
Bash
Executable File

#!/bin/sh
notifications="$(gh api notifications 2> /dev/null | jq '. | length')"
[ -z notifications ] && echo "" || echo "$notifications"