Git Product home page Git Product logo

rust_anybar's Introduction

MIT Licensed

Description

anybar_rs is a command-line app for controlling the macOS Anybar application.

Installation

  • Download the latest version here
    • unzip, then copy the binary into your $PATH (e.g. /usr/local/bin)
  • Alternatively:
    • install Rust and Cargo. Using rustup.rs is the easiest way to do this
    • run cargo install anybar_rs
  • The binary should now be available to use. To check, run anybar_rs --help.

Building from Source

  • Clone this project
  • Run cargo build --release from the project root
  • The binary will be available as target/release/anybar_rs
  • Copy it into your $PATH.

Usage

By default, anybar_rs assumes that Anybar is bound to localhost on UDP port 1738. Call it like so:
anybar_rs [FLAGS] [OPTIONS] <COMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
-p, --port Set destination UDP port. Input must be 0 โ€“ 6553, and defaults to 1738

ARGS:
COMMAND The command you wish to send to Anybar

Where COMMAND is one of the following:

  • white
  • red
  • orange
  • yellow
  • green
  • cyan
  • blue
  • purple
  • black
  • question
  • exclamation
  • quit

Exit codes

Being a stateless protocol, UDP provides no mechanism for checking whether its datagrams arrive.

  • If the UDP datagram is succesfully sent, anybar_rs will exit with code 0.
  • Unknown flags, options, or an unknown command will print the usage and exit with code 1.

License

MIT

rust_anybar's People

Contributors

urschrei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.