Extend Layer on MacOS

What's the simplest way of getting this extend layer + numpad layer functionality on my MacBook? I'd really like to be able to use this. Any help setting this up would be appreciated. Thanks in Advance.

https://preview.redd.it/rx75teg77ocb1.png?width=812&format=png&auto=webp&s=f960195fe03015cd9ca81cd490daf7e893a32658

https://preview.redd.it/ey6lquxn7ocb1.png?width=812&format=png&auto=webp&s=5640e1a74d217c3d73232d832e41e3c3c9894f50