I wanted to run some scripts based on the notifications I received
I track my spendings using hledger on my laptop. To automate it I decided to use Termux and get access to notifications I get from my bank application.
I then wanted to write a script to parse those notifications and add relevant ones to my hledger journal.
Termux has awesome package for this called `termux-api`. To get list of notifications one can use `termux-notifications-list`.
This command just hangs. To make it run properly you need to start the api service with `termux-api-start`.
In my case this command didn't work.