/
polybar.conf
186 lines (164 loc) Β· 4.24 KB
/
polybar.conf
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
[colors]
# Format: [aa]rrggbb
background = #a0000000
foreground = #eaeaea
highlight = #4c7899
warning = #ff3121
focused = #cc5c00
transparent = #00000000
[settings]
screenchange-reload = false
[bar/common]
enable-ipc = true
width = 100%
height = ${env:HEIGHT:}
monitor = ${env:MONITOR:}
monitor-strict = true
dpi = ${env:DPI:}
border-size = 0
tray-position = none
fixed-center = true
module-margin = 1
padding-right = 1
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = Iosevka Term SS18:style=Regular:size=10;4
font-1 = Font Awesome 6 Pro:style=Solid:size=10;4
font-2 = Font Awesome 6 Brands:style=Regular:size=10;4
modules-left = i3
modules-center = date weather
[bar/alone]
inherit = bar/common
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
[bar/primary]
inherit = bar/common
modules-right = battery cpu memory brightness bluetooth network disk dunst micro speaker
[bar/secondary]
inherit = bar/common
modules-center = date
modules-right = micro speaker
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
label-mode-background = ${colors.highlight}
label-mode-padding = 1
label-focused = %name%
label-focused-background = ${colors.focused}
label-focused-padding = 1
label-unfocused = %name%
label-unfocused-padding = 1
label-visible = %name%
label-visible-background = ${colors.highlight}
label-visible-padding = 1
label-urgent = %name%
label-urgent-background = #a00000
label-urgent-padding = 1
# This needs 3.6+
[module/disk]
type = internal/fs
warn-percentage = 94
fixed-values = true
interval = 10
format-unmounted =
format-mounted =
format-warn = <label-warn>
format-warn-foreground = ${colors.warning}
label-warn = π΄ %mountpoint%: %percentage_used%%
include-file = $XDG_RUNTIME_DIR/i3/polybar-filesystems.conf
[module/brightness]
type = internal/backlight
card = ${env:BACKLIGHT:intel_backlight}
format = <ramp> <label>
label = %percentage: 2%%
ramp-0 = ξ
ramp-1 = ξ
enable-scroll = true
use-actual-brightness = true
[module/cpu]
type = internal/cpu
interval = 2
format = <label>
label = %{T2}ο%{T-} %percentage: 2%%
[module/memory]
type = internal/memory
interval = 5
label = οΈ %percentage_used: 2%%
warn-percentage = 90
format-warn = <label>
format-warn-foreground = ${colors.warning}
[module/date]
type = internal/date
interval = 2
date = %B %e
time = %H:%M
label = %date% ξ %time%
[module/battery]
type = internal/battery
poll-interval = 30
format-charging = <label-charging>
label-charging = οΆ %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-full = <label-full>
label-full = ο
format-low = <animation-low> <label-low>
label-low = %percentage%%
label-low-foreground = ${colors.warning}
animation-low-foreground = ${colors.warning}
full-at = 99
low-at = 5
ramp-capacity-0 = ο
ramp-capacity-1 = ο
ramp-capacity-2 = ο
ramp-capacity-3 = ο
ramp-capacity-4 = ο
ramp-capacity-5 = ο
ramp-capacity-6 = ο
ramp-capacity-7 = ο
ramp-capacity-8 = ο
ramp-capacity-9 = ο
animation-low-0 = ο
animation-low-1 = ο
animation-low-2 = ο
animation-low-3 = ο
animation-low-3-foreground = ${colors.transparent}
animation-low-framerate = 500
[module/speaker]
type = internal/pulseaudio
use-ui-max = false
format-volume = <label-volume>
format-muted = <label-muted>
label-volume = ο¨ %percentage: 2%%
label-muted = π %percentage: 2%%
[module/micro]
type = internal/pulseaudio
use-ui-max = false
source = "@DEFAULT_SOURCE@"
format-volume = <label-volume>
format-muted = <label-muted>
label-volume = ο° %percentage: 2%%
label-muted = ο± %percentage: 2%%
# All IPC modules require 3.6+
[module/network]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/network.txt 2> /dev/null
initial = 1
[module/bluetooth]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/bluetooth.txt 2> /dev/null
initial = 1
[module/weather]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/weather.txt 2> /dev/null
initial = 1
click-left = xdg-open https://www.meteoblue.com/en/weather/week
[module/dunst]
type = custom/ipc
hook-0 = cat $XDG_RUNTIME_DIR/i3/dunst.txt 2> /dev/null
initial = 1
click-left = dunstctl set-paused toggle
scroll-down = dunstctl close
scroll-up = dunstctl history-pop