-exec swayidle \
- timeout 300 "lock.nosmartcard" \
- timeout 600 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on" \
- before-sleep "lock.nosmartcard"
+{% set lockcmd = "swaylock -e -f -i ~/Pictures/lockscreen_1080_1.png" %}
+
+exec swayidle -w \
+timeout 300 "{{lockcmd}}" \
+ timeout 600 'systemctl suspend' \
+ before-sleep "{{lockcmd}}"
+
+# This keyboard has this layout on all machines:
+input 1241:36:HOLDCHIP_USB_Keyboard {
+ xkb_layout us
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 16700:8455:DELL_Dell_USB_Entry_Keyboard {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 7504:24616:unspecified_ErgoDox_ergonomic_keyboard {
+ xkb_layout gb
+}
+
+input 9494:21:CM_Storm_Quickfire_Pro_Ultimate_6_key {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 1:1:AT_Translated_Set_2_keyboard {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}
+
+input 9610:4102:Gaming_KB__Gaming_KB {
+ xkb_layout gb
+ xkb_variant colemak
+ xkb_options ctrl:nocaps
+}