Commands to run when Connecting HDMI
- by yurividal
Everytime I connect my pc to my tv using my HDMI cable (to watch my movies), I have to manually go to:
1- Monitors, to select "mirror" screen to HDMI
2- Sound, to select the HDMI as default sound output
3- Screen Off an Lock, to avoid screen locking while watching a video.
Is there a way I can automate this?
Or at least write a script with commands that will do this. (I could manually run a script every time I connect my HDMI, and then run annother one to undo the changes later)
How can I do these actions from a Command Line?