#!/usr/bin/env bash

vivaldi --new-window &

sleep 0.3

# wait until Hyprland focuses the new window
while ! hyprctl activewindow | grep -q "Vivaldi"; do
    sleep 0.05
done

hyprctl dispatch 'hl.dsp.send_shortcut({mods = "CTRL", key = "F11", window = "activewindow"})'
