breto

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

commit 6561f4e0d5807cdfed0dcc4871abbbd041d3f650
parent c834e96deea1396e4152e4086a1ba2a93023afcf
Author: J. R. Swab <jrswab@protonmail.com>
Date:   Fri, 31 May 2019 22:08:26 +0000

formatting updates
Diffstat:
MREADME.md | 32++++++++++++++------------------
1 file changed, 14 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md @@ -1,11 +1,7 @@ -# DWM Status Bar -This is a script written with Go to display information for DWM via `xsetroot -name`. +# Go Status Bar +This is a script written with Go to display information. Currently tested with DWM and Tmux -The reason for using Go is because when a using Posix compliant shell script, the execution of programs slowed down noticeably. -This may not be the script itself and something else but after moving to a -compiled binary written in go the problem halted. - -## To run: +## Running in DWM: 1. Download the source 1. Edit as desired 1. `go build` @@ -17,20 +13,20 @@ compiled binary written in go the problem halted. ## Running in Tmux: 1. Comment out or remove: - - `os/exec` - - `var cmd *exec.Cmd` - - `cmd = exec.Command("xsetroot", "-name", status)` - - `cmd.Run()` + - `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. + - `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: