### Idle configuration
exec swayidle \
- timeout 120 'swaymsg "output * dpms off"' \
- resume 'swaymsg "output * dpms on"' \
+ timeout 120 '[ -f ~/.nosleep ] || swaymsg "output * dpms off"' \
+ resume '[ -f ~/.nosleep ] || swaymsg "output * dpms on"' \
before-sleep swaylock
}
bindsym XF86PowerOff mode "$mode_system"
+#
+# Presentation mode
+#
+
+bindsym $mod+$mod2+p exec [ ! -e ~/.nosleep ] && touch ~/.nosleep || rm ~/.nosleep
+
#
# Notifications
#