summaryrefslogtreecommitdiff
path: root/config.ini
blob: 8f981453ca214f494c0cf10db78efe0361beecd0 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
;; ~/.config/polybar/config.ini

[colors]
bg         = #111111
bg-alt     = #1c1c1c
fg         = #cccccc
fg-dim     = #777777
accent     = #285577
urgent     = #cc4444

[bar/main]
monitor              =
width                = 100%
height               = 22
offset-x             = 0
offset-y             = 0
bottom               = true

background           = ${colors.bg}
foreground           = ${colors.fg}

padding-left         = 0
padding-right        = 0

module-margin-left   = 0
module-margin-right  = 0

font-0 = "Fira Code:pixelsize=11:antialias=true;3"

modules-left   = xmonad
modules-center =
modules-right  = cpu memory volume date time

tray-position        = right
tray-padding         = 6
tray-background      = ${colors.bg}
tray-maxsize         = 14

cursor-default = default
cursor-click   = default
cursor-scroll  = default

[module/xmonad]
type           = custom/script
exec           = tail -F /tmp/xmonad-log 2>/dev/null
tail           = true
format-padding = 1

[module/cpu]
type                 = internal/cpu
interval             = 2
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = CPU %percentage%%
label-foreground     = ${colors.fg-dim}

[module/memory]
type                 = internal/memory
interval             = 2
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = MEM %used%
label-foreground     = ${colors.fg-dim}

[module/volume]
type                 = custom/script
exec                 = pamixer --get-volume-human 2>/dev/null || echo --
interval             = 2
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = VOL %output%
label-foreground     = ${colors.fg-dim}

[module/date]
type                 = internal/date
interval             = 10
date                 = %a %d %b
format               = <label>
format-background    = ${colors.bg-alt}
format-padding       = 2
format-margin-left   = 2
label                = %date%
label-foreground     = ${colors.fg-dim}

[module/time]
type                 = internal/date
interval             = 10
date                 = %H:%M
format               = <label>
format-background    = ${colors.accent}
format-padding       = 2
format-margin-left   = 2
label                = %date%
label-foreground     = #ffffff