dotfiles/macos.local/.flake/home/scripts/launcher.org
2025-01-08 17:24:21 -06:00

582 B

Launcher Script

Use choose-gui to launch an application. This is used for a keyboard command to launch applications.

  #!/bin/sh
  app="$(ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applications/Utilities/ ~/Applications/ | grep '\.app$' | sed 's/\.app$//g' | choose -f "SauceCodePro Nerd Font" -s 15 -b ece0c9).app"

  open -n "$HOME/Applications/$app" || open -n "/Applications/$app" || open -n "/System/Applications/Utilities/$app" || open -n "/System/Applications/$app" || open -n "/Applications/Utilities/$app"