#!/bin/bash

if pgrep -x chrome >/dev/null || pgrep -x google-chrome >/dev/null; then
    swaymsg '[app_id="google-chrome"] focus' >/dev/null 2>&1 || true
    exit 0
fi

exec google-chrome \
    --ozone-platform=wayland \
    --start-maximized \
    https://app.wonderink.org/
