differentiented power button behavior

This commit is contained in:
2024-11-10 14:30:21 +01:00
parent 6df29c1713
commit 3b19900147
3 changed files with 20 additions and 15 deletions

View File

@@ -77,21 +77,6 @@
user:
name: vi
shell: /usr/bin/fish
- name: Set power button behavior
lineinfile:
line: "HandlePowerKey=hibernate"
path: "/etc/systemd/logind.conf"
regexp: '.*HandlePowerKey.*'
- name: set lidswitch behavior
lineinfile:
line: "HandleLidSwitch=suspend-then-hibernate"
path: "/etc/systemd/logind.conf"
regexp: '.*HandleLidSwitch.*'
- name: set hibernation delay
lineinfile:
line: "HibernateDelaySec=2h"
path: "/etc/systemd/sleep.conf"
regexp: '.*HibernateDelaySec.*'
- name: enable wireplumber
systemd_service:
name: wireplumber.service