Brightness and headset scripts