I’d like to modify it, so it displays a different cheat sheet according to the active window (e.g. a Firefox cheat sheet if I currently work on Firefox, a Nautilus cheat sheet if I currently use Nautilus, and so on).
It should be rather trivial to implement, but I am struggling to find the javascript method to retrieve the active window name. Does anybody know how to do that ?
It’s better to use the window tracker to identify applications than to try window matching yourself based on the window name. Something like this should work: