#!/bin/bash # Launch or focus on a given TUI identified by the passed in as the command. # Use by commands like nnomarchy-launch-wifi to ensure there is only one wifi configuration screen open. APP_ID="org.nnomarchy.$(basename "$1")" LAUNCH_COMMAND="nnomarchy-launch-tui $@" exec nnomarchy-launch-or-focus "$APP_ID" "$LAUNCH_COMMAND"