Some time ago, I was looking for an easy way to turn on and off my VPN from a context menu triggered by a click on an icon in the system tray. I thought there was surely an existing tool I could use in which I would only have to plug a few shell scripts to do what I wanted.
I couldn’t find such a tool. So I thought it’d be cool to write it myself.
So here it is. Maybe it can be useful for other people too:
I had to create haskell-gi bindings for the library libayatana-appindicator. That’s the library I use to add the icon in the systray and create the context menu. Creating those bindings was amazingly easy. I want to take advantage of this post to thank the authors of haskell-gi for such an amazing tool and for making it so easy to write GUI apps in Haskell