script for starting browser on dual monitor setup

This commit is contained in:
sascha.koenig 2025-11-13 10:23:31 +01:00
parent e81feed04a
commit 32c129898a

View File

@ -48,11 +48,11 @@
# Workspace 1 aktivieren und Chromium starten
${pkgs.hyprland}/bin/hyprctl dispatch workspace 1
${pkgs.chromium}/bin/chromium "$WEBAPP_URL" &
chromium "$WEBAPP_URL" &
# Warten, bis Chromium-Fenster zu sehen ist
while true; do
if ${pkgs.hyprland}/bin/hyprctl -j clients | ${pkgs.jq}/bin/jq -e '.[] | select(.class == "chromium-browser")' >/dev/null; then
if ${pkgs.hyprland}/bin/hyprctl -j clients | ${pkgs.jq}/bin/jq -e '.[] | select(.class == "Chromium-browser")' >/dev/null; then
break
fi
sleep 0.2