bark-tray

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 14 Imported by: 0

README

Bark Tray

GitHub GitHub Workflow Status GitHub release (latest by date)

A tray tool for sending clipboard text to iOS devices via Bark.

Screenshot

https://user-images.githubusercontent.com/20807713/213143098-73b28ce4-4b68-40b5-a42a-80f8411ae5e8.mp4

Usage

  • Download the latest version from release page and extract it.

  • Edit the config.json file according to Configuration file. A valid configuration file is as follows.

    {
      "version": "1.0.3",
      "enableLog": true,
      "logFilePath": "bark-tray.log",
      "userAgent": "Bark Tray/1.0",
      "timeout": 5,
      "devices": [
        {
          "name": "MY_PHONE",
          "barkBaseUrl": "https://api.day.app",
          "key": "REPLACE_WITH_YOUR_DEVICE_KEY",
          "isDefault": true
        }
      ]
    }
    
  • Start the Bark Tray and enjoy it. :-)

Configuration file

The configuration file of the program is config.json, if the file does not exist, the program will create a config.json file based on config_template.json.

The definitions of each item in the configuration file are as follows.

Field Type Description
version string The Bark Tray version.
enableLog boolean Enable logging or not.
logFilePath string Path to the log file.
userAgent string The User Agent used to send requests to the Bark server.
timeout integer Request timeout in seconds.
devices []Device See Devices.

Devices

The devices field in the configuration file is an array of Device objects, and the Device objects are defined as follows.

Field Type Description
name string Device name.
barkBaseUrl string URL of Bark server, e.g. https://api.day.app.
key string Key of the device.
Suppose the URL displayed on the Bark App homepage is: https://api.day.app/abcdefghijklmnopqrstuv/example, then abcdefghijklmnopqrstuv is the key of your device.
isDefault boolean Whether the current device is the default device.
If there are multiple default devices, the first default device in the devices array will be the default device.

Build

This program uses systray, which has some requirements for compiling on different platforms, you can click here to see the detailed requirements.

License

MIT License

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL