Skip to content

chew-z/swiftbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-bitbar logo

Travis Badge Go Report Card Badge GoDoc Badge

This repo contains a package for creating SwiftBar plugins in Go.

It is forked by me chew-z from go-bitbar and all credits should go there. I have just added logic for Swiftbar's WebView component. And in the future I hope to add some more logic (Swiftbar has some extended capabilities over original Bitbar and xbar (Bitbar reboot)) and push PR.

Usage

Creating a BitBar plugin is as simple as (see the godocs for more details):

package main

import "github.com/johnmccabe/go-bitbar"

func main() {
    app := bitbar.New()
    app.StatusLine("Hello")

    submenu := app.NewSubMenu()
    submenu.Line("World!")

    app.Render()
}

Examples

swiftbar

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages