I am trying to setup Sway with swaylock. My configuration in my ~/.config/sway/config
is as follows:
exec swayidle -w \
timeout 1800 'swaylock -f -c 000000' \
timeout 3600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms off"' \
before-sleep 'playerctl pause' \
before-sleep 'swaylock -f -c 000000'
However, this also locks my screen after 30 minutes of watching a movie in the browser (I use Chromium for this). Is there a way to disable swayidle while watching a movie? I couldn't find any hints in the man pages.
I run Sway on Arch Linux.
Thank you very much for your help!