breto

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

commit b5244bb5cad73f47cf7b9f6c90d3905b6085f18e
parent 514b633abced3c25e52c747d9df7476f04cbea04
Author: J. R. Swab <jrswab@protonmail.com>
Date:   Fri, 31 May 2019 22:03:34 +0000

Merge branch 'tmuxStatus' into 'master'

Added instructions on adding to Tmux

See merge request jrswab/dwm-status!10
Diffstat:
MREADME.md | 27+++++++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md @@ -11,10 +11,30 @@ compiled binary written in go the problem halted. 1. `go build` 2. Execute the new binary -### Optional: +### DWM Optionals: 1. Set DWM to run the new binary automatically. 2. Set keycombo to run the binary. -3. Add your area to the weather function + +## Running in Tmux: +1. Comment out or remove: + - `os/exec` + - `var cmd *exec.Cmd` + - `cmd = exec.Command("xsetroot", "-name", status)` + - `cmd.Run()` +2. Add `fmt.Println(status)` to the end of `for range ticker.C` +3. Save and run `go build` within the project directory +4. Add to Tmux: + - `set -g status-right "#($HOME/PATHTO/tmux-status)"` + - if you have colors in this setting add the path at the end of the string + - Be sure to use the correct path and name of the file you built with GO. + - Running `mv dwm-status ~/tmux-status` will allow you to use `"($HOME/tmux-status)" in your config. + - `set -g status-right-length 53` + - if you are not using all the custom packages this number can be lower + - 53 worked well for my setup but if you notice the status getting cut off just increase the number and reload tmux. + + +## Wttr.in Optionals: +1. Add your area to the weather function - Area Code: 'wttr.in/~00000?format=2' - City: 'wttr.in/~Paris?format=2' @@ -22,4 +42,4 @@ compiled binary written in go the problem halted. ### Master Branch: - Date & Time - Weather via wttr.in -- Total RAM not used -\ No newline at end of file +- Total RAM not used