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

40 lines
932 B
Markdown

Swaylock Ansible Role
---------------------
Install and configure [swaylock](https://github.com/swaywm/swaylock)
## Variables
You can define 3 variables for this role, all are optionnals.
`swaylock_flags` list options which do not need valus like `daemonize`:
```yaml
---
swaylock_flags:
- ignore-empty-password
- show-failed-attempts
- daemonize
```
`swaylock_options` list key-value type options like `image` or all colors
related stuff:
```yaml
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](https://git.epha.se/ephase/ansible-sway)
for managing this variable.
```yaml
swaylock_keybindings:
- mode: normal
bindings:
- bindsym: '$mod+alt+l'
action: 'exec swaylock'
```