summaryrefslogtreecommitdiff
path: root/config/config.go
blob: 9487d3029cfb0d90647fbf2dd1ba518f5b91383e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package config // import "hhvn.uk/hbspbar/config"

import (
	"image/color"
	"time"
)

// Bar height
var H         uint    = 17

func int2rgb(argb uint32) (color.Color) {
	return color.RGBA{
		B: uint8( argb & 0x000000ff),
		G: uint8((argb & 0x0000ff00) >> 8),
		R: uint8((argb & 0x00ff0000) >> 16),
		A: uint8((argb & 0xff000000) >> 24) }
}

var (
	// Bar colours
	Bg       = int2rgb(0xff050a10)
	UnselMon = int2rgb(0xff0c1726)
	Status   = int2rgb(0xff0a2126)
	Fg       = int2rgb(0xffeeeeee)
	FgDark   = int2rgb(0xff444444)
	Sel      = int2rgb(0xff1b364b)
	Urg      = int2rgb(0xff90222b)

	// 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"
var FontSize  float64 = 11.0
var FontYPad  int     = 1

// Space between status elements
var StatusPad int     = 15

// Maximum time.Sleep() allowed
var MaxSleep = time.Minute * 15