AL is a cli tool for open/close your apps and web URLs.
go install github.com/meinbaumm/al@latest[~]$ al
NAME:
al - Open/close web urls/apps
USAGE:
al [global options] command [command options] [arguments...]
VERSION:
0.1.3
AUTHOR:
Maxim Petrenko <[email protected]>
COMMANDS:
web Open web urls
open Open apps
close Close apps
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the versionNow AL support 3 command.
web Open web urls
open Open apps
close Close apps
So to use AL you need to specify your own config file like this.
urls:
cambridge: "https://dictionary.cambridge.org/"
github: "https://github.com/"
facebook: "https://www.facebook.com/"
apps-to-open:
safari: "/../../Applications/Safari.app/"
settings: "/../../System/Applications/System Settings.app/"
calendar: "/../../System/Applications/Calendar.app/"
photos: "/../../System/Applications/Photos.app/"
books: "/../../System/Applications/Books.app/"
apps-to-close:
safari: quit app "Safari"
settings: quit app "System Settings"
calendar: quit app "Calendar"
photos: quit app "Photos"
books: quit app "Books"All will look for the path in AL_CONFIG env variable. Just add this line to your .profile file:
export AL_CONFIG="/home/username/al-config.yml"al help – shows help command
NAME:
al - Open/close web urls/apps
USAGE:
al [global options] command [command options] [arguments...]
VERSION:
0.1.3
AUTHOR:
Maxim Petrenko <[email protected]>
COMMANDS:
web Open web urls
open Open apps
close Close apps
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the versional open safari calendar books– will open safari, calendar and books applications.al close safari calendar books– will close opened applicationsal web github facebook– will open github and facebook websites in your default browser
For any command, there is a list subcommand to see list of available apps/urls in your config file. For example
al web list– will print all url names from your config file in ascending order. If you want to see not only url names, but urls too, use--verboseflag.