{% elif grains['host'] == 'rhenium' %}
{% set ifdev = ['wlp2s0'] %}
{% elif grains['host'] == 'baryte' %}
- {% set ifdev = ['enx00f001e00121'] %}
+ {% set ifdev = ['enp0s20f0u4u2c2'] %}
{% else %}
{% set ifdev = ['eth0'] %}
{% endif %}
# your displays after another 300 seconds, and turn your screens back on when
# resumed. It will also lock your screen before your computer goes to sleep.
+{% set lockcmd = "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg" %}
+
+exec swayidle -w \
+timeout 300 "{{lockcmd}}" \
+ timeout 600 'systemctl suspend' \
+ before-sleep "{{lockcmd}}"
+
+
### Input configuration
#
# Example configuration:
}
bindsym $mod+r mode "resize"
+bindsym $mod+Alt+l exec '{{ lockcmd }}'
+
include /etc/sway/config.d/*
# host specific section