system-from-scratch/roles/sway/tasks/swaylock.yml

17 lines
426 B
YAML
Raw Normal View History

2024-04-15 21:08:30 +05:00
- name: Install swayidle and swaylock
become: true
ansible.builtin.apt:
pkg:
- swayidle
- swaylock
- name: Create swaylock config dir
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/swaylock"
state: directory
mode: '1770'
- name: Copy swaylock config file
ansible.builtin.copy:
src: files/swaylock
dest: "{{ ansible_env.HOME }}/.config/swaylock/config"
mode: '0660'