Files
blomarchy/bin/blob-launch-or-focus-webapp

16 lines
388 B
Bash
Executable File

#!/bin/bash
# blob:summary=Launch or focus on a given web app identified by the window-pattern.
# blob:args=<window-pattern> <url-and-flags...>
if (($# == 0)); then
echo "Usage: blob-launch-or-focus-webapp [window-pattern] [url-and-flags...]"
exit 1
fi
WINDOW_PATTERN="$1"
shift
LAUNCH_COMMAND="blob-launch-webapp $@"
exec blob-launch-or-focus "$WINDOW_PATTERN" "$LAUNCH_COMMAND"