List advertised services on your network that match defined templates and provide a list for the user to access them.
Safari used to provide a list of web servers which advertised themselves via Bonjour in the Bookmarks menu or in a pop-up menu off of the toolbar. This feature was removed some time ago, for reasons best known to Apple.
Because I always found it useful to use these advertised web servers to check on the status of printer ink levels, etc. on my network, the hs.bonjour
module and this spoon bring back an easy way to see what devices on your network are advertising a web server, and many other services which can use Bonjour (also sometimes referred to as ZeroConf or Avahi, especially on Linux servers) to advertise their presence.
Signature | BonjourLauncher.darkMode |
---|---|
Type | Variable |
Description | Set whether the BonjourLauncher chooser window should apoear dark themed, aqua themed (light) or track the current system settings for Dark mode. Defaults to nil. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 550 |
Signature | BonjourLauncher.displayToolbar |
---|---|
Type | Variable |
Description | Whether or not to display a toolbar at the top of the BonjourLauncher chooser window. Defaults to true. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 508 |
Signature | BonjourLauncher.rows |
---|---|
Type | Variable |
Description | The number of rows to display when the chooser is visible. Defaults to 10. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 516 |
Signature | BonjourLauncher.subTextColor |
---|---|
Type | Variable |
Description | Sets the color of the subText for each service listed in the BonjourLauncher chooser window. Defaults to nil. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 541 |
Signature | BonjourLauncher.templates |
---|---|
Type | Variable |
Description | A table specifying the service types which the BonjourLauncher looks for on your network and defines how to display and launch discovered services. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 429 |
Signature | BonjourLauncher.textColor |
---|---|
Type | Variable |
Description | Sets the color of the primary text for each service listed in the BonjourLauncher chooser window. Defaults to nil. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 532 |
Signature | BonjourLauncher.width |
---|---|
Type | Variable |
Description | The width of the BonjourLauncher chooser window as a percentage of the screen size. Defaults to 40. |
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 524 |
Signature | BonjourLauncher:addRecipes(recipe...) -> self |
---|---|
Type | Method |
Description | Add predefined recipes to BonjourLauncher.templates for display by the BonjourLauncher chooser. |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 791 |
Signature | BonjourLauncher:bindHotkeys(mapping) -> self |
---|---|
Type | Method |
Description | Binds hotkeys for the BonjourLauncher spoon |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 739 |
Signature | BonjourLauncher:hide() -> self |
---|---|
Type | Method |
Description | Hides the BonjourLauncher chooser window and clears any active service queries. |
Parameters |
|
Returns |
|
Source | Source/BonjourLauncher.spoon/init.lua line 673 |
Signature | BonjourLauncher:show([label]) -> self |
---|---|
Type | Method |
Description | Shows the BonjourLauncher chooser window and begins queries for the currently selected service type. |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 628 |
Signature | BonjourLauncher:start() -> self |
---|---|
Type | Method |
Description | Readys the chooser interface for the BonjourLauncher spoon |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 567 |
Signature | BonjourLauncher:stop() -> self |
---|---|
Type | Method |
Description | Removes the chooser interface for the NonjourLauncher spoon and any lingering service queries |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 598 |
Signature | BonjourLauncher:toggle([label]) -> self |
---|---|
Type | Method |
Description | Toggles the visibility of the BonjourLauncher chooser window. |
Parameters |
|
Returns |
|
Notes |
|
Source | Source/BonjourLauncher.spoon/init.lua line 694 |