summaryrefslogtreecommitdiff
path: root/.config/polybar/config
blob: d61be7f0879d9176f802b0c7d2acdd8eac0360d8 (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
;--------;
; COLORS ;
;--------;

[colors]
foreground = #b5b4c9
background = #1c1c1c

[bar/mybar]

;------------;
; DIMENSIONS ;
;------------;

width = 100%
height = 20
offset-y = 0
offset-x = 0

border-size = 0

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

;----------;
; LOCATION ;
;----------;

bottom = false
;monitor = eDP-1
override-redirect = false

;-------;
; FONTS ;
;-------;

font-0="Dina:pixelsize=11;1"

;---------;
; MODULES ;
;---------;

modules-right=cpu temperature pulseaudio date
modules-left=battery network memory
modules-center=bspwm


;---------------;
; MISCELLANEOUS ;
;---------------;

fixed-center = true
tray-position = right
tray-detached = false
module-margin-left = 1

[module/battery]
type=internal/battery

battery=BAT0
adapter=AC

poll-interval=5
full-at=98

time-format=%H:%M

label-discharging=%time% %percentage%
label-charging=%time% %percentage%
label-full=BAT0: %percentage%

label-full-foreground = ${colors.foreground}
label-full-background = ${colors.background}
label-full-padding = 2

label-charging-foreground = ${colors.foreground}
label-charging-background = ${colors.background}
label-charging-padding = 2

label-discharging-foreground = ${colors.foreground}
label-discharging-background = ${colors.background}
label-discharging-padding = 2

format-discharging=<label-discharging>
format-charging=<label-charging>
format-full=<label-full>

[module/date]
type=internal/date
interval=1.0
date=%A %d
time=%I:%M
time-alt=%I:%M:%S %A, %d %B %Y

format=<label>
label=%date% %time%
label-foreground = ${colors.foreground}
label-background = ${colors.background}
label-padding = 2

[module/temperature]
type=internal/temperature
interval=1.0
hwmon-path=${env:HWMON_PATH}
base-temperature=38
warn-temperature=70
format=<label>
format-warn=<label-warn>
label=Temp: %temperature-c%
label-warn=TEMP: %temperature-c%

label-foreground = ${colors.foreground}
label-background = ${colors.background}
label-padding = 2
label-warn-foreground = ${colors.foreground}
label-warn-background = ${colors.background}
label-warn-padding = 2

[module/cpu]
type=internal/cpu
interval=0.5
format=<label>
label=CPU: %percentage%%

label-foreground = ${colors.foreground}
label-background = ${colors.background}
label-padding = 2

[module/memory]
type=internal/memory
interval=3
format=<label>
label=Mem: %gb_used%

label-foreground = ${colors.foreground}
label-background = ${colors.background}
label-padding = 2

[module/pulseaudio]
type=internal/pulseaudio
sink=alsa_output.pci-0000_00_1b.0.analog-stereo
format=<label-volume>
label-volume=Vol: %percentage%%
label-muted=muted
click-right=pavucontrol

label-volume-foreground = ${colors.foreground}
label-volume-background = ${colors.background}
label-volume-padding = 2

label-muted-foreground = ${colors.foreground}
label-muted-background = ${colors.background}
label-muted-padding = 2

[module/bspwm]
type=internal/bspwm
format=<label-state> <label-mode>
label-focused=%name%
label-focused-padding=2
label-occupied=%name%
label-occupied-padding=2
label-empty=%name%
label-empty-padding=2

label-focused-foreground = #c6aed7
label-focused-background = ${colors.background}
label-occupied-foreground = #8296b0
label-occupied-background = ${colors.background}
label-empty-foreground = #5b5f71
label-empty-background = ${colors.background}

[module/network]
type=internal/network
interface=wlan0
interval=1.0
label-connected=%essid% %local_ip%
label-disconnected=""

label-connected-foreground = ${colors.foreground}
label-connected-background = ${colors.background}
label-connected-padding = 2

label-disconnected-foreground = ${colors.foreground}
label-disconnected-background = ${colors.background}
label-disconnected-padding = 2

; vim: set ft=dosini nomodeline: