breto

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

commit 9ecf162d95a6ca0390e12eb72ffe38850e0490c9
parent 85ed0bc277e97ee086ba8b7c3579e19b93f9557d
Author: Jaron Swab <jrswab@gmail.com>
Date:   Thu, 30 May 2019 17:05:28 -0400

Removed pre loop definitions for the variables

Diffstat:
Mmain.go | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/main.go b/main.go @@ -9,13 +9,8 @@ import ( ) func main() { - // initial run - var weather, ramFree string - hTime := time.Now().Format("Jan 02, 2006 15:04") - status := fmt.Sprintf(" %s ", hTime) - - cmd := exec.Command("xsetroot", "-name", status) - cmd.Run() // run first execution without the go routines + var status, hTime, weather, ramFree string + var cmd *exec.Cmd cWttr := make(chan string) // start weather data routine go wttr.Local(cWttr)