-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolybar.ini
201 lines (165 loc) · 4.44 KB
/
polybar.ini
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
; V A R I A B L E S
[colors]
background = #DA292b2e
foreground = #c0caf5
trans = #DA292b2e
white = #ececec
grey = #333333
pink = #d75f87
blue = #4f97d7
purple = #875faf
green = #20ad80
red = #f7768e
teal = #7dcfff
gray = #414868
lightgreen = #9ece6a
yellow = #e0af68
; B A R S
[bar/main]
background = ${colors.background}
foreground = ${colors.foreground}
fixed-center = true
bottom = false
width = 100%
height = 20
radius = 0.0
offset-y = 0
offset-x = 0
padding = 0
line-size = 3
border-top-size = 4
border-top-color = ${colors.background}
border-bottom-size = 4
border-bottom-color = ${colors.background}
font-0 = "Iosevka Extrabold:style=Bold:size=12;4"
font-1 = "Iosevka Extrabold:style=Bold:size=18;3"
font-2 = "Symbols Nerd Font:style=Bold:size=16;4"
font-3 = Hack:pixelsize:style=Bold=18;3
modules-left = i3
modules-center = music
modules-right = cpu space memory space i3-volume space battery space space wlan space left-color date right-color space
module-margin = 0
tray-position = right
tray-maxsize = 16
tray-offset-x = 0
tray-offset-y = 0
tray-background = ${colors.background}
tray-padding = 5
; M O D U L E S
[module/left-color]
type = custom/text
content = %{T2}%{T-}
content-foreground = ${colors.purple}
[module/right-color]
type = custom/text
content = %{T2}%{T-}
content-foreground = ${colors.purple}
[module/space]
type = custom/text
content = " "
[module/date]
type = internal/date
time = %H:%M
date = %d/%m/%Y
format = <label>
label = %time%
format-background = ${colors.purple}
format-foreground = ${colors.background}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
format-full = <label-full>
label-charging = %percentage%%
label-discharging = %percentage%%
format-charging-foreground = ${colors.lightgreen}
format-discharging-foreground = ${colors.lightgreen}
format-full-foreground = ${colors.lightgreen}
format-charging-background = ${colors.background}
format-discharging-background = ${colors.background}
format-full-background = ${colors.background}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
; y -S i3-volume
[module/i3-volume]
type = custom/script
tail = true
label = %output%
exec = ~/.config/scripts/polybar/i3-volume/volume listen "%i %v \n"
scroll-up = ~/.config/scripts/polybar/i3-volume/volume up 10
scroll-down = ~/.config/scripts/polybar/i3-volume/volume down 10
click-left = ~/.config/scripts/polybar/i3-volume/volume mute
click-right = exec pavucontrol &
format-foreground = ${colors.green}
[module/cpu]
type = internal/cpu
format = <bar-load>
format-foreground = ${colors.blue}
bar-load-width = 10
bar-load-indicator =
bar-load-fill = ━
bar-load-fill-foreground = ${colors.blue}
bar-load-empty = ━
bar-load-empty-foreground = ${colors.foreground}
[module/memory]
type = internal/memory
interval = 3
format = <bar-used>
label = %percentage_used%%
format-foreground = ${colors.purple}
format-margin = 1
bar-used-width = 10
bar-used-indicator =
bar-used-fill = ━
bar-used-fill-foreground = ${colors.purple}
bar-used-empty = ━
bar-used-empty-foreground = ${colors.foreground}
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
enable-click = false
enable-scroll = false
ws-icon-default = " ● "
pin-workspaces = true
label-mode = " %mode% "
label-mode-foreground = ${colors.green}
label-mode-background = ${colors.background}
label-focused = " ● "
label-focused-foreground = ${colors.green}
label-focused-background = ${colors.background}
label-unfocused = "%icon%"
label-unfocused-foreground = ${colors.blue}
label-unfocused-background = ${colors.background}
label-urgent = " ● "
label-urgent-foreground = ${colors.red}
label-urgent-background = ${colors.background}
[module/music]
type = custom/script
interval = 1
content-font = 4
label = %output:0:45:...%
exec = ~/.config/scripts/polybar/poly_music.sh
click-left = cmus-remote --pause
click-right = cmus-remote --next
scroll-up = cmus-remote --volume +5%
scroll-down = cmus-remote --volume -5%
label-background = ${colors.trans}
[module/title]
type = internal/xwindow
format-foreground = ${colors.purple}
format-background = ${colors.trans}
format-padding = 1
label = %title%
label-maxlen = 27