output * bg /home/j3s/Pictures/flowers.jpg tile

# This will lock your screen after 300 seconds of inactivity, then turn off
# 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.

exec swayidle -w \
         timeout 600 'swaylock -f -c 000000' \
         timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
         before-sleep 'swaylock -f -c 000000'

for_window [class="Firefox"] inhibit_idle fullscreen
for_window [class="Chromium"] inhibit_idle fullscreen

bindsym $mod+Shift+i exec jira-bemenu
bindsym $mod+Prior exec vpn
bindsym $mod+Next exec vpn kill

# Laptop outputs are managed automatically using kanshi
# see https://github.com/emersion/kanshi/issues/43
exec_always pkill kanshi; exec kanshi &> /tmp/kanshi.debug
