breto

A status bar written in Go.
Log | Files | Refs | README | LICENSE

commit 154ef0c0fe3625cef6c0a83c0ccf754bbdccf834
parent 0db34eb80b931bfd8711b9e193f7111a8a495acd
Author: Jaron Swab <jrswab@gmail.com>
Date:   Mon, 27 May 2019 11:08:15 -0400

removed fmt for cmd and added commets to wttr

Diffstat:
Mlibs/wttr/wttr.go | 3++-
Mmain.go | 7+++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libs/wttr/wttr.go b/libs/wttr/wttr.go @@ -7,8 +7,9 @@ import ( ) func Local() *string { + // get temp(%t) and wind direction/speed (%w) // for more wttr options see https://wttr.in/:help - resp, err := http.Get("https://wttr.in/?format=%t+%w") // get temp and wind direction/speed + resp, err := http.Get("https://wttr.in/~15101?format=%t+%w") if err != nil { errMessage := "wttr connection issue" return &errMessage diff --git a/main.go b/main.go @@ -1,9 +1,9 @@ package main import ( - "fmt" //"os/exec" "gitlab.com/jrswab/dwm-status/libs/ram" "gitlab.com/jrswab/dwm-status/libs/wttr" + "os/exec" "strings" "time" ) @@ -38,9 +38,8 @@ func main() { // concatinate all strings to one line for output status := strings.Join(cat, " ") - //cmd := exec.Command("xsetroot", "-name", status) - //cmd.Run() - fmt.Println(status) + cmd := exec.Command("xsetroot", "-name", status) + cmd.Run() time.Sleep(1 * time.Second)