Add some commands

This commit is contained in:
2026-03-03 23:54:23 +00:00
parent d14e4a633e
commit b63ac63104
37 changed files with 265 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
# Launch or focus on a given web app identified by the window-pattern.
# Use by some default bindings, like the one for WhatsApp, to ensure there is only one instance of the application open.
if (($# == 0)); then
echo "Usage: station-launch-or-focus-webapp [window-pattern] [url-and-flags...]"
exit 1
fi
WINDOW_PATTERN="$1"
shift
LAUNCH_COMMAND="station-launch-webapp $@"
exec station-launch-or-focus "$WINDOW_PATTERN" "$LAUNCH_COMMAND"