This repository has been archived on 2020-08-28. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-laptop/roles/gui/tasks/lock.yml
2018-10-12 20:44:28 +00:00

29 lines
517 B
YAML

---
- name: install i3lock
apt:
name: "i3lock"
state: present
- name: install lock script
copy:
src: lock
dest: /usr/local/bin/lock
mode: 0755
- name: copy lock systemd service
copy:
src: lock.service
dest: /lib/systemd/system/lock.service
- name: enable lock systemd service
service:
name: lock
enabled: true
- name: susped at lid close when docked
ini_file:
path: /etc/systemd/logind.conf
section: Login
option: HandleLidSwitchDocked
value: suspend