Skip to content

phste/remotray

 
 

Repository files navigation

Systray for Wails

POC

func RunTray(){
    tray, err := remotray.Run("<unix-domain-socket | pipe name for IPC>",
        remotray.WithTitle("TITLE"),)
    if err != nil {
        panic(err)
    }
    item, _ := tray.AddMenuItem("item title.1", "Tooltop")
    item.OnClick(func(item MenuItem) {
        fmt.Println("onclick", item)
    })
    item, _ = tray.AddMenuItem("quit", "Tooltop")
    item.OnClick(func(item MenuItem) {
        tray.Quit()
    })
}

func main()  {
    sigs := make(chan os.Signal, 1)
    signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
    <-sigs
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.2%
  • Shell 0.8%