How to change icon

I get some progress with this:

but still can’t get how to create snippet that should change default behavior