Quickly open and close the applications you use every day.
If you have Go installed:
go get -u github.com/jonathanwthom/opener
cd $GOPATH/src/github.com/jonathanwthom/opener
go install
Otherwise, move the binary to somewhere in your PATH:
git clone https://github.com/JonathanWThom/opener
cd opener
mv opener /usr/local/bin/opener
In the root of your filesystem, create a file called applications.json.
touch ~/applications.json
In that file, list the names of the files you want to use like this.
You will need to have one key that is "default" - these are the applications that will open and close with no additional arguments passed.
You can also set your default configuration via an interactive session by running opener -s
. This currently supports adding and removing applications
from your default group only, but other groups and operations will be supported in the future.
When including web browsers in your list of applications, you can specify sites to open by default. Add another group with the name of the browser, and an array of sites you want to open, like this:
{
"default": [
"Google Chrome"
],
"Google Chrome": [
"https://stackoverflow.com",
"https://twitter.com"
]
}
To open all the applications in your list, simply run opener
.
When you want to close them, run opener -c
.
To create extra groups, simply add another key with a corresponding list to applications.json
. You can then open and close that group
of apps by passing the -g
flag. For example: opener -g weekend
and opener -c -g weekend
.
This program was built and compiled on MacOS, so probably only works with darwin amd64.
If it doesn't work as intended, please open an issue!
MIT