feat: configure swaylock

This commit is contained in:
Ivan R. 2024-04-15 21:08:30 +05:00
parent b0fdee5f17
commit 4f207431e9
Signed by: lumin
GPG key ID: E0937DC7CD6D3817
4 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,2 @@
exec swayidle -w timeout 1200 'swaylock'
bindsym $mod+Ctrl+l exec swaylock

View file

@ -0,0 +1 @@
image=~/Pictures/wallpapers/$(ls -1 ~/Pictures/wallpapers | shuf | head -1)

View file

@ -6,3 +6,5 @@
import_tasks: wofi.yml import_tasks: wofi.yml
- name: Dunst - name: Dunst
import_tasks: dunst.yml import_tasks: dunst.yml
- name: Swaylock
import_tasks: swaylock.yml

View file

@ -0,0 +1,16 @@
- 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'