diff --git a/cyberboobs.yml b/cyberboobs.yml index f01b928..91021a2 100644 --- a/cyberboobs.yml +++ b/cyberboobs.yml @@ -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: diff --git a/debian-sway.yml b/debian-sway.yml index aa44572..60a45fc 100644 --- a/debian-sway.yml +++ b/debian-sway.yml @@ -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 diff --git a/gridlock.yml b/gridlock.yml index 62e29c5..22fc70f 100644 --- a/gridlock.yml +++ b/gridlock.yml @@ -57,6 +57,11 @@ with_items: - { name: sway-gridlock, path: ~/.config/sway/device-conf } become: no + - name: Set power button behavior + lineinfile: + line: "HandlePowerKey=poweroff" + path: "/etc/systemd/logind.conf" + regexp: '.*HandlePowerKey.*' - name: install amd drivers and firmware apt: name: