From b6c74bb61a8aeb01bfd47e1f328b6bf47ccb7e1a Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sat, 20 Jan 2018 17:39:05 +0800 Subject: [PATCH] do not output i3 stdout/stderr --- types.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types.go b/types.go index 45ed4f9..1763c21 100644 --- a/types.go +++ b/types.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "os/exec" "time" ) @@ -31,7 +30,7 @@ type Prompter interface { type I3 struct{} func (i *I3) Prompt(message string) error { - raw, err := exec.Command( + _, err := exec.Command( "/bin/i3-nagbar", "-m", message, @@ -39,6 +38,5 @@ func (i *I3) Prompt(message string) error { if err != nil { return err } - fmt.Println(string(raw)) return nil }