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

29 lines
765 B
YAML
Raw Normal View History

2024-04-15 20:46:12 +05:00
- name: Install sway, grim, slurp and wl-clipboard
2024-04-13 16:15:51 +05:00
become: true
ansible.builtin.apt:
pkg:
- sway
2024-04-15 20:46:12 +05:00
- grim
- slurp
- wl-clipboard
2024-04-13 16:15:51 +05:00
- name: Create sway config dir
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.config/sway"
state: directory
mode: '1770'
- name: Copy sway config file
ansible.builtin.copy:
src: files/sway.conf
dest: "{{ ansible_env.HOME }}/.config/sway/config"
mode: '0660'
- name: Copy sway config.d files
ansible.builtin.copy:
src: files/sway.d/
dest: "{{ ansible_env.HOME }}/.config/sway/config.d/"
mode: '1770'
2024-04-15 20:46:12 +05:00
- name: Create directory for screenshots
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/Pictures/screenshots"
state: directory
mode: '1770'