Assorted shell and Python scripts
1#!/usr/bin/env nu
2
3let mf_auth_token = (kwallet-query -r miniflux-auth-token kdewallet)
4let mf_password = (kwallet-query -r miniflux-password kdewallet)
5
6(
7 curl \
8 -s \
9 -X GET \
10 -H "Content-Type: application/json" \
11 -H $"X-Auth-Token: ($mf_auth_token)" \
12 -u $"hyperreal:($mf_password)" \
13 "https://mf.vern.cc/v1/feeds/counters"
14)
15| from json
16| get unreads
17| values
18| math sum
19
20# vim: sw=4 sts=4 ts=4 ai et ft=nu