Also not much of a script but in XMouse I've mapped my two side buttons on my Logitech M510 to: - close and reopen tabs (Firefox/Chrome/Edge) - undo/redo (image and video editing) - the grenade and knife button (any FPS) - back and next (file explorers) and a lot more.
So if I am using the terminal and I want to give the full path to a file or folder I use this and then paste it into the finder.
It turns on at 7 am and turns off at 4:30.
All my applications launch and fill up the screens automatically using AHK.