go-toast

Send toast notifications in Windows
Log | Files | Refs | README | LICENSE

commit d0ed2b20757932ce709442748cb39be7a9d90eae
parent cec7e6e4b3dc1c43af3e01d840a4d8ebf29e1eeb
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Mon,  4 Dec 2023 20:56:16 +0800

examples/toast-cli: use foreground activation

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Mexamples/toast-cli/main.go | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/toast-cli/main.go b/examples/toast-cli/main.go @@ -3,8 +3,9 @@ package main import ( "flag" "fmt" - "git.sr.ht/~jackmordaunt/go-toast" "time" + + "git.sr.ht/~jackmordaunt/go-toast" ) func main() { @@ -18,7 +19,7 @@ func main() { flag.StringVar(&n.Title, "title", "title", "Title") flag.StringVar(&n.Body, "body", "body", "Body") flag.StringVar(&n.Icon, "icon", "", "Icon") - flag.StringVar(&n.ActivationType, "activation-type", toast.Background, "Activation Type [protocol, foreground, background]") + flag.StringVar(&n.ActivationType, "activation-type", toast.Foreground, "Activation Type [protocol, foreground, background]") flag.StringVar(&n.ActivationArguments, "activation-args", "", "Activation Arguments") flag.StringVar(&n.Audio, "audio", "", "Audio to play when displaying the toast") flag.StringVar(&n.ActivationExe, "activation-exe", "", "path to activation executable") @@ -57,12 +58,12 @@ func main() { }) n.Actions = append(n.Actions, toast.Action{ - Type: toast.Background, + Type: toast.Foreground, Content: "Send", Arguments: "send", }) n.Actions = append(n.Actions, toast.Action{ - Type: toast.Background, + Type: toast.Foreground, Content: "Close", Arguments: "close", }) @@ -94,5 +95,4 @@ func main() { if err := n.Push(); err != nil { fmt.Printf("error: %v\n", err) } - }