mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized persona gamer, gnome, and refactored others
This commit is contained in:
3
roles/driver-lid-switch/README.md
Normal file
3
roles/driver-lid-switch/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
https://chatgpt.com/share/67ed14d0-4220-800f-a592-82513553fb97
|
||||
https://chatgpt.com/share/67ed1520-8a54-800f-98a5-12372413994a
|
||||
https://chatgpt.com/share/67ed158b-66d4-800f-b418-e52460c225ce
|
6
roles/driver-lid-switch/handlers/main.yml
Normal file
6
roles/driver-lid-switch/handlers/main.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- name: Restart systemd-logind
|
||||
become: yes
|
||||
systemd:
|
||||
name: systemd-logind
|
||||
state: restarted
|
9
roles/driver-lid-switch/tasks/main.yml
Normal file
9
roles/driver-lid-switch/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Set HandleLidSwitch to hibernate in /etc/systemd/logind.conf
|
||||
become: yes
|
||||
lineinfile:
|
||||
path: /etc/systemd/logind.conf
|
||||
regexp: '^#?HandleLidSwitch='
|
||||
line: 'HandleLidSwitch=hibernate'
|
||||
backup: yes
|
||||
notify: Restart systemd-logind
|
Reference in New Issue
Block a user