config 9.23 KB
Newer Older
1 2 3 4 5
;  ___     _      _
; | _ \___| |_  _| |__  __ _ _ _
; |  _/ _ \ | || | '_ \/ _` | '_|
; |_| \___/_|\_, |_.__/\__,_|_|
;            |__/
6
;
7
; Author: Benedikt Vollmerhaus <[email protected]>
8 9
; License: MIT

10 11 12
;
; \  /_  _ _
;  \/(_|| _)
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
;

[xcolor]
bg     = ${xrdb:color0:#0a0a0a}
fg     = ${xrdb:color7:#c8c8c8}
color1 = ${xrdb:color1:#a54242}
color2 = ${xrdb:color2:#8c9440}
color3 = ${xrdb:color3:#de935f}
color4 = ${xrdb:color4:#5f819d}
color5 = ${xrdb:color5:#85678f}
color6 = ${xrdb:color6:#5e8d87}
color8 = ${xrdb:color8:#373b41}


[color]
base-bg     = #8c0a0a0a
29 30
glyph-bg    = #de0a0a0a
module-bg   = #f00a0a0a
31 32 33 34 35
selected-bg = #dc1a1a1a

text-fg = #c8c8c8
icon-fg = ${xcolor.color1}
bar-fg  = ${xcolor.color3}
36
warn-fg = #821717
37 38 39 40 41 42 43 44 45 46 47


[layout]
icon-font = 2
icon-padding = 1
module-padding = 2

bar-format = %{T4}%fill%%indicator%%{F#dc404040}%empty%%{F-}%{T-}
bar-fill-icon = 


48 49 50
;  __
; |__) _  _ _
; |__)(_|| _)
51
;
52 53

[bar/base]
54
width = 100%
55 56 57 58
height = 28

background = ${color.base-bg}
foreground = ${color.text-fg}
59

60 61
; Size of under-/overlines
line-size = 1
62

63 64
cursor-click = pointer
cursor-scroll = ns-resize
65

66 67
font-0 = M+ 1m:style=Medium:size=10;3

68
; Material Design Icons
69
font-1 = M+ 1m:style=Medium:size=11;3
70
; Powerline Glyphs
71
font-2 = M+ 1m:style=Medium:size=16;3
72

73
; Larger font size for bar fill icons
74
font-3 = M+ 1m:style=Medium:size=12;3
75
; Smaller font size for shorter spaces
76
font-4 = M+ 1m:style=Medium:size=7;3
77 78


79 80
[bar/top-primary]
inherit = bar/base
81
monitor =
82

83 84
modules-left = volume right-end-top left-end-bottom ping right-end-top
modules-right = left-end-top wifi eth right-end-bottom left-end-top date right-end-bottom left-end-top
85 86 87

tray-background = ${color.module-bg}
tray-padding = ${layout.module-padding}
88 89 90
tray-position = right


91 92
[bar/top-secondary]
inherit = bar/top-primary
93 94
monitor = ${env:MONITOR}

95 96
modules-left = volume right-end-top left-end-bottom ping right-end-top
modules-right = left-end-top date
97
tray-position = none
98 99


100 101
[bar/bottom-primary]
inherit = bar/base
102
monitor =
103 104 105
bottom = true

modules-left = i3 right-end-bottom left-end-top xwindow right-end-bottom
106
modules-right = left-end-bottom cpu memory right-end-top left-end-bottom temp battery
107 108 109 110


[bar/bottom-secondary]
inherit = bar/bottom-primary
111
monitor = ${env:MONITOR}
112 113


114 115 116 117
[settings]
screenchange-reload = true

; Global format definitions
118 119 120
format-background = ${color.module-bg}
format-padding = ${layout.module-padding}

121 122 123 124 125 126 127

; A shared prefix format for all modules that support it.
;
; Some modules use different names for their format definitions,
; such as format-NAME-prefix-<property>, which unfortunately do
; not fall back to these unnamed ones and require duplication.
[common-prefix-format]
128 129 130 131 132
format-prefix-font = ${layout.icon-font}
format-prefix-foreground = ${color.icon-fg}
format-prefix-padding-right = ${layout.icon-padding}


133 134 135 136 137 138
;  __
; / _ |    _ |_  _
; \__)|_\/|_)| |_)
;       / |
;
; used as decorative dividers between modules.
139

140
[module/glyph]
141
type = custom/text
142 143
content-font = 3
content-padding = 0
144 145 146 147
content-background = ${color.base-bg}
content-foreground = ${color.glyph-bg}

[module/left-end-top]
148 149
inherit = module/glyph
content = 
150 151

[module/right-end-top]
152 153
inherit = module/glyph
content = 
154 155

[module/left-end-bottom]
156 157
inherit = module/glyph
content = 
158 159

[module/right-end-bottom]
160 161
inherit = module/glyph
content = 
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183


;   __
; .  _)
; | __)
;

[module/i3]
type = internal/i3

index-sort = true
; Don't wrap around when scrolling through workspaces
wrapping-scroll = false
; Only show workspaces on the same output as the bar
pin-workspaces = true
; Split the workspace label on ':' to get its name
strip-wsnumbers = true

ws-icon-default = 
ws-icon-0 = 1:一;
ws-icon-1 = 2:二;ﲵ
ws-icon-2 = 3:三;
184 185
ws-icon-3 = 4:四;
ws-icon-4 = 5:五;
186 187 188 189
ws-icon-5 = 6:六;
ws-icon-6 = 10:〇;ﱘ

format = <label-state><label-mode>
190
format-padding = 0
191 192 193 194 195 196 197 198 199 200 201 202 203

; Active workspace on focused monitor
label-focused = %{T2}%icon%%{T-}  %name%
label-focused-background = ${color.selected-bg}
label-focused-underline = ${xcolor.color1}
label-focused-padding = ${layout.module-padding}

; Active workspace on unfocused monitor
label-visible = ${self.label-focused}
label-visible-background = ${color.module-bg}
label-visible-underline = ${xcolor.color1}
label-visible-padding = ${layout.module-padding}

204 205 206 207 208
; Inactive workspace on any monitor
label-unfocused = ${self.label-focused}
label-unfocused-background = ${color.module-bg}
label-unfocused-padding = ${layout.module-padding}

209 210 211
; Workspace with urgency hint set
label-urgent = ${self.label-focused}
label-urgent-background = ${color.module-bg}
212
label-urgent-underline = ${color.warn-fg}
213 214 215 216
label-urgent-padding = ${layout.module-padding}

label-mode-background = ${color.module-bg}
label-mode-padding = ${layout.module-padding}
217 218 219 220


[module/xwindow]
type = internal/xwindow
221
inherit = common-prefix-format
222

223
label = %title:0:35:...%
224

225 226 227 228 229

; ___
;  | . _ _  _
;  | || | |(/_
;
230 231 232

[module/date]
type = internal/date
233 234 235
inherit = common-prefix-format

label = %date%  %time%
236

237
; Date format is "MM 月 DD 日", smaller font size for spaces
238
date = %m%{T5} %{T-}%{F#404040}月%{F-}%{T5} %{T-}%d%{T5} %{T-}%{F#404040}日%{F-}
239
date-alt = %V%{T5} %{T-}%{F#404040}週%{F-}
240 241 242 243

time = %H:%M
time-alt = %H:%M:%S

244 245 246 247 248 249

;
; |\/| _  _|. _
; |  |(/_(_||(_|
;

250
[module/volume]
251
type = internal/alsa
252

253 254
; Not muted
format-volume = <ramp-volume><bar-volume>
255

256 257 258
ramp-volume-font = ${layout.icon-font}
ramp-volume-foreground = ${color.icon-fg}
ramp-volume-padding-right = ${layout.icon-padding}
259

260
ramp-volume-0 = 
261

262 263 264
; Bar
bar-volume-format = ${layout.bar-format}
bar-volume-foreground-0 = ${color.bar-fg}
265

266 267 268 269
bar-volume-width = 6
bar-volume-fill = ${layout.bar-fill-icon}
bar-volume-indicator =
bar-volume-empty = ${layout.bar-fill-icon}
270

271 272
; Muted
format-muted-foreground = ${xcolor.color3}
273

274 275 276 277
format-muted-prefix = 
format-muted-prefix-font = ${layout.icon-font}
format-muted-prefix-foreground = ${color.icon-fg}
format-muted-prefix-padding-right = ${layout.icon-padding}
278

279
label-muted = ミュート
280 281


282
;
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
; |__| _  _ _|    _  _ _
; |  |(_|| (_|\|/(_|| (/_
;

[module/cpu]
type = internal/cpu
inherit = common-prefix-format

format = <label> <bar-load>
format-prefix = 

label = %percentage:2% %

; Bar
bar-load-format = ${layout.bar-format}
bar-load-gradient = true
bar-load-foreground-0 = ${color.bar-fg}
bar-load-foreground-1 = ${color.bar-fg}
bar-load-foreground-2 = ${color.bar-fg}
bar-load-foreground-3 = ${color.warn-fg}

bar-load-width = 5
bar-load-fill = ${layout.bar-fill-icon}
bar-load-indicator =
bar-load-empty = ${layout.bar-fill-icon}


[module/memory]
type = internal/memory
inherit = common-prefix-format

format-prefix = 
label = %gb_used%


[module/temp]
type = internal/temperature
inherit = common-prefix-format
interval = 2

units = false
warn-temperature = 80

; Normal
format-prefix = 
label = %temperature-c% °C

; Warning
format-warn-underline = ${color.warn-fg}

format-warn-prefix = 
format-warn-prefix-font = ${layout.icon-font}
format-warn-prefix-foreground = ${color.icon-fg}
format-warn-prefix-padding-right = ${layout.icon-padding}

label-warn = ${self.label}
label-warn-foreground = ${color.warn-fg}

341

342 343
[module/battery]
type = internal/battery
344

345 346 347 348 349 350 351 352 353 354
battery = BAT0
adapter = AC

; Discharging
format-discharging = <ramp-capacity><label-discharging>

ramp-capacity-font = ${layout.icon-font}
ramp-capacity-foreground = ${color.icon-fg}
ramp-capacity-padding-right = ${layout.icon-padding}

355 356 357 358 359 360 361 362 363 364 365
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 = 
ramp-capacity-10 = 
366

367
label-discharging = %percentage% %
368 369 370 371 372 373 374 375

; Charging
format-charging = <animation-charging><label-charging>

animation-charging-font = ${layout.icon-font}
animation-charging-foreground = ${color.icon-fg}
animation-charging-padding-right = ${layout.icon-padding}

376 377 378 379 380 381
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-3 = 
animation-charging-4 = 
animation-charging-5 = 
382 383 384 385 386 387 388 389 390 391 392 393

label-charging = ${self.label-discharging}

; Full
format-full-prefix = 
format-full-prefix-font = ${layout.icon-font}
format-full-prefix-foreground = ${color.icon-fg}
format-full-prefix-padding-right = ${layout.icon-padding}

label-full = ${self.label-discharging}


394 395 396 397
;
; |\ | _ _|_    _  _|
; | \|(/_ | \|/(_)| |<
;
398

399 400 401
[module/network]
type = internal/network
interval = 2
402

403 404 405 406
; Connected
format-connected-prefix-font = ${layout.icon-font}
format-connected-prefix-foreground = ${color.icon-fg}
format-connected-prefix-padding-right = ${layout.icon-padding}
407

408 409
; Disconnected
format-disconnected-foreground = ${xcolor.color3}
410

411 412 413
format-disconnected-prefix-font = ${layout.icon-font}
format-disconnected-prefix-foreground = ${color.icon-fg}
format-disconnected-prefix-padding-right = ${layout.icon-padding}
414 415


416 417 418
[module/wifi]
inherit = module/network
interface = ${env:IF_WIFI}
419

420 421
format-connected-prefix = 
label-connected = %essid%
422

423 424
format-disconnected-prefix = 
label-disconnected = なし
425

426

427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445
[module/eth]
inherit = module/network
interface = ${env:IF_ETH}

format-connected-prefix = 
label-connected = %local_ip%

format-disconnected =


[module/ping]
type = custom/script
inherit = common-prefix-format

exec = $HOME/.config/polybar/modules/measure_ping.py
tail = true
click-left = kill -USR1 %pid%

format-prefix = 
446

447
; vim:filetype=dosini
448
; kak:filetype=ini