There’s a Mac app called Lunar that uses DDC (a protocol for sending commands to a screen) to allow you to adjust the brightness and volume of an external monitor with the usual keys on your MacBook keyboard (in clamshell mode at least) or with a slider. Very convenient, can’t recommend enough.