|
| 1 | +; vim:ft=cfg |
| 2 | +;-------------------------------------------- |
| 3 | +; colors ; |
| 4 | +;-------------------------------------------- |
| 5 | + |
| 6 | +[colors] |
| 7 | + |
| 8 | + bar_bg = ${xrdb:color0} |
| 9 | + bar_fg = ${xrdb:color7} |
| 10 | + |
| 11 | + border_col = ${xrdb:color0} |
| 12 | + |
| 13 | + modules_bg = ${xrdb:color7} |
| 14 | + modules_fg = ${xrdb:color0} |
| 15 | + |
| 16 | + mod_bg = ${xrdb:color7} |
| 17 | + |
| 18 | + modules_prefix_bg = ${xrdb:color7} |
| 19 | + modules_prefix_fg = ${xrdb:color0} |
| 20 | + |
| 21 | + urgent_bg = ${xrdb:color1} |
| 22 | + focused_bg = ${xrdb:color10} |
| 23 | + |
| 24 | + essid_p_bg = ${xrdb:color6} |
| 25 | + down_p_bg = #5e606c |
| 26 | + cpu_p_bg = ${xrdb:color5} |
| 27 | + ram_p_bg = ${xrdb:color11} |
| 28 | + vol_p_bg = #637b81 |
| 29 | + bright_p_bg = #c29f6f |
| 30 | + battery_p_bg = ${xrdb:color9} |
| 31 | + time_p_bg = ${xrdb:color10} |
| 32 | + |
| 33 | +;-------------------------------------------- |
| 34 | +; bars ; |
| 35 | +;-------------------------------------------- |
| 36 | + |
| 37 | +[bar/base] |
| 38 | + dpi = 192 |
| 39 | + width = 100% |
| 40 | + height = 32 |
| 41 | + offset-x = 0 |
| 42 | + offset-y = 0 |
| 43 | + |
| 44 | + bottom = true |
| 45 | + |
| 46 | + background = #000f0f0f |
| 47 | + foreground = ${xrdb:color7} |
| 48 | + |
| 49 | + border-bottom-size = 8 |
| 50 | + border-top-size = 0 |
| 51 | + |
| 52 | + border-left-size = 0 |
| 53 | + border-right-size = 0 |
| 54 | + |
| 55 | + border-bottom-color = #000f0f0f |
| 56 | + border-top-color = ${xrdb:color0} |
| 57 | + |
| 58 | + border-left-color = ${xrdb:color0} |
| 59 | + border-right-colo = ${xrdb:color0} |
| 60 | + |
| 61 | + spacing = 0 |
| 62 | + padding-left = 2 |
| 63 | + padding-right = 4 |
| 64 | + module-margin-left = 0 |
| 65 | + |
| 66 | + font-N = <fontconfig pattern>;<vertical offset> |
| 67 | + font-0 = WunconSiji:size=4;2 |
| 68 | + font-1 = lemon:pixelsize=10;1 |
| 69 | + font-2 = scientifica:pixelsize=10;1 |
| 70 | + font-3 = Kochi Gothic:size=4;1 |
| 71 | + font-4 = "Font Awesome 5 Free:style=Regular:pixelsize=5;3" |
| 72 | + font-5 = "Font Awesome 5 Free:style=Solid:pixelsize=5;3" |
| 73 | + font-6 = "Font Awesome 5 Brands:style=Regular:pixelsize=5;3" |
| 74 | + |
| 75 | + modules-left = paddinglite music previous playpause next |
| 76 | + modules-center = workspaces |
| 77 | + modules-right = battery date |
| 78 | + |
| 79 | + fixed-center = true |
| 80 | + |
| 81 | +;-------------------------------------------- |
| 82 | +; modules ; |
| 83 | +;-------------------------------------------- |
| 84 | + |
| 85 | +[module/network] |
| 86 | + type = internal/network |
| 87 | + interface = wlp3s0 |
| 88 | + ping-interval = 3 |
| 89 | + |
| 90 | +[module/xwindow] |
| 91 | + y-offset = 10 |
| 92 | + type = internal/xwindow |
| 93 | + format = <label> |
| 94 | + label = %title:0:50:% |
| 95 | + label-padding = 1 |
| 96 | + |
| 97 | +[module/date] |
| 98 | + type = internal/date |
| 99 | + interval = 1.0 |
| 100 | + time = "%I:%M %p" |
| 101 | + label = "%time%" |
| 102 | + |
| 103 | + format = <label> |
| 104 | + format-padding = 0 |
| 105 | + |
| 106 | + label-background = ${xrdb:color4} |
| 107 | + label-foreground = ${xrdb:color0} |
| 108 | + label-padding = 3 |
| 109 | + |
| 110 | +[module/previous] |
| 111 | + type = custom/text |
| 112 | + |
| 113 | + content = " " |
| 114 | + content-background = ${xrdb:color2} |
| 115 | + content-foreground = ${xrdb:color0} |
| 116 | + content-padding = 1 |
| 117 | + |
| 118 | + click-left = mpc prev |
| 119 | + |
| 120 | +[module/playpause] |
| 121 | + type = custom/script |
| 122 | + |
| 123 | + exec = sh ~/.config/polybar/playpause.sh |
| 124 | + |
| 125 | + interval= 1 |
| 126 | + |
| 127 | + label = %output% |
| 128 | + label-background = ${xrdb:color2} |
| 129 | + label-foreground = ${xrdb:color0} |
| 130 | + label-padding = 1 |
| 131 | + |
| 132 | + click-left = mpc toggle |
| 133 | + |
| 134 | +[module/next] |
| 135 | + type = custom/text |
| 136 | + |
| 137 | + content = " " |
| 138 | + |
| 139 | + content-background = ${xrdb:color2} |
| 140 | + content-foreground = ${xrdb:color0} |
| 141 | + content-padding = 1 |
| 142 | + |
| 143 | + click-left = mpc next |
| 144 | + |
| 145 | +[module/music] |
| 146 | + type = internal/mpd |
| 147 | + |
| 148 | + host = 127.0.0.1 |
| 149 | + port = 6600 |
| 150 | + |
| 151 | + interval = 2 |
| 152 | + |
| 153 | + format-online = <label-song> |
| 154 | + |
| 155 | + label-song = "%artist% - %title% " |
| 156 | + label-song-padding = 3 |
| 157 | + label-song-background = ${xrdb:color0} |
| 158 | + label-song-foreground = ${xrdb:color7} |
| 159 | + |
| 160 | + format-online-prefix-padding = 1 |
| 161 | + |
| 162 | +[module/battery] |
| 163 | + type = internal/battery |
| 164 | + full-at = 98 |
| 165 | + battery = BAT0 |
| 166 | + adapter = AC0 |
| 167 | + poll-interval = 5 |
| 168 | + |
| 169 | + format-charging = <label-charging> |
| 170 | + |
| 171 | + format-charging-prefix = " " |
| 172 | + format-charging-foreground = ${xrdb:color4} |
| 173 | + format-charging-background = ${xrdb:color0} |
| 174 | + |
| 175 | + label-charging = "%percentage%% " |
| 176 | + label-charging-background = ${xrdb:color0} |
| 177 | + label-charging-foreground = ${xrdb:color7} |
| 178 | + label-charging-padding = 1 |
| 179 | + |
| 180 | + format-discharging = <label-discharging> |
| 181 | + |
| 182 | + format-discharging-prefix = " " |
| 183 | + format-discharging-prefix-foreground = ${xrdb:color4} |
| 184 | + format-discharging-prefix-background = ${xrdb:color0} |
| 185 | + |
| 186 | + label-discharging = "%percentage%% " |
| 187 | + label-discharging-background = ${xrdb:color0} |
| 188 | + label-discharging-foreground = ${xrdb:color7} |
| 189 | + label-discharging-padding = 1 |
| 190 | + |
| 191 | + format-full = <label-full> |
| 192 | + |
| 193 | + format-full-prefix = " " |
| 194 | + format-full-prefix-foreground = ${xrdb:color4} |
| 195 | + format-full-prefix-background = ${xrdb:color0} |
| 196 | + |
| 197 | + label-full = "%percentage%% " |
| 198 | + label-full-background = ${xrdb:color0} |
| 199 | + label-full-foreground = ${xrdb:color7} |
| 200 | + label-full-padding = 1 |
| 201 | + |
| 202 | +[module/volume] |
| 203 | + type = internal/volume |
| 204 | + format-volume = <label-volume> |
| 205 | + |
| 206 | + mapped = true |
| 207 | + |
| 208 | + label-volume = " %percentage%" |
| 209 | + label-volume-background = ${xrdb:color0} |
| 210 | + label-volume-foreground = ${xrdb:color3} |
| 211 | + label-volume-padding = 1 |
| 212 | + |
| 213 | + format-muted = <label-muted> |
| 214 | + |
| 215 | + label-muted = " 0" |
| 216 | + label-muted-background = ${xrdb:color0} |
| 217 | + label-muted-foreground = ${xrdb:color3} |
| 218 | + label-muted-padding = 3 |
| 219 | + |
| 220 | + format-volume-padding = 0 |
| 221 | + format-muted-padding = 0 |
| 222 | + |
| 223 | + ramp-headphones-0 = |
| 224 | + |
| 225 | +[module/cpu] |
| 226 | + type = internal/cpu |
| 227 | + interval = 0.5 |
| 228 | + format = <label> |
| 229 | + label = %percentage%% |
| 230 | + label-background = ${colors.modules_bg} |
| 231 | + label-foreground = ${colors.modules_fg} |
| 232 | + label-padding = 1 |
| 233 | + |
| 234 | + format-prefix = |
| 235 | + |
| 236 | + format-prefix-padding = 1 |
| 237 | + format-prefix-background = ${colors.cpu_p_bg} |
| 238 | + format-prefix-foreground = ${colors.modules_prefix_fg} |
| 239 | + |
| 240 | +[module/ram] |
| 241 | + type = internal/memory |
| 242 | + interval = 3 |
| 243 | + |
| 244 | + format = <label> |
| 245 | + label = "%percentage_used%%" |
| 246 | + label-background = ${colors.modules_bg} |
| 247 | + label-foreground = ${colors.modules_fg} |
| 248 | + label-padding = 1 |
| 249 | + |
| 250 | + format-prefix = |
| 251 | + |
| 252 | + format-prefix-padding = 1 |
| 253 | + format-prefix-background = ${colors.ram_p_bg} |
| 254 | + format-prefix-foreground = ${colors.modules_prefix_fg} |
| 255 | + |
| 256 | + |
| 257 | +[module/essid] |
| 258 | + inherit = module/network |
| 259 | + |
| 260 | + format-connected = <label-connected> |
| 261 | + |
| 262 | + format-connected-prefix = "" |
| 263 | + format-connected-prefix-padding = 1 |
| 264 | + format-connected-prefix-padding-left = 1 |
| 265 | + format-connected-prefix-background = ${xrdb:color0} |
| 266 | + format-connected-prefix-foreground = ${xrdb:color5} |
| 267 | + |
| 268 | + label-connected = "%essid%" |
| 269 | + label-connected-background = ${xrdb:color0} |
| 270 | + label-connected-foreground = ${xrdb:color5} |
| 271 | + label-connected-padding = 1 |
| 272 | + label-connected-padding-right = 1 |
| 273 | + |
| 274 | + ramp-signal-background = ${xrdb:color0} |
| 275 | + ramp-signal-foreground = ${xrdb:color5} |
| 276 | + ramp-connected-foreground = ${xrdb:color5} |
| 277 | + ramp-signal-padding = 1 |
| 278 | + |
| 279 | + format-disconnected = <label-disconnected> |
| 280 | + |
| 281 | + format-disconnected-prefix = "" |
| 282 | + format-disconnected-prefix-padding = 1 |
| 283 | + format-disconnected-prefix-padding-left = 1 |
| 284 | + format-disconnected-prefix-background = ${xrdb:color0} |
| 285 | + format-disconnected-prefix-foreground = ${xrdb:color7} |
| 286 | + |
| 287 | + label-disconnected = "DISCONNECTED" |
| 288 | + label-disconnected-background = ${xrdb:color0} |
| 289 | + label-disconnected-foreground = ${xrdb:color7} |
| 290 | + label-disconnected-padding = 1 |
| 291 | + label-disconnected-padding-right = 1 |
| 292 | + |
| 293 | + |
| 294 | +[module/down] |
| 295 | + inherit = module/network |
| 296 | + |
| 297 | + format-connected = <label-connected> |
| 298 | + |
| 299 | + format-connected-prefix = |
| 300 | + format-connected-prefix-background = ${colors.down_p_bg} |
| 301 | + format-connected-prefix-foreground = ${colors.modules_prefix_fg} |
| 302 | + format-connected-prefix-padding = 1 |
| 303 | + |
| 304 | + label-connected = %{T2}%downspeed:7%%{T-} |
| 305 | + label-connected-background = ${colors.modules_bg} |
| 306 | + label-connected-foreground = ${colors.modules_fg} |
| 307 | + label-connected-padding-right = 1 |
| 308 | + |
| 309 | +[module/padding] |
| 310 | + type = custom/text |
| 311 | + content = | |
| 312 | + content-foreground = ${colors.bg} |
| 313 | + content-background = ${colors.bg} |
| 314 | + |
| 315 | +[module/paddinglite] |
| 316 | + type = custom/text |
| 317 | + content = || |
| 318 | + content-foreground = #000f0f0f |
| 319 | + content-background = #000f0f0f |
| 320 | + |
| 321 | +[module/workspaces] |
| 322 | + |
| 323 | + type = internal/i3 |
| 324 | + format = <label-state> <label-mode> |
| 325 | + index-sort = true |
| 326 | + wrapping-scroll = false |
| 327 | + strip-wsnumbers = true |
| 328 | + |
| 329 | + label-mode-background = ${xrdb:color0} |
| 330 | + label-mode-foreground = ${xrdb:color7} |
| 331 | + label-mode-padding = 3 |
| 332 | + |
| 333 | + label-focused = %name% |
| 334 | + label-focused-background = ${xrdb:color3} |
| 335 | + label-focused-foreground = ${xrdb:color0} |
| 336 | + label-focused-padding = 3 |
| 337 | + |
| 338 | + label-unfocused = %name% |
| 339 | + label-unfocused-background = ${xrdb:color0} |
| 340 | + label-unfocused-foreground = ${xrdb:color7} |
| 341 | + label-unfocused-padding = 3 |
| 342 | + |
| 343 | + label-visible = %name% |
| 344 | + label-visible-background = ${xrdb:color0} |
| 345 | + label-visible-foreground = ${xrdb:color7} |
| 346 | + label-visible-padding = 3 |
| 347 | + |
| 348 | + label-urgent = %name% |
| 349 | + label-urgent-background = ${xrdb:color0} |
| 350 | + label-urgent-foreground = ${xrdb:color7} |
| 351 | + label-urgent-padding = 3 |
| 352 | + |
| 353 | + |
| 354 | +[module/openbox] |
| 355 | + type = internal/xworkspaces |
| 356 | + pin-workspaces = true |
| 357 | + enable-click = false |
| 358 | + enable-scroll = false |
| 359 | + format = <label-state> |
| 360 | + label-monitor = %name% |
| 361 | + label-active = %icon%%name% |
| 362 | + label-active-foreground = ${colors.obfg} |
| 363 | + label-active-background = ${colors.obbg} |
| 364 | + label-active-underline = #fba922 |
| 365 | + label-active-padding = 1 |
| 366 | + label-occupied = %name% |
| 367 | + label-occupied-background = ${colors.obbg} |
| 368 | + label-occupied-padding = 1 |
| 369 | + label-urgent = %index% |
| 370 | + label-urgent-foreground = #000000 |
| 371 | + label-urgent-background = #bd2c40 |
| 372 | + label-urgent-underline = #9b0a20 |
| 373 | + label-empty = %name% |
| 374 | + label-empty-padding = 1 |
| 375 | + label-empty-background = ${colors.obibg} |
| 376 | + label-empty-foreground = ${colors.obifg} |
| 377 | + |
| 378 | +[module/backlight] |
| 379 | + type = internal/backlight |
| 380 | + |
| 381 | + output = LVDS-1 |
| 382 | + |
| 383 | + card = acpi_video0 |
| 384 | + enable-scroll = false |
| 385 | + |
| 386 | + format = <label> |
| 387 | + format-prefix = |
| 388 | + |
| 389 | + format-prefix-padding = 1 |
| 390 | + format-prefix-background = ${colors.cpu_p_bg} |
| 391 | + format-prefix-foreground = ${colors.modules_prefix_fg} |
| 392 | + |
| 393 | + label = %percentage%% |
| 394 | + label-background = ${colors.modules_bg} |
| 395 | + label-foreground = ${colors.modules_fg} |
| 396 | + label-padding = 1 |
0 commit comments