2019-06-24 04:44:48 -05:00
|
|
|
# vim:ft=dosini
|
|
|
|
# _ _
|
|
|
|
# _ __ ___ | |_ _| |__ __ _ _ __
|
|
|
|
# | '_ \ / _ \| | | | | '_ \ / _` | '__|
|
|
|
|
# | |_) | (_) | | |_| | |_) | (_| | |
|
|
|
|
# | .__/ \___/|_|\__, |_.__/ \__,_|_|
|
|
|
|
# |_| |___/
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 Vintage Salt <rehashedsalt@cock.li>
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
# https://github.com/jaagr/polybar
|
|
|
|
# https://gitlab.com/rehashedsalt/home
|
|
|
|
#
|
|
|
|
|
|
|
|
# ====================
|
|
|
|
# VARIABLES
|
|
|
|
# ====================
|
|
|
|
[res/colors]
|
|
|
|
# Arc
|
2019-08-22 14:48:11 -05:00
|
|
|
bg-dark = #383C4A
|
|
|
|
bg-light = #404552
|
|
|
|
border = #2B2E39
|
2019-06-24 04:44:48 -05:00
|
|
|
fg = #FFFCF6
|
|
|
|
selection = #5294E2
|
|
|
|
# Nord
|
|
|
|
red = #BF616A
|
|
|
|
green = #A3BE8C
|
|
|
|
yellow = #EBCB8B
|
|
|
|
blue = #81A1C1
|
|
|
|
magenta = #B48EAD
|
|
|
|
cyan = #88C0D0
|
|
|
|
|
|
|
|
[res/config]
|
|
|
|
padding = 2
|
2019-07-04 20:49:52 -05:00
|
|
|
|
|
|
|
[settings]
|
|
|
|
screenchange-reload = true
|
|
|
|
format-padding = ${res/config.padding}
|
|
|
|
format-background = ${res/colors.bg-dark}
|
2019-06-24 04:44:48 -05:00
|
|
|
|
|
|
|
# ====================
|
|
|
|
# BARS
|
|
|
|
# ====================
|
|
|
|
[template/bar]
|
|
|
|
bottom = true
|
|
|
|
wm-restack = ${env:PB_WM_RESTACK:i3}
|
|
|
|
tray-maxsize = 16
|
|
|
|
|
|
|
|
background = ${res/colors.bg-dark}
|
2019-07-04 20:49:52 -05:00
|
|
|
foreground = ${res/colors.fg}
|
2019-06-24 04:44:48 -05:00
|
|
|
border-color = ${res/colors.border}
|
|
|
|
tray-background = ${res/colors.bg-dark}
|
|
|
|
|
|
|
|
height = 32
|
|
|
|
|
|
|
|
font-0 = "Inconsolata:style=Medium:size=10;2"
|
|
|
|
font-1 = "Deja Vu Sans Mono:style=Regular:size=10;2"
|
|
|
|
|
|
|
|
[bar/primary]
|
|
|
|
monitor = ${env:PB_MONITOR:eDP-1}
|
|
|
|
inherit = template/bar
|
|
|
|
border-top-size = 1
|
|
|
|
|
2019-07-04 20:49:52 -05:00
|
|
|
modules-left = i3 cpu memory battery temp
|
2019-08-13 04:42:45 -05:00
|
|
|
modules-center = mpd
|
2019-08-14 00:05:46 -05:00
|
|
|
modules-right = mpd-controls backlight pulse date
|
2019-06-24 04:44:48 -05:00
|
|
|
|
2019-07-28 19:29:28 -05:00
|
|
|
[bar/secondary]
|
|
|
|
monitor = ${env:PB_MONITOR:eDP-1}
|
|
|
|
inherit = template/bar
|
|
|
|
border-top-size = 1
|
|
|
|
|
|
|
|
modules-right = date temp battery memory cpu i3
|
|
|
|
|
2019-06-24 04:44:48 -05:00
|
|
|
# ====================
|
|
|
|
# MODULES
|
|
|
|
# ====================
|
|
|
|
[module/backlight]
|
|
|
|
type = internal/xbacklight
|
|
|
|
format = <ramp> <label>
|
|
|
|
label = %percentage:3%%
|
|
|
|
ramp-foreground = ${res/colors.yellow}
|
|
|
|
ramp-0 = ▁
|
|
|
|
ramp-1 = ▂
|
|
|
|
ramp-2 = ▃
|
|
|
|
ramp-3 = ▄
|
|
|
|
ramp-4 = ▅
|
|
|
|
ramp-5 = ▆
|
|
|
|
ramp-6 = ▇
|
|
|
|
ramp-7 = █
|
|
|
|
|
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
full-at = 100
|
|
|
|
time-format = %H:%M
|
|
|
|
interval = 15
|
|
|
|
|
|
|
|
format-charging = <ramp-capacity> <label-charging>
|
|
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
|
|
format-full = <ramp-capacity> <label-full>
|
|
|
|
label-charging = %percentage:3%%
|
|
|
|
label-discharging = %percentage:3%%
|
|
|
|
ramp-capacity-foreground = ${res/colors.green}
|
|
|
|
ramp-capacity-0 = ▁
|
2019-06-24 06:16:24 -05:00
|
|
|
ramp-capacity-0-foreground = ${res/colors.red}
|
2019-06-24 04:44:48 -05:00
|
|
|
ramp-capacity-1 = ▂
|
2019-06-24 06:16:24 -05:00
|
|
|
ramp-capacity-1-foreground = ${res/colors.red}
|
2019-06-24 04:44:48 -05:00
|
|
|
ramp-capacity-2 = ▃
|
|
|
|
ramp-capacity-3 = ▄
|
|
|
|
ramp-capacity-4 = ▅
|
|
|
|
ramp-capacity-5 = ▆
|
|
|
|
ramp-capacity-6 = ▇
|
|
|
|
ramp-capacity-7 = █
|
|
|
|
|
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
format = <ramp-coreload> <label>
|
|
|
|
label = %percentage:3%%
|
|
|
|
ramp-coreload-foreground = ${res/colors.blue}
|
|
|
|
ramp-coreload-spacing = 1
|
|
|
|
ramp-coreload-0 = ▁
|
|
|
|
ramp-coreload-1 = ▂
|
|
|
|
ramp-coreload-2 = ▃
|
|
|
|
ramp-coreload-3 = ▄
|
|
|
|
ramp-coreload-4 = ▅
|
|
|
|
ramp-coreload-5 = ▆
|
|
|
|
ramp-coreload-5-foreground = ${res/colors.yellow}
|
|
|
|
ramp-coreload-6 = ▇
|
|
|
|
ramp-coreload-6-foreground = ${res/colors.yellow}
|
|
|
|
ramp-coreload-7 = █
|
|
|
|
ramp-coreload-7-foreground = ${res/colors.red}
|
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
date = %a
|
|
|
|
time = %I:%M %p
|
|
|
|
interval = 30
|
|
|
|
format = <label>
|
|
|
|
label = %date% %time%
|
|
|
|
|
|
|
|
[module/i3]
|
|
|
|
type = internal/i3
|
|
|
|
format = <label-state> <label-mode>
|
2019-07-04 20:56:19 -05:00
|
|
|
format-padding = 0
|
2019-06-24 04:44:48 -05:00
|
|
|
enable-scroll = false
|
|
|
|
pin-workspaces = true
|
|
|
|
|
|
|
|
label-mode-padding = ${res/config.padding}
|
|
|
|
label-mode-background = ${res/colors.red}
|
|
|
|
label-focused = %name%
|
|
|
|
label-focused-padding = ${res/config.padding}
|
|
|
|
label-focused-foreground = ${res/colors.fg}
|
|
|
|
label-focused-background = ${res/colors.selection}
|
|
|
|
label-unfocused = %name%
|
2019-07-04 20:49:52 -05:00
|
|
|
label-unfocused-background = ${res/colors.bg-dark}
|
2019-06-24 04:44:48 -05:00
|
|
|
label-unfocused-padding = ${res/config.padding}
|
|
|
|
label-visible = %name%
|
2019-07-04 20:49:52 -05:00
|
|
|
label-visible-background = ${res/colors.bg-light}
|
2019-06-24 04:44:48 -05:00
|
|
|
label-visible-padding = ${res/config.padding}
|
|
|
|
|
|
|
|
[module/memory]
|
|
|
|
type = internal/memory
|
|
|
|
|
|
|
|
format = <ramp-used> <ramp-swap-used> <label>
|
|
|
|
label = %gb_free:8%
|
|
|
|
ramp-used-foreground = ${res/colors.magenta}
|
|
|
|
ramp-used-0 = ▁
|
|
|
|
ramp-used-1 = ▂
|
|
|
|
ramp-used-2 = ▃
|
|
|
|
ramp-used-3 = ▄
|
|
|
|
ramp-used-4 = ▅
|
|
|
|
ramp-used-5 = ▆
|
|
|
|
ramp-used-5-foreground = ${res/colors.yellow}
|
|
|
|
ramp-used-6 = ▇
|
|
|
|
ramp-used-6-foreground = ${res/colors.yellow}
|
|
|
|
ramp-used-7 = █
|
|
|
|
ramp-used-7-foreground = ${res/colors.red}
|
|
|
|
ramp-swap-used-foreground = ${res/colors.magenta}
|
|
|
|
ramp-swap-used-0 = ▁
|
|
|
|
ramp-swap-used-1 = ▂
|
|
|
|
ramp-swap-used-2 = ▃
|
|
|
|
ramp-swap-used-3 = ▄
|
|
|
|
ramp-swap-used-4 = ▅
|
|
|
|
ramp-swap-used-5 = ▆
|
|
|
|
ramp-swap-used-5-foreground = ${res/colors.yellow}
|
|
|
|
ramp-swap-used-6 = ▇
|
|
|
|
ramp-swap-used-6-foreground = ${res/colors.yellow}
|
|
|
|
ramp-swap-used-7 = █
|
|
|
|
ramp-swap-used-7-foreground = ${res/colors.red}
|
|
|
|
|
2019-08-13 04:42:45 -05:00
|
|
|
[module/mpd]
|
|
|
|
type = internal/mpd
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
format-online = <label-song> <label-time>
|
|
|
|
label-song = %artist% - %title%
|
|
|
|
label-offline = mpd is offline
|
|
|
|
|
2019-08-14 00:05:46 -05:00
|
|
|
[module/mpd-controls]
|
|
|
|
type = internal/mpd
|
|
|
|
interval = 1
|
|
|
|
toggle-on-foreground = ${res/colors.fg}
|
|
|
|
toggle-off-foreground = ${res/colors.bg-light}
|
|
|
|
|
|
|
|
format-online = <icon-prev> <toggle> <icon-stop> <icon-next> <icon-repeat> <icon-random> <icon-consume>
|
|
|
|
icon-prev = <<
|
|
|
|
icon-pause = ||
|
|
|
|
icon-play = |>
|
|
|
|
icon-stop = []
|
|
|
|
icon-next = >>
|
|
|
|
icon-repeat = ()
|
|
|
|
icon-random = )(
|
|
|
|
icon-consume = ].
|
|
|
|
|
2019-06-24 04:44:48 -05:00
|
|
|
[module/pulse]
|
|
|
|
type = internal/pulseaudio
|
|
|
|
format-volume = <ramp-volume> <label-volume>
|
|
|
|
format-muted = <ramp-volume> <label-muted>
|
|
|
|
format-muted-foreground = ${res/colors.red}
|
|
|
|
label-muted = %percentage%%
|
|
|
|
label-muted-foreground = ${res/colors.red}
|
|
|
|
ramp-volume-foreground = ${res/colors.cyan}
|
|
|
|
ramp-volume-0 = ▁
|
|
|
|
ramp-volume-1 = ▂
|
|
|
|
ramp-volume-2 = ▃
|
|
|
|
ramp-volume-3 = ▄
|
|
|
|
ramp-volume-4 = ▅
|
|
|
|
ramp-volume-5 = ▆
|
|
|
|
ramp-volume-6 = ▇
|
|
|
|
ramp-volume-7 = █
|
2019-07-04 20:49:52 -05:00
|
|
|
|
|
|
|
[module/temp]
|
|
|
|
type = internal/temperature
|
|
|
|
units = true
|
|
|
|
warn-temperature = 80
|
|
|
|
format = <ramp> <label>
|
|
|
|
format-warn = <ramp> <label-warn>
|
|
|
|
label = %temperature-c:6%
|
|
|
|
label-warn = %temperature-c:6%
|
|
|
|
label-warn-foreground = ${res/colors.red}
|
|
|
|
ramp-foreground = ${res/colors.yellow}
|
|
|
|
ramp-0 = ▁
|
|
|
|
ramp-1 = ▂
|
|
|
|
ramp-2 = ▃
|
|
|
|
ramp-3 = ▄
|
|
|
|
ramp-4 = ▅
|
|
|
|
ramp-5 = ▆
|
|
|
|
ramp-6 = ▇
|
|
|
|
ramp-7 = █
|
|
|
|
ramp-7-foreground = ${res/colors.red}
|