]> git.friedersdorff.com Git - max/saltfiles.git/blobdiff - states/sway/files/config.jinja
Fix syntax errors in launching swayidle
[max/saltfiles.git] / states / sway / files / config.jinja
index 86b9e213cd569e1ef9cf1aeb1dd4ad9454cd8f92..fe2ec45defae3c4856dee9bba76587661c1fc125 100644 (file)
@@ -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 {
@@ -195,6 +197,11 @@ input 1241:36:HOLDCHIP_USB_Keyboard {
   xkb_options ctrl:nocaps
 }
 
+input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
+  xkb_layout gb
+  xkb_variant colemak
+  xkb_options ctrl:nocaps
+}
 # host specific section
 {%- do salt.log.error('sway/files/' + host) -%}
 {% include 'sway/files/' + host %}