Update screensaver option

This commit is contained in:
L3D 2022-02-13 04:43:09 +01:00
parent b7067f073d
commit 27c14a177c
Signed by: l3d
GPG key ID: CD08445BFF4313D1
4 changed files with 8 additions and 1 deletions

View file

@ -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'

View 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

View file

@ -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

View file

@ -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 }}"