Safety is always a very major factor when home building a project like this. Nether the less is a excellent idea. I purchased a really nice dimable led desk light from Costco three or four years ago. It also has Bluetooth speakers in it I also have a dimmable Ottlite which is not led
I notice in the replies some where from the UK and some from the USA. The outlet voltage in the UK can be as high as 240 volts, that can definitely kill, whereas the outlet voltage in the USA is 115 volts, that can give you a good shock, but far less likely to be fatal. But even so be very careful particularly when messing with two outlets as depicted in the OP as you can easily end up with two feeds that can be 220+ volts. It is also a very good idea to make sure that a GFI outlet is used, not only might that stop you from being put in a pine box but from burning the house down and incurring the wife’s wroth, far worst than death!