ansible-swaylock/README.md
2022-11-30 09:40:47 +01:00

932 B

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'