Ansible role to install and configure Swaylock
Find a file
2022-11-30 14:12:29 +01:00
meta Add meta 2022-11-30 14:12:29 +01:00
tasks First commit 2022-11-30 09:40:47 +01:00
templates First commit 2022-11-30 09:40:47 +01:00
README.md First commit 2022-11-30 09:40:47 +01:00

Swaylock Ansible Role

Install and configure swaylock

Variables

You can define 3 variables for this role, all are optionnals.

swaylock_flags list options which do not need valus like daemonize:

---
swaylock_flags:
  - ignore-empty-password
  - show-failed-attempts
  - daemonize

swaylock_options list key-value type options like image or all colors related stuff:

swaylock_options:
  image: '~/documents/ressources/wallpapers/psychonauts.jpg'

You can check Swaylock manual pages (man swaylock) for all options.

The last variable, swaylock_keybinding list Swaylock related keybinding for Sway. Check my Sway Ansible role for managing this variable.

swaylock_keybindings:
  - mode: normal
    bindings:
      - bindsym: '$mod+alt+l'
        action: 'exec swaylock'