hbspbar

[WIP] bspwm status bar
git clone https://hhvn.uk/hbspbar
git clone git://hhvn.uk/hbspbar
Log | Files | Refs

commit 50e8e54ec6f7342fdf0a90c8e3cd652e4a1ac8b9
parent d38b2012c88cd6a3ab2cda5f6b34b2fed4302cb3
Author: hhvn <dev@hhvn.uk>
Date:   Fri,  5 Jan 2024 20:33:25 +0000

Remove xColor vars. Because they are only converted.

Diffstat:
Mconfig/config.go | 50++++++++++++++++----------------------------------
1 file changed, 16 insertions(+), 34 deletions(-)

diff --git a/config/config.go b/config/config.go @@ -5,26 +5,6 @@ import "image/color" // Bar height var H uint = 17 -const ( - // Bar colours - xBg = 0xff050a10 - xUnselMon = 0xff0c1726 - xStatus = 0xff0a2126 - xFg = 0xffeeeeee - xFgDark = 0xff444444 - xSel = 0xff1b364b - xUrg = 0xff90222b - - // Status colours - xRed = 0xffaa2222 - xOrange = 0xffaa7700 - xGreen = 0xff00aa00 - xBlack = 0xff000000 - xGrey = 0xff888888 - xYellow = 0xffaaaa00 - xWhite = 0xffcccccc -) - func int2rgb(argb uint32) (color.Color) { return color.RGBA{ B: uint8( argb & 0x000000ff), @@ -34,21 +14,23 @@ func int2rgb(argb uint32) (color.Color) { } var ( - Bg = int2rgb(xBg) - UnselMon = int2rgb(xUnselMon) - Status = int2rgb(xStatus) - Fg = int2rgb(xFg) - FgDark = int2rgb(xFgDark) - Sel = int2rgb(xSel) - Urg = int2rgb(xUrg) + // Bar colours + Bg = int2rgb(0xff050a10) + UnselMon = int2rgb(0xff0c1726) + Status = int2rgb(0xff0a2126) + Fg = int2rgb(0xffeeeeee) + FgDark = int2rgb(0xff444444) + Sel = int2rgb(0xff1b364b) + Urg = int2rgb(0xff90222b) - Red = int2rgb(xRed) - Orange = int2rgb(xOrange) - Green = int2rgb(xGreen) - Black = int2rgb(xBlack) - Grey = int2rgb(xGrey) - Yellow = int2rgb(xYellow) - White = int2rgb(xWhite) + // Status colours + Red = int2rgb(0xffaa2222) + Orange = int2rgb(0xffaa7700) + Green = int2rgb(0xff00aa00) + Black = int2rgb(0xff000000) + Grey = int2rgb(0xff888888) + Yellow = int2rgb(0xffaaaa00) + White = int2rgb(0xffcccccc) ) var Font string = "/usr/share/fonts/TTF/DejaVuSansMono.ttf"