differentiented power button behavior
This commit is contained in:
@@ -47,6 +47,21 @@
|
||||
with_items:
|
||||
- { name: sway-cyberboobs, path: ~/.config/sway/device-conf }
|
||||
become: no
|
||||
- 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.*'
|
||||
handlers:
|
||||
- name: update initramfs
|
||||
command:
|
||||
|
||||
Reference in New Issue
Block a user