aboutsummaryrefslogtreecommitdiff
path: root/polybar.ini
blob: 4243cb95b86beb7dc7ed643a6759ccdeeda6270f (about) (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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
; -*- mode: conf-windows; -*-

[global/wm]
include-file = catppuccin.ini

[colors]
background = ${colors.base}
background-alt = ${colors.surface0}
primary = ${colors.blue}
alert = ${colors.yellow}
disabled = ${colors.overlay2}
empty-bar = ${colors.surface2}

[settings]
screenchange-reload = true

[bar/primary]
monitor = ${env:POLYBAR_MONITOR}
width = 100%
height = 24pt
radius = 0
line-size = 3pt
line-color = ${colors.primary}
border-size = 0
padding-left = 0
padding-right = 2
module-margin = 2

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

font-0 = Fira Sans:size=11;2
; Some workspace names have emojis in them.
font-1 = Openmoji:size=11;2
; Hermit is needed for Unicode block chars.
font-2 = Hermit:size=10;1

separator = ยท
separator-foreground = ${colors.disabled}

modules-left = i3 xwindow
modules-right = memory cpu temp xkeyboard pulseaudio dunst wlan eth battery date
tray-position = right

enable-ipc = true

cursor-click = pointer
cursor-scroll = ns-resize

[module/i3]
type = internal/i3
pin-workspaces = false
show-urgent = true
strip-wsnumbers = true
index-sort = true
label-mode-foreground = ${colors.alert}
label-mode-background = ${colors.background-alt}
label-mode-padding = 2
label-focused-overline = ${colors.primary}
label-focused-padding = 1
label-urgent-foreground = ${colors.alert}
label-urgent-background = ${colors.background-alt}
label-urgent-padding = 1
label-unfocused-padding = 1
label-visible-padding = 1

[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 120

[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume>  <label-volume>
label-volume = %percentage%%
label-muted = ๐Ÿ”‡
label-muted-foreground = ${colors.disabled}

ramp-volume-0 = ๐Ÿ”ˆ
ramp-volume-1 = ๐Ÿ”‰
ramp-volume-2 = ๐Ÿ”Š
ramp-volume-0-foreground = ${colors.primary}
ramp-volume-1-foreground = ${colors.primary}
ramp-volume-2-foreground = ${colors.primary}

[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
; hide xkeyboard module unless Caps Lock is pressed
label-layout =
label-indicator-padding = 1
label-indicator-margin = 0
label-indicator-foreground = ${colors.alert}
label-indicator-background = ${colors.background-alt}

[module/memory]
type = internal/memory
interval = 1
format = <label>  <ramp-used>
format-prefix = "RAM "
format-prefix-foreground = ${colors.primary}
format-warn-prefix = "RAM "
format-warn-prefix-foreground = ${colors.primary}
label = %used%
label-warn = %free% left
label-warn-foreground = ${colors.alert}
label-warn-background = ${colors.background-alt}

ramp-used-0 = โ–
ramp-used-1 = โ–‚
ramp-used-2 = โ–ƒ
ramp-used-3 = โ–„
ramp-used-4 = โ–…
ramp-used-5 = โ–†
ramp-used-6 = โ–‡
ramp-used-7 = โ–ˆ
ramp-used-0-foreground = ${colors.empty-bar}
ramp-used-1-foreground = ${colors.primary}
ramp-used-2-foreground = ${colors.primary}
ramp-used-3-foreground = ${colors.primary}
ramp-used-4-foreground = ${colors.primary}
ramp-used-5-foreground = ${colors.alert}
ramp-used-6-foreground = ${colors.alert}
ramp-used-7-foreground = ${colors.alert}

[module/cpu]
type = internal/cpu
interval = 1
format = <ramp-coreload>
format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}

; Spacing (number of spaces, pixels, points) between individual per-core ramps
ramp-coreload-spacing = 1
ramp-coreload-0 = โ–
ramp-coreload-1 = โ–‚
ramp-coreload-2 = โ–ƒ
ramp-coreload-3 = โ–„
ramp-coreload-4 = โ–…
ramp-coreload-5 = โ–†
ramp-coreload-6 = โ–‡
ramp-coreload-7 = โ–ˆ
ramp-coreload-0-foreground = ${colors.empty-bar}
ramp-coreload-1-foreground = ${colors.primary}
ramp-coreload-2-foreground = ${colors.primary}
ramp-coreload-3-foreground = ${colors.primary}
ramp-coreload-4-foreground = ${colors.primary}
ramp-coreload-5-foreground = ${colors.primary}
ramp-coreload-6-foreground = ${colors.alert}
ramp-coreload-7-foreground = ${colors.alert}

[module/temp]
type = internal/temperature
; head /sys/class/thermal/thermal_zone*/type
thermal-zone = 1
format-prefix = "๐ŸŒก "
format-prefix-foreground = ${colors.primary}
format-warn-prefix = "๐ŸŒก "
format-warn-prefix-foreground = ${colors.primary}
label-warn-foreground = ${colors.alert}
label-warn-background = ${colors.background-alt}

[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-packetloss = <animation-packetloss> <label-connected>
; Hide completely if disconnected.
format-disconnected =

animation-packetloss-0 = โš 
animation-packetloss-0-foreground = ${colors.alert}
animation-packetloss-0-background = ${colors.background-alt}
animation-packetloss-1 = ๐Ÿ“ถ
animation-packetloss-1-foreground = ${colors.alert}
animation-packetloss-1-background = ${colors.background-alt}
; Framerate in milliseconds
animation-packetloss-framerate = 500

[module/wlan]
inherit = network-base
interface-type = wireless
format-connected = <ramp-signal> <label-connected>
label-connected = %essid%
; label-connected-foreground = ${colors.green}

ramp-signal-0 = ๐Ÿ“ถ
ramp-signal-1 = ๐Ÿ“ถ
ramp-signal-2 = ๐Ÿ“ถ
ramp-signal-0-foreground = ${colors.red}
ramp-signal-1-foreground = ${colors.green}
ramp-signal-2-foreground = ${colors.green}

[module/eth]
inherit = network-base
interface-type = wired
label-connected = %linkspeed%
format-connected-prefix = "๐ŸŒ "
format-connected-prefix-foreground = ${colors.green}

[module/battery]
type = internal/battery
low-at = 25
time-format = %-Hh%Mm
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%% %time% %consumption%W
format-charging = <label-charging>
format-charging-prefix = "๐Ÿ”Œ "
format-charging-prefix-foreground = ${colors.green}
label-charging = %percentage%% %time%
format-full =

ramp-capacity-0 = ๐Ÿ”‹
ramp-capacity-1 = ๐Ÿ”‹
ramp-capacity-2 = ๐Ÿ”‹
ramp-capacity-0-foreground = ${colors.red}
ramp-capacity-1-foreground = ${colors.yellow}
ramp-capacity-2-foreground = ${colors.green}

[module/date]
type = internal/date
interval = 1
date = %a %e %b
time = %H:%M
date-alt = %Y-%m-%d
time-alt = %H:%M:%S
label = %date%, %time%

[module/dunst]
type = custom/script
; Only show a "slience" emoji when notifications are paused; nothing otherwise.
exec = "case $(dunstctl is-paused) in false) echo;; true) echo '๐Ÿ”•';; esac"
format = <label>
format-foreground = ${colors.alert}
format-background = ${colors.background-alt}