Add swayidle role
This commit is contained in:
parent
372b26c105
commit
79ebe2f813
2 changed files with 12 additions and 0 deletions
11
group_vars/all/swayidle.yml
Normal file
11
group_vars/all/swayidle.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
swayidle_config:
|
||||||
|
timeouts:
|
||||||
|
- seconds: 300
|
||||||
|
command: swaylock -f
|
||||||
|
- seconds: 600
|
||||||
|
command: swaymsg "output * dpms off"
|
||||||
|
resume: 'swaymsg "output * dpms on"'
|
||||||
|
events:
|
||||||
|
before-sleep: swaylock -f
|
||||||
|
lock: swaylock -f
|
|
@ -6,3 +6,4 @@
|
||||||
- ansible-kanshi
|
- ansible-kanshi
|
||||||
- ansible-mako
|
- ansible-mako
|
||||||
- ansible-swaylock
|
- ansible-swaylock
|
||||||
|
- ansible-swayidle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue