I keep repeating same actions every day, sometimes more than once, when I want to watch a movie from laptop to TV:
Later on, when I want to unplug TV and restore screensaver I need to:
While for now I know I can't automate inserting and removal of HDMI cable, I think it is possible to automate the software part (autosetting extended desktop and disabling screensaver on HDMI insert, reverting to single screen and enabling screensaver on HDMI removal).
Anyone willing to point me in the right direction, or - even better - paste the script?
- Insert HDMI cable
- start
nvidia-settings
by clicking launcher icon - click a few times inside x11/nvidia-settings in order to get extended desktop on my TV
- type
xset s off
in console (as multimedia/vlc does not prevent screen from blanking)
Later on, when I want to unplug TV and restore screensaver I need to:
- start
nvidia-settings
by clicking launcher icon - click a few times inside x11/nvidia-settings in order to set single screen
- type
xset s on
in console - Remove HDMI cable
While for now I know I can't automate inserting and removal of HDMI cable, I think it is possible to automate the software part (autosetting extended desktop and disabling screensaver on HDMI insert, reverting to single screen and enabling screensaver on HDMI removal).
Anyone willing to point me in the right direction, or - even better - paste the script?