From 1b6d204140353b691db1009b7681067f99d64048 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Wed, 9 Oct 2019 09:05:53 +0100 Subject: [PATCH] Fix syntax errors in launching swayidle --- states/sway/files/config.jinja | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index 0d59a33..fe2ec45 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -182,11 +182,13 @@ focus_on_window_activation urgent for_window [class="^rdesktop"] move workspace number 9; floating disable for_window [class="Pinentry"] floating enable +{% set lockcmd = "swaylock -i {DP-1,eDP-1,HDMI-A-1}:~/Pictures/lockscreen_1080_1.png" %} + exec swayidle \ - timeout 300 "lock.nosmartcard" \ +timeout 300 "{{lockcmd}}" \ timeout 600 'swaymsg "output * dpms off"' \ - resume 'swaymsg "output * dpms on" \ - before-sleep "lock.nosmartcard" + resume 'swaymsg "output * dpms on"' \ + before-sleep "{{lockcmd}}" # This keyboard has this layout on all machines: input 1241:36:HOLDCHIP_USB_Keyboard { -- 2.46.2