- Move 32+ app-specific scripts from features/apps/scripts/ to features/scripts/utils/ for centralized packaging. - Create individual Nix modules for orphaned app configurations (btop, kitty, tmux, etc.) in features/apps/ using xdg.configFile. - Fix broken paths in core/system/makima.nix and features/apps/vscode.nix. - Update VSCode configuration to use the modern 'profiles.default.userSettings' API, resolving deprecation warnings. - Merge duplicate 'nomarchy-launch-walker' scripts into a single robust utility. - Remove stale root 'config/' directory. - Update README.md and docs/creating-themes.md to reflect the new architecture and keybindings. - Ensure all modules are correctly imported and verified via nix flake check.
16 lines
460 B
Bash
Executable File
16 lines
460 B
Bash
Executable File
#!/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: nomarchy-launch-or-focus-webapp [window-pattern] [url-and-flags...]"
|
|
exit 1
|
|
fi
|
|
|
|
WINDOW_PATTERN="$1"
|
|
shift
|
|
LAUNCH_COMMAND="nomarchy-launch-webapp $@"
|
|
|
|
exec nomarchy-launch-or-focus "$WINDOW_PATTERN" "$LAUNCH_COMMAND"
|