2017-08-01 02:47:15 -05:00
|
|
|
;==================================================
|
|
|
|
;
|
|
|
|
; INFO: https://github.com/jaagr/polybar
|
|
|
|
;
|
|
|
|
;===================================================
|
2017-08-01 02:32:02 -05:00
|
|
|
|
|
|
|
;========================================
|
|
|
|
; RESOURCES
|
|
|
|
;========================================
|
|
|
|
[res/colors]
|
2017-07-30 00:04:04 -05:00
|
|
|
background = ${xrdb:background:#1d2021}
|
2017-07-31 14:33:49 -05:00
|
|
|
background-alt = ${xrdb:bg2:#504945}
|
2017-08-01 02:32:02 -05:00
|
|
|
|
2017-07-30 00:04:04 -05:00
|
|
|
foreground = ${xrdb:color15:#ebdbb2}
|
|
|
|
foreground-alt = ${xrdb:color8:#928374}
|
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
alert-dark = ${xrdb:color3:#d79921}
|
|
|
|
alert = ${xrdb:color11:#fabd2f}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
accent-red-dark = ${xrdb:color1:#cc241d}
|
|
|
|
accent-red = ${xrdb:color9:#fb4934}
|
|
|
|
accent-green-dark = ${xrdb:color2:#98971a}
|
|
|
|
accent-green = ${xrdb:color10:#b8bb26}
|
|
|
|
accent-blue-dark = ${xrdb:color4:#458588}
|
|
|
|
accent-blue = ${xrdb:color12:#83a598}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[res/fonts]
|
|
|
|
font-0 = "DejaVu Sans:size=10;1"
|
2017-07-30 00:04:04 -05:00
|
|
|
font-1 = "Overpass:size=10;1"
|
2017-07-30 17:24:27 -05:00
|
|
|
font-2 = "Symbola:size=10;1"
|
2017-08-01 02:55:38 -05:00
|
|
|
font-3 =
|
|
|
|
font-4 =
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
;========================================
|
|
|
|
; BARS
|
|
|
|
;========================================
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; TEMPLATE
|
|
|
|
;====================
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[template/bar]
|
|
|
|
; Rendering of the bar
|
|
|
|
width = 100%
|
|
|
|
height = 24
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Module padding and spacing
|
|
|
|
padding = 2
|
2017-08-02 01:36:48 -05:00
|
|
|
module-margin = 1
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Module colors
|
|
|
|
background = ${res/colors.background}
|
|
|
|
foreground = ${res/colors.foreground}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Module fonts
|
|
|
|
font-0 = ${res/fonts.font-0}
|
|
|
|
font-1 = ${res/fonts.font-1}
|
|
|
|
font-2 = ${res/fonts.font-2}
|
2017-08-01 02:55:38 -05:00
|
|
|
font-3 = ${res/fonts.font-3}
|
|
|
|
font-4 = ${res/fonts.font-4}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; UPPER
|
|
|
|
;====================
|
|
|
|
[bar/top]
|
|
|
|
inherit = template/bar
|
|
|
|
tray-position = right
|
|
|
|
tray-padding = 2
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
modules-left = i3 | xwindow
|
|
|
|
modules-center = date
|
2017-08-02 01:36:48 -05:00
|
|
|
modules-right = wlan-up wlan-down | temperature
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; LOWER
|
|
|
|
;====================
|
|
|
|
[bar/bottom]
|
|
|
|
inherit = template/bar
|
|
|
|
bottom=true
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 19:55:38 -05:00
|
|
|
modules-left = battery cpu memory
|
2017-07-30 17:24:27 -05:00
|
|
|
modules-center = mpd
|
2017-08-01 19:55:38 -05:00
|
|
|
modules-right = xbacklight volume
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
;========================================
|
|
|
|
; MODULES
|
|
|
|
;========================================
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; COSMETIC
|
|
|
|
;====================
|
|
|
|
[module/|]
|
2017-07-30 00:04:04 -05:00
|
|
|
type = custom/text
|
|
|
|
content = "|"
|
2017-08-01 02:32:02 -05:00
|
|
|
content-foreground = ${res/colors.foreground}
|
|
|
|
|
|
|
|
; CUSTOM
|
|
|
|
;====================
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; TEMPLATE
|
|
|
|
;====================
|
|
|
|
[template/module/bar]
|
|
|
|
format = <label> <bar>
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
label = "<TEMPLATE>"
|
|
|
|
label-foreground = ${res/colors.foreground}
|
|
|
|
label-background = ${res/colors.background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-width = 30
|
|
|
|
bar-fill = /
|
|
|
|
bar-fill-foreground = ${res/colors.accent-blue}
|
2017-08-01 19:55:38 -05:00
|
|
|
bar-fill-foreground-progress = ${res/colors.accent-green}
|
2017-08-01 21:05:01 -05:00
|
|
|
bar-fill-foreground-resource-low = ${res/colors.accent-red}
|
|
|
|
bar-fill-foreground-resource-high = ${res/colors.accent-green}
|
2017-08-01 19:55:38 -05:00
|
|
|
bar-fill-foreground-setting = ${res/colors.accent-blue}
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-fill-background = ${res/colors.background}
|
|
|
|
bar-indicator = /
|
|
|
|
bar-indicator-foreground = ${res/colors.foreground}
|
|
|
|
bar-indicator-background = ${res/colors.background}
|
|
|
|
bar-empty = /
|
|
|
|
bar-empty-foreground = ${res/colors.background-alt}
|
|
|
|
bar-empty-background = ${res/colors.background}
|
|
|
|
|
2017-08-02 01:36:48 -05:00
|
|
|
[template/module/network]
|
|
|
|
type = internal/network
|
|
|
|
interface = wlp1s0
|
|
|
|
format-connected = <label-connected>
|
|
|
|
format-connected-foreground = ${res/colors.foreground}
|
|
|
|
format-connected-background = ${res/colors.background}
|
|
|
|
format-disconnected = <label-disconnected>
|
|
|
|
format-disconnected-foreground = ${res/colors.accent-red}
|
|
|
|
format-disconnected-background = ${res/colors.background}
|
|
|
|
|
|
|
|
label-connected = %upspeed% %downspeed% - %signal%%
|
|
|
|
label-disconnected =
|
|
|
|
|
|
|
|
interval = 1
|
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; STOCK
|
|
|
|
;====================
|
2017-07-30 00:04:04 -05:00
|
|
|
[module/i3]
|
|
|
|
type = internal/i3
|
|
|
|
format = <label-state> <label-mode>
|
|
|
|
index-sort = true
|
|
|
|
|
|
|
|
label-mode-padding = 2
|
2017-08-01 02:32:02 -05:00
|
|
|
label-mode-foreground = ${res/colors.background}
|
|
|
|
label-mode-background = ${res/colors.accent-green}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Active workspace on focused monitor
|
2017-07-30 00:04:04 -05:00
|
|
|
label-focused = %name%
|
|
|
|
label-focused-padding = 2
|
2017-08-01 02:32:02 -05:00
|
|
|
label-focused-foreground = ${res/colors.background}
|
|
|
|
label-focused-background = ${res/colors.accent-green}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Active workspace on unfocused monitor
|
|
|
|
label-visible = ${self.label-focused}
|
2017-07-30 00:04:04 -05:00
|
|
|
label-visible-padding = ${self.label-focused-padding}
|
2017-08-01 02:32:02 -05:00
|
|
|
label-visible-foreground = ${self.label-focused-foreground}
|
|
|
|
label-visible-background = ${res/colors.accent-green-dark}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Inactive workspace
|
|
|
|
label-unfocused = ${self.label-focused}
|
|
|
|
label-unfocused-padding = ${self.label-focused-padding}
|
|
|
|
label-unfocused-foreground = ${res/colors.foreground}
|
|
|
|
label-unfocused-background = ${res/colors.background}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
; Urgent workspace
|
|
|
|
label-urgent = ${self.label-focused}
|
2017-08-03 23:12:35 -05:00
|
|
|
label-urgent-padding = ${self.label-focused-padding}
|
2017-08-01 02:32:02 -05:00
|
|
|
label-urgent-foreground = ${res/colors.background}
|
|
|
|
label-urgent-background = ${res/colors.alert}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
battery = BAT0
|
|
|
|
adapter = AC
|
|
|
|
full-at = 95
|
|
|
|
format-charging = <label-charging> <bar-capacity>
|
|
|
|
format-discharging = <label-discharging> <bar-capacity>
|
|
|
|
format-full = <label-full> <bar-capacity>
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
label-charging = "CHR"
|
|
|
|
label-charging-foreground = ${template/module/bar.label-foreground}
|
|
|
|
label-charging-background = ${template/module/bar.label-background}
|
|
|
|
label-discharging = "BAT"
|
2017-08-01 19:55:38 -05:00
|
|
|
label-discharging-foreground = ${template/module/bar.label-foreground}
|
2017-08-01 02:32:02 -05:00
|
|
|
label-discharging-background = ${template/module/bar.label-background}
|
|
|
|
label-full = "CHR"
|
2017-08-01 19:55:38 -05:00
|
|
|
label-full-foreground = ${res/colors.accent-green}
|
2017-08-01 02:32:02 -05:00
|
|
|
label-full-background = ${template/module/bar.label-background}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-capacity-width = ${template/module/bar.bar-width}
|
|
|
|
bar-capacity-fill = ${template/module/bar.bar-fill}
|
2017-08-01 21:05:01 -05:00
|
|
|
bar-capacity-fill-foreground = ${template/module/bar.bar-fill-foreground-resource-high}
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-capacity-fill-background = ${template/module/bar.bar-fill-background}
|
|
|
|
bar-capacity-indicator = ${template/module/bar.bar-indicator}
|
|
|
|
bar-capacity-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
|
|
|
|
bar-capacity-indicator-background = ${template/module/bar.bar-indicator-background}
|
|
|
|
bar-capacity-empty = ${template/module/bar.bar-empty}
|
|
|
|
bar-capacity-empty-foreground = ${template/module/bar.bar-empty-foreground}
|
|
|
|
bar-capacity-empty-background = ${template/module/bar.bar-empty-background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
interval = 60
|
2017-07-30 00:04:04 -05:00
|
|
|
|
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
|
|
|
format = <label> <bar-load>
|
2017-08-01 02:32:02 -05:00
|
|
|
|
2017-07-30 00:04:04 -05:00
|
|
|
label = "CPU"
|
2017-08-01 02:32:02 -05:00
|
|
|
label-foreground = ${template/module/bar.label-foreground}
|
|
|
|
label-background = ${template/module/bar.label-background}
|
|
|
|
|
|
|
|
bar-load-width = ${template/module/bar.bar-width}
|
|
|
|
bar-load-fill = ${template/module/bar.bar-fill}
|
2017-08-01 21:05:01 -05:00
|
|
|
bar-load-fill-foreground = ${template/module/bar.bar-fill-foreground-resource-low}
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-load-fill-background = ${template/module/bar.bar-fill-background}
|
|
|
|
bar-load-indicator = ${template/module/bar.bar-indicator}
|
|
|
|
bar-load-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
|
|
|
|
bar-load-indicator-background = ${template/module/bar.bar-indicator-background}
|
|
|
|
bar-load-empty = ${template/module/bar.bar-empty}
|
|
|
|
bar-load-empty-foreground = ${template/module/bar.bar-empty-foreground}
|
|
|
|
bar-load-empty-background = ${template/module/bar.bar-empty-background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
|
2017-07-30 19:49:39 -05:00
|
|
|
date = %a
|
|
|
|
time = %I:%M %p
|
2017-08-01 02:32:02 -05:00
|
|
|
date-alt = %A, %B %d
|
2017-07-30 19:49:39 -05:00
|
|
|
time-alt = %I:%M %p
|
2017-07-30 00:04:04 -05:00
|
|
|
|
|
|
|
label = %date% %time%
|
2017-08-01 02:32:02 -05:00
|
|
|
label-foreground = ${res/colors.foreground}
|
|
|
|
label-background = ${res/colors.background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
interval = 30
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[module/memory]
|
|
|
|
type = internal/memory
|
|
|
|
format = <label> <bar-used>
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
label = "MEM"
|
|
|
|
label-foreground = ${template/module/bar.label-foreground}
|
|
|
|
label-background = ${template/module/bar.label-background}
|
|
|
|
|
|
|
|
bar-used-width = ${template/module/bar.bar-width}
|
|
|
|
bar-used-fill = ${template/module/bar.bar-fill}
|
2017-08-01 21:05:01 -05:00
|
|
|
bar-used-fill-foreground = ${template/module/bar.bar-fill-foreground-resource-low}
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-used-fill-background = ${template/module/bar.bar-fill-background}
|
|
|
|
bar-used-indicator = ${template/module/bar.bar-indicator}
|
|
|
|
bar-used-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
|
|
|
|
bar-used-indicator-background = ${template/module/bar.bar-indicator-background}
|
|
|
|
bar-used-empty = ${template/module/bar.bar-empty}
|
|
|
|
bar-used-empty-foreground = ${template/module/bar.bar-empty-foreground}
|
|
|
|
bar-used-empty-background = ${template/module/bar.bar-empty-background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
interval = 1
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[module/mpd]
|
|
|
|
type = internal/mpd
|
|
|
|
format-online = <label-song> <bar-progress> <label-time>
|
|
|
|
format-offline = <label-offline>
|
|
|
|
|
|
|
|
label-song = %title%
|
|
|
|
label-song-foreground = ${res/colors.foreground}
|
|
|
|
label-song-background = ${res/colors.background}
|
|
|
|
label-song-maxlen = 25
|
|
|
|
label-song-ellipsis = true
|
|
|
|
|
|
|
|
label-offline = "SALT"
|
|
|
|
label-offline-foreground = ${res/colors.foreground}
|
|
|
|
label-offline-background = ${res/colors.background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
label-time = %elapsed%/%total%
|
|
|
|
label-time-foreground = ${res/colors.foreground}
|
|
|
|
label-time-background = ${res/colors.background}
|
|
|
|
|
|
|
|
bar-progress-width = 100
|
|
|
|
bar-progress-fill = ${template/module/bar.bar-fill}
|
2017-08-01 19:55:38 -05:00
|
|
|
bar-progress-fill-foreground = ${template/module/bar.bar-fill-foreground-progress}
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-progress-fill-background = ${template/module/bar.bar-fill-background}
|
|
|
|
bar-progress-indicator = ${template/module/bar.bar-indicator}
|
|
|
|
bar-progress-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
|
|
|
|
bar-progress-indicator-background = ${template/module/bar.bar-indicator-background}
|
|
|
|
bar-progress-empty = ${template/module/bar.bar-empty}
|
|
|
|
bar-progress-empty-foreground = ${template/module/bar.bar-empty-foreground}
|
|
|
|
bar-progress-empty-background = ${template/module/bar.bar-empty-background}
|
|
|
|
|
|
|
|
interval = 1
|
2017-07-30 00:04:04 -05:00
|
|
|
|
|
|
|
[module/temperature]
|
|
|
|
type = internal/temperature
|
|
|
|
thermal-zone = 0
|
|
|
|
warn-temperature = 60
|
|
|
|
format = <label>
|
|
|
|
format-warn = <label-warn>
|
|
|
|
|
|
|
|
label = %temperature%
|
2017-08-03 23:33:44 -05:00
|
|
|
label-padding = 2
|
2017-08-01 02:32:02 -05:00
|
|
|
label-foreground = ${res/colors.foreground}
|
|
|
|
label-background = ${res/colors.background}
|
2017-07-30 00:04:04 -05:00
|
|
|
label-warn = %temperature%
|
2017-08-03 23:33:44 -05:00
|
|
|
label-warn-padding = ${self.label-padding}
|
2017-08-01 02:32:02 -05:00
|
|
|
label-warn-foreground = ${res/colors.background}
|
2017-08-03 23:33:44 -05:00
|
|
|
label-warn-background = ${res/colors.alert}
|
2017-08-01 02:32:02 -05:00
|
|
|
|
|
|
|
[module/volume]
|
|
|
|
type = internal/volume
|
|
|
|
format-volume = <label-volume> <bar-volume>
|
|
|
|
format-muted = <label-muted> <bar-volume>
|
|
|
|
|
|
|
|
label-volume = "VOL"
|
|
|
|
label-volume-foreground = ${template/module/bar.label-foreground}
|
|
|
|
label-volume-background = ${template/module/bar.label-background}
|
|
|
|
label-muted = "VOL"
|
|
|
|
label-muted-foreground = ${res/colors.foreground-alt}
|
|
|
|
label-muted-background = ${template/module/bar.label-background}
|
|
|
|
|
|
|
|
bar-volume-width = ${template/module/bar.bar-width}
|
|
|
|
bar-volume-fill = ${template/module/bar.bar-fill}
|
2017-08-01 19:55:38 -05:00
|
|
|
bar-volume-fill-foreground = ${template/module/bar.bar-fill-foreground-setting}
|
2017-08-01 02:32:02 -05:00
|
|
|
bar-volume-fill-background = ${template/module/bar.bar-fill-background}
|
|
|
|
bar-volume-indicator = ${template/module/bar.bar-indicator}
|
|
|
|
bar-volume-indicator-foreground = ${template/module/bar.bar-indicator-foreground}
|
|
|
|
bar-volume-indicator-background = ${template/module/bar.bar-indicator-background}
|
|
|
|
bar-volume-empty = ${template/module/bar.bar-empty}
|
|
|
|
bar-volume-empty-foreground = ${template/module/bar.bar-empty-foreground}
|
|
|
|
bar-volume-empty-background = ${template/module/bar.bar-empty-background}
|
|
|
|
|
|
|
|
interval = 1
|
|
|
|
|
2017-08-02 01:36:48 -05:00
|
|
|
[module/wlan-up]
|
|
|
|
inherit = template/module/network
|
|
|
|
label-connected = %upspeed%
|
|
|
|
label-connected-foreground = ${res/colors.accent-blue}
|
|
|
|
label-disconnected = %ifname% Disconnected
|
2017-08-01 02:32:02 -05:00
|
|
|
|
2017-08-02 01:36:48 -05:00
|
|
|
[module/wlan-down]
|
|
|
|
inherit = template/module/network
|
|
|
|
label-connected = %downspeed%
|
|
|
|
label-connected-foreground = ${res/colors.accent-blue-dark}
|
2017-08-01 02:32:02 -05:00
|
|
|
|
|
|
|
[module/xbacklight]
|
|
|
|
type = internal/xbacklight
|
|
|
|
inherit = template/module/bar
|
|
|
|
label = BRI
|
2017-08-01 19:55:38 -05:00
|
|
|
bar-fill-foreground = ${template/module/bar.bar-fill-foreground-setting}
|
2017-08-01 02:32:02 -05:00
|
|
|
|
|
|
|
[module/xwindow]
|
|
|
|
type = internal/xwindow
|
|
|
|
label = %title%
|
|
|
|
label-maxlen = 75
|
|
|
|
label-ellipsis = true
|
2017-08-01 02:55:38 -05:00
|
|
|
|