Update screensaver option
This commit is contained in:
parent
b7067f073d
commit
27c14a177c
4 changed files with 8 additions and 1 deletions
|
@ -9,3 +9,5 @@ win_obs_init__packages:
|
|||
- mpvio
|
||||
- vlc
|
||||
- obs-studio
|
||||
win_obs_init__powerplan_enabled: false
|
||||
win_obs_init_powerplan_mode: 'high performance'
|
||||
|
|
4
files/disable-screensaver.ps1
Normal file
4
files/disable-screensaver.ps1
Normal file
|
@ -0,0 +1,4 @@
|
|||
Write-Host "Disabling Screensaver"
|
||||
Set-ItemProperty "HKCU:\Control Panel\Desktop" -Name ScreenSaveActive -Value 0 -Type DWord
|
||||
& powercfg -x -monitor-timeout-ac 0
|
||||
& powercfg -x -monitor-timeout-dc 0
|
|
@ -11,3 +11,4 @@
|
|||
|
||||
- name: change the power plan to high performance
|
||||
ansible.builtin.include_tasks: powerplan.yml
|
||||
when: win_obs_init__powerplan_enabled | bool
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
---
|
||||
- name: change the power plan to high performance
|
||||
community.windows.win_power_plan:
|
||||
guid: 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
|
||||
name: "{{ win_obs_init_powerplan_mode }}"
|
||||
|
|
Loading…
Reference in a new issue