do not output i3 stdout/stderr

This commit is contained in:
Kevin Schoon 2018-01-20 17:39:05 +08:00
parent 336c0f3ca9
commit b6c74bb61a
1 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
package main package main
import ( import (
"fmt"
"os/exec" "os/exec"
"time" "time"
) )
@ -31,7 +30,7 @@ type Prompter interface {
type I3 struct{} type I3 struct{}
func (i *I3) Prompt(message string) error { func (i *I3) Prompt(message string) error {
raw, err := exec.Command( _, err := exec.Command(
"/bin/i3-nagbar", "/bin/i3-nagbar",
"-m", "-m",
message, message,
@ -39,6 +38,5 @@ func (i *I3) Prompt(message string) error {
if err != nil { if err != nil {
return err return err
} }
fmt.Println(string(raw))
return nil return nil
} }