#!/bin/sh

# Check to see if qb is running
if [ $(pgrep -c -f '.qutebrowser-wrapped') -gt 0 ]; then

    echo "qb running"
    exec hyprctl dispatch focuswindow "class:org.qutebrowser.qutebrowser"
else
    qutebrowser
fi
