2017-09-05 18:41:31 -05:00
|
|
|
#==================================================
|
|
|
|
#
|
|
|
|
# INFO: https://github.com/jaagr/polybar
|
|
|
|
#
|
|
|
|
#===================================================
|
|
|
|
|
|
|
|
#========================================
|
|
|
|
# RESOURCES
|
|
|
|
#========================================
|
2017-08-01 02:32:02 -05:00
|
|
|
[res/colors]
|
2018-02-06 19:02:18 -06:00
|
|
|
primary = ${xrdb:color12}
|
2018-01-16 23:26:52 -06:00
|
|
|
alert = ${xrdb:color3}
|
2017-09-04 04:31:39 -05:00
|
|
|
|
|
|
|
background = ${xrdb:background}
|
2018-02-08 01:04:14 -06:00
|
|
|
background-alt = ${xrdb:color0}
|
2017-09-08 15:30:50 -05:00
|
|
|
foreground = ${xrdb:color15}
|
2018-02-08 01:04:14 -06:00
|
|
|
foreground-alt = ${xrdb:color10}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2018-01-18 14:57:31 -06:00
|
|
|
[res/config]
|
2018-02-05 14:12:59 -06:00
|
|
|
padding = 3
|
2018-01-18 14:57:31 -06:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[res/fonts]
|
2018-02-05 14:12:59 -06:00
|
|
|
font-0 = "Helvetica CE:size=10;2"
|
|
|
|
font-1 = "Material Design Icons:size=13;3"
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
#========================================
|
|
|
|
# BARS
|
|
|
|
#========================================
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
# TEMPLATE
|
|
|
|
#====================
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[template/bar]
|
2017-09-05 18:41:31 -05:00
|
|
|
# Rendering of the bar
|
2018-02-05 14:12:59 -06:00
|
|
|
width = 40%
|
|
|
|
height = 32
|
|
|
|
offset-y = 10
|
2018-01-31 12:47:48 -06:00
|
|
|
wm-restack = ${env:PB_WM_RESTACK:bspwm}
|
2018-02-05 14:24:29 -06:00
|
|
|
bottom = true
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
# Module padding and spacing
|
2018-02-08 01:01:39 -06:00
|
|
|
padding = ${res/config.padding}
|
2018-02-05 14:12:59 -06:00
|
|
|
module-margin = 2
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2018-02-05 14:12:59 -06:00
|
|
|
# Colors and Borders
|
|
|
|
background = ${res/colors.background}
|
2017-08-01 02:32:02 -05:00
|
|
|
foreground = ${res/colors.foreground}
|
2018-02-05 14:12:59 -06:00
|
|
|
radius=4
|
2018-01-16 23:26:52 -06:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
# Module fonts
|
2017-08-01 02:32:02 -05:00
|
|
|
font-0 = ${res/fonts.font-0}
|
|
|
|
font-1 = ${res/fonts.font-1}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
# BARS
|
|
|
|
#====================
|
2018-02-08 00:54:04 -06:00
|
|
|
[bar/primary-left]
|
2018-02-05 14:12:59 -06:00
|
|
|
monitor = ${env:PB_MONITOR}
|
|
|
|
inherit = template/bar
|
|
|
|
offset-x = 5%
|
|
|
|
|
|
|
|
modules-left = i3 bspwm
|
|
|
|
modules-right = update-arch cpu memory fs-home
|
|
|
|
|
2018-02-08 00:54:04 -06:00
|
|
|
[bar/primary-right]
|
2018-01-20 13:56:55 -06:00
|
|
|
monitor = ${env:PB_MONITOR}
|
2017-08-01 02:32:02 -05:00
|
|
|
inherit = template/bar
|
2018-02-05 14:12:59 -06:00
|
|
|
offset-x = 55%
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2018-02-05 14:12:59 -06:00
|
|
|
modules-left = wlan
|
|
|
|
modules-right = xbacklight volume battery date
|
2017-09-06 19:20:51 -05:00
|
|
|
|
2018-02-08 00:54:04 -06:00
|
|
|
[bar/secondary]
|
2018-01-20 13:56:55 -06:00
|
|
|
monitor = ${env:PB_MONITOR}
|
2018-01-20 13:29:15 -06:00
|
|
|
inherit = template/bar
|
2018-02-05 14:27:36 -06:00
|
|
|
width = 90%
|
2018-02-05 14:12:59 -06:00
|
|
|
offset-x = 5%
|
2018-01-20 13:29:15 -06:00
|
|
|
|
|
|
|
modules-left = i3 bspwm
|
2018-02-05 14:12:59 -06:00
|
|
|
modules-right = xwindow
|
2018-01-20 13:29:15 -06:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
#========================================
|
|
|
|
# MODULES
|
|
|
|
#========================================
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2018-01-17 18:56:13 -06:00
|
|
|
# BORDERS and WHITESPACE
|
2017-09-05 18:41:31 -05:00
|
|
|
#====================
|
2017-08-01 02:32:02 -05:00
|
|
|
[module/|]
|
2017-07-30 00:04:04 -05:00
|
|
|
type = custom/text
|
2018-01-16 23:26:52 -06:00
|
|
|
content = " "
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
# OTHER
|
2017-09-05 18:41:31 -05:00
|
|
|
#====================
|
2018-01-17 21:50:59 -06:00
|
|
|
[module/bspwm]
|
|
|
|
type = internal/bspwm
|
2018-02-05 14:12:59 -06:00
|
|
|
format = <label-state>
|
|
|
|
format-prefix = " "
|
2018-01-17 21:50:59 -06:00
|
|
|
enable-scroll = false
|
|
|
|
pin-workspaces = true
|
|
|
|
|
2018-02-05 14:12:59 -06:00
|
|
|
label-focused = %name%
|
2018-01-18 14:57:31 -06:00
|
|
|
label-focused-padding = ${res/config.padding}
|
2018-01-17 21:50:59 -06:00
|
|
|
label-focused-foreground = ${res/colors.background}
|
2018-02-06 19:02:18 -06:00
|
|
|
label-focused-background = ${res/colors.primary}
|
2018-01-17 21:50:59 -06:00
|
|
|
|
|
|
|
label-dimmed = ${self.label-focused}
|
2018-01-19 12:45:10 -06:00
|
|
|
label-dimmed-padding = ${res/config.padding}
|
2018-01-17 21:50:59 -06:00
|
|
|
label-dimmed-foreground = ${self.label-focused-foreground}
|
2018-01-31 12:48:52 -06:00
|
|
|
label-dimmed-background = ${res/colors.background-alt}
|
2018-01-17 21:50:59 -06:00
|
|
|
|
|
|
|
label-urgent = ${self.label-focused}
|
2018-01-19 12:45:10 -06:00
|
|
|
label-urgent-padding = ${res/config.padding}
|
2018-01-17 21:50:59 -06:00
|
|
|
label-urgent-foreground = ${res/colors.alert}
|
|
|
|
|
2018-02-11 15:25:33 -06:00
|
|
|
label-occupied = ${self.label-focused}
|
|
|
|
label-occupied-padding = ${res/config.padding}
|
|
|
|
|
2018-01-18 15:03:34 -06:00
|
|
|
label-empty = ${self.label-focused}
|
2018-01-19 12:45:10 -06:00
|
|
|
label-empty-padding = ${res/config.padding}
|
2018-02-08 01:04:14 -06:00
|
|
|
label-empty-foreground = ${res/colors.foreground-alt}
|
2018-01-17 21:50:59 -06:00
|
|
|
|
2018-02-05 17:24:48 -06:00
|
|
|
[module/xworkspaces]
|
|
|
|
type = internal/xworkspaces
|
|
|
|
format = <label-state>
|
|
|
|
format-prefix = " "
|
|
|
|
enable-scroll = false
|
|
|
|
pin-workspaces = true
|
|
|
|
|
|
|
|
label-active = %name%
|
|
|
|
label-active-padding = ${res/config.padding}
|
|
|
|
label-active-foreground = ${res/colors.background}
|
2018-02-06 19:02:18 -06:00
|
|
|
label-active-background = ${res/colors.primary}
|
2018-02-05 17:24:48 -06:00
|
|
|
|
|
|
|
label-dimmed = ${self.label-active}
|
|
|
|
label-dimmed-padding = ${res/config.padding}
|
|
|
|
label-dimmed-foreground = ${self.label-active-foreground}
|
2018-02-08 01:04:14 -06:00
|
|
|
label-dimmed-background = ${res/colors.foreground-alt}
|
2018-02-05 17:24:48 -06:00
|
|
|
|
|
|
|
label-urgent = ${self.label-active}
|
|
|
|
label-urgent-padding = ${res/config.padding}
|
|
|
|
label-urgent-foreground = ${res/colors.alert}
|
|
|
|
|
2018-02-11 15:26:13 -06:00
|
|
|
label-occupied = ${self.label-active}
|
|
|
|
label-occupied-padding = ${res/config.padding}
|
|
|
|
|
2018-02-05 17:24:48 -06:00
|
|
|
label-empty = ${self.label-active}
|
|
|
|
label-empty-padding = ${res/config.padding}
|
2018-02-08 01:04:14 -06:00
|
|
|
label-empty-foreground = ${res/colors.foreground-alt}
|
2018-01-19 13:20:14 -06:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
2018-02-05 14:12:59 -06:00
|
|
|
format-charging = <animation-charging> <label-charging>
|
2018-02-08 01:04:14 -06:00
|
|
|
format-charging-foreground = ${res/colors.foreground-alt}
|
2018-02-05 14:12:59 -06:00
|
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
2018-01-16 23:26:52 -06:00
|
|
|
format-full = <label-full>
|
2017-08-21 00:20:12 -05:00
|
|
|
time-format = %H:%M
|
2018-02-05 14:12:59 -06:00
|
|
|
full-at = 95
|
2018-01-16 23:26:52 -06:00
|
|
|
interval = 15
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2017-08-21 00:15:30 -05:00
|
|
|
label-charging = %percentage%%
|
2018-01-21 00:48:27 -06:00
|
|
|
label-discharging = %percentage%%
|
2018-02-05 14:12:59 -06:00
|
|
|
label-full =
|
|
|
|
|
|
|
|
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=
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2017-12-24 01:01:38 -06:00
|
|
|
animation-charging-0 = ${self.ramp-capacity-0}
|
|
|
|
animation-charging-1 = ${self.ramp-capacity-1}
|
|
|
|
animation-charging-2 = ${self.ramp-capacity-2}
|
|
|
|
animation-charging-3 = ${self.ramp-capacity-3}
|
|
|
|
animation-charging-4 = ${self.ramp-capacity-4}
|
|
|
|
animation-charging-5 = ${self.ramp-capacity-5}
|
|
|
|
animation-charging-6 = ${self.ramp-capacity-6}
|
|
|
|
animation-charging-7 = ${self.ramp-capacity-7}
|
|
|
|
animation-charging-8 = ${self.ramp-capacity-8}
|
2018-02-05 14:12:59 -06:00
|
|
|
animation-charging-9 = ${self.ramp-capacity-9}
|
2017-12-23 02:47:12 -06:00
|
|
|
animation-charging-framerate = 500
|
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
2017-08-23 01:11:13 -05:00
|
|
|
format = <label>
|
2018-02-08 01:22:00 -06:00
|
|
|
format-prefix = " "
|
2018-01-16 23:26:52 -06:00
|
|
|
interval = 1
|
|
|
|
|
2017-09-04 04:31:39 -05:00
|
|
|
label = %percentage%%
|
2018-01-16 23:26:52 -06:00
|
|
|
label-background = ${res/colors.background}
|
2017-08-23 01:11:13 -05:00
|
|
|
|
2017-07-30 00:04:04 -05:00
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
2018-01-16 23:26:52 -06:00
|
|
|
format = <label>
|
2017-07-30 19:49:39 -05:00
|
|
|
date = %a
|
|
|
|
time = %I:%M %p
|
2017-09-01 22:54:22 -05:00
|
|
|
interval = 30
|
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
label = %date% %time%
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2018-01-31 19:05:26 -06:00
|
|
|
[module/fs-home]
|
|
|
|
type = internal/fs
|
|
|
|
format-mounted = <label-mounted>
|
2018-02-05 14:12:59 -06:00
|
|
|
format-mounted-prefix = " "
|
2018-01-31 19:05:26 -06:00
|
|
|
mount-0 = /home
|
|
|
|
|
|
|
|
label-mounted = %percentage_used%%
|
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/memory]
|
2017-08-20 23:08:19 -05:00
|
|
|
type = internal/memory
|
|
|
|
format = <label>
|
2018-02-05 14:12:59 -06:00
|
|
|
format-prefix = " "
|
2017-08-01 02:32:02 -05:00
|
|
|
interval = 1
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2018-01-21 00:48:27 -06:00
|
|
|
label = %percentage_used%%
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2018-01-17 13:14:20 -06:00
|
|
|
[module/update-arch]
|
|
|
|
type = custom/script
|
|
|
|
exec = echo `checkupdates | wc -l`
|
|
|
|
exec-if = wget -q --spider http://www.startpage.com/ && uname -r | grep -q "ARCH" && [ `checkupdates | wc -l` != 0 ]
|
2018-02-09 14:02:47 -06:00
|
|
|
format-foreground = ${res/colors.alert}
|
2018-02-05 14:12:59 -06:00
|
|
|
format-prefix = " "
|
2018-01-17 13:14:20 -06:00
|
|
|
interval = 60
|
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/volume]
|
2017-08-20 23:08:19 -05:00
|
|
|
type = internal/volume
|
2018-02-05 14:12:59 -06:00
|
|
|
format-volume = <ramp-volume> <label-volume>
|
2018-01-16 23:26:52 -06:00
|
|
|
format-muted = <label-muted>
|
|
|
|
|
2018-02-05 14:12:59 -06:00
|
|
|
label-muted =
|
2018-02-08 01:04:14 -06:00
|
|
|
label-muted-foreground = ${res/colors.foreground-alt}
|
2018-01-16 23:26:52 -06:00
|
|
|
|
2018-02-05 14:12:59 -06:00
|
|
|
ramp-volume-0 =
|
|
|
|
ramp-volume-1 =
|
|
|
|
ramp-volume-2 =
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/wlan]
|
|
|
|
type = internal/network
|
2018-02-05 14:12:59 -06:00
|
|
|
format-connected = <label-connected>
|
|
|
|
format-connected-prefix = " "
|
2018-01-16 23:26:52 -06:00
|
|
|
format-disconnected = <label-disconnected>
|
|
|
|
interface = wlp1s0
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2017-12-27 15:49:02 -06:00
|
|
|
label-connected = %essid%
|
2018-02-05 14:12:59 -06:00
|
|
|
label-disconnected =
|
2018-02-08 01:04:14 -06:00
|
|
|
label-disconnected-foreground = ${res/colors.foreground-alt}
|
2017-12-27 15:58:51 -06:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/xbacklight]
|
2017-12-27 15:49:02 -06:00
|
|
|
type = internal/xbacklight
|
|
|
|
format = <label>
|
2018-02-05 14:12:59 -06:00
|
|
|
format-prefix = " "
|
2017-08-24 16:51:43 -05:00
|
|
|
|
2017-09-04 04:31:39 -05:00
|
|
|
label = %percentage%%
|
2017-08-24 16:51:43 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/xwindow]
|
2017-08-01 02:32:02 -05:00
|
|
|
type = internal/xwindow
|
|
|
|
label = %title%
|
2018-01-17 22:24:50 -06:00
|
|
|
label-maxlen = 75
|
2017-08-01 02:32:02 -05:00
|
|
|
label-ellipsis = true
|
2017-08-01 02:55:38 -05:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
# vim:ft=dosini
|