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-01-16 23:26:52 -06:00
|
|
|
primary = ${xrdb:color4}
|
|
|
|
secondary = ${xrdb:color12}
|
|
|
|
alert = ${xrdb:color3}
|
2017-09-04 04:31:39 -05:00
|
|
|
|
2018-01-17 12:15:17 -06:00
|
|
|
icon-battery = ${xrdb:color2}
|
|
|
|
icon-cpu = ${xrdb:color5}
|
|
|
|
icon-memory = ${self.icon-cpu}
|
|
|
|
icon-volume = ${xrdb:color6}
|
|
|
|
icon-xbacklight = ${xrdb:color7}
|
|
|
|
|
2017-09-04 04:31:39 -05:00
|
|
|
background = ${xrdb:background}
|
|
|
|
background-2 = ${xrdb:bg2}
|
|
|
|
background-3 = ${xrdb:bg3}
|
|
|
|
background-4 = ${xrdb:bg4}
|
2017-09-08 15:30:50 -05:00
|
|
|
foreground = ${xrdb:color15}
|
2017-09-04 04:31:39 -05:00
|
|
|
foreground-2 = ${xrdb:fg2}
|
|
|
|
foreground-3 = ${xrdb:fg3}
|
|
|
|
foreground-4 = ${xrdb:fg4}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
[res/fonts]
|
2017-09-17 22:58:06 -05:00
|
|
|
font-0 = "xos4 Terminus:size=9;2"
|
2017-12-23 02:47:12 -06:00
|
|
|
font-1 = "Wuncon Siji:size=9;2"
|
2017-09-17 22:58:06 -05:00
|
|
|
font-2 = "FontAwesome:size=10;2"
|
2017-12-23 02:47:12 -06:00
|
|
|
font-3 = "Material Design Icons:size=11;3"
|
2017-08-01 02:55:38 -05:00
|
|
|
font-4 =
|
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
|
2017-08-01 02:32:02 -05:00
|
|
|
width = 100%
|
2018-01-16 23:26:52 -06:00
|
|
|
height = 30
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-09-05 18:41:31 -05:00
|
|
|
# Module padding and spacing
|
2017-08-02 01:36:48 -05:00
|
|
|
module-margin = 1
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
# Mild ricing
|
|
|
|
background = #00000000
|
2017-08-01 02:32:02 -05:00
|
|
|
foreground = ${res/colors.foreground}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2018-01-17 18:56:13 -06:00
|
|
|
# Invisible border on three sides; it cooperates well with i3
|
2018-01-16 23:26:52 -06:00
|
|
|
border-top = 10
|
|
|
|
border-left = ${self.border-top}
|
|
|
|
border-right = ${self.border-top}
|
|
|
|
border-color = #00000000
|
|
|
|
|
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}
|
|
|
|
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-09-05 18:41:31 -05:00
|
|
|
# BARS
|
|
|
|
#====================
|
2017-08-23 23:26:33 -05:00
|
|
|
[bar/alpha]
|
2017-08-01 02:32:02 -05:00
|
|
|
inherit = template/bar
|
|
|
|
tray-position = right
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2018-01-17 21:50:59 -06:00
|
|
|
modules-left = i3 bspwm cpu memory battery update-arch
|
2018-01-16 23:26:52 -06:00
|
|
|
modules-center = xwindow
|
2018-01-17 19:35:15 -06:00
|
|
|
modules-right = xbacklight volume wlan date
|
2017-09-06 19:20:51 -05: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 = " "
|
2018-01-05 00:16:56 -06:00
|
|
|
content-foreground = ${res/colors.background-4}
|
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
|
|
|
#====================
|
2017-07-30 00:04:04 -05:00
|
|
|
[module/i3]
|
|
|
|
type = internal/i3
|
2018-01-16 23:26:52 -06:00
|
|
|
format = <label-state><label-mode>
|
2018-01-17 21:50:59 -06:00
|
|
|
format-prefix =
|
2018-01-16 23:26:52 -06:00
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
|
|
|
format-prefix-background = ${res/colors.primary}
|
2018-01-05 00:27:11 -06:00
|
|
|
enable-scroll = false
|
2017-07-30 00:04:04 -05:00
|
|
|
index-sort = true
|
2018-01-17 21:50:59 -06:00
|
|
|
pin-workspaces = true
|
2017-07-30 00:04:04 -05:00
|
|
|
|
|
|
|
label-mode-padding = 2
|
2017-08-01 02:32:02 -05:00
|
|
|
label-mode-foreground = ${res/colors.background}
|
2018-01-17 13:07:53 -06:00
|
|
|
label-mode-background = ${res/colors.primary}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
|
|
|
label-focused = %name%
|
2017-08-24 01:25:29 -05:00
|
|
|
label-focused-padding = ${self.label-mode-padding}
|
2018-01-16 23:26:52 -06:00
|
|
|
label-focused-foreground = ${self.label-mode-foreground}
|
|
|
|
label-focused-background = ${res/colors.secondary}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
label-visible = ${self.label-focused}
|
2018-01-16 23:26:52 -06:00
|
|
|
label-visible-padding = ${self.label-mode-padding}
|
|
|
|
label-visible-background = ${res/colors.background-4}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2017-08-01 02:32:02 -05:00
|
|
|
label-unfocused = ${self.label-focused}
|
2018-01-16 23:26:52 -06:00
|
|
|
label-unfocused-padding = ${self.label-mode-padding}
|
|
|
|
label-unfocused-background = ${res/colors.background}
|
2017-07-30 17:24:27 -05:00
|
|
|
|
2017-08-22 23:17:56 -05:00
|
|
|
label-urgent = ${self.label-focused}
|
2018-01-16 23:26:52 -06:00
|
|
|
label-urgent-padding = ${self.label-mode-padding}
|
2017-09-17 20:39:04 -05:00
|
|
|
label-urgent-background = ${res/colors.alert}
|
2017-08-22 23:17:56 -05:00
|
|
|
|
2018-01-17 21:50:59 -06:00
|
|
|
[module/bspwm]
|
|
|
|
type = internal/bspwm
|
|
|
|
format = <label-state>
|
|
|
|
format-prefix =
|
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
|
|
|
format-prefix-background = ${res/colors.primary}
|
|
|
|
enable-scroll = false
|
|
|
|
pin-workspaces = true
|
|
|
|
|
2018-01-17 22:23:37 -06:00
|
|
|
ws-icon-0 = 1;
|
2018-01-17 22:36:09 -06:00
|
|
|
ws-icon-1 = 2;
|
|
|
|
ws-icon-2 = 3;
|
|
|
|
ws-icon-3 = 4;
|
|
|
|
ws-icon-4 = 5;
|
|
|
|
ws-icon-5 = 6;
|
|
|
|
ws-icon-6 = 7;
|
|
|
|
ws-icon-7 = 8;
|
|
|
|
ws-icon-8 = 9;
|
|
|
|
ws-icon-9 = 10;
|
2018-01-17 22:23:37 -06:00
|
|
|
ws-icon-default =
|
2018-01-17 21:50:59 -06:00
|
|
|
|
2018-01-18 00:13:29 -06:00
|
|
|
label-focused = %name%
|
2018-01-17 21:50:59 -06:00
|
|
|
label-focused-padding = 2
|
|
|
|
label-focused-foreground = ${res/colors.background}
|
2018-01-17 22:11:58 -06:00
|
|
|
label-focused-background = ${res/colors.secondary}
|
2018-01-17 21:50:59 -06:00
|
|
|
|
|
|
|
label-dimmed = ${self.label-focused}
|
|
|
|
label-dimmed-padding = ${self.label-focused-padding}
|
|
|
|
label-dimmed-foreground = ${self.label-focused-foreground}
|
|
|
|
label-dimmed-background = ${res/colors.background-4}
|
|
|
|
|
|
|
|
label-occupied = ${self.label-focused}
|
|
|
|
label-occupied-padding = ${self.label-focused-padding}
|
|
|
|
label-occupied-foreground = ${res/colors.foreground}
|
|
|
|
label-occupied-background = ${res/colors.background}
|
|
|
|
|
|
|
|
label-urgent = ${self.label-focused}
|
|
|
|
label-urgent-padding = ${self.label-focused-padding}
|
|
|
|
label-urgent-foreground = ${res/colors.alert}
|
|
|
|
label-urgent-background = ${res/colors.background}
|
|
|
|
|
2018-01-18 00:13:29 -06:00
|
|
|
label-empty =
|
|
|
|
label-empty-padding = 0
|
2018-01-17 21:50:59 -06:00
|
|
|
label-empty-foreground = ${res/colors.background-4}
|
|
|
|
label-empty-background = ${res/colors.background}
|
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/battery]
|
|
|
|
type = internal/battery
|
|
|
|
format-charging = <animation-charging><label-charging>
|
|
|
|
format-discharging = <ramp-capacity><label-discharging>
|
|
|
|
format-full = <label-full>
|
2018-01-18 00:13:57 -06:00
|
|
|
format-full-prefix =
|
|
|
|
format-full-prefix-padding = 2
|
|
|
|
format-full-prefix-foreground = ${res/colors.background}
|
|
|
|
format-full-prefix-background = ${res/colors.alert}
|
2017-08-21 00:20:12 -05:00
|
|
|
time-format = %H:%M
|
2018-01-16 23:26:52 -06:00
|
|
|
full-at = 98
|
|
|
|
interval = 15
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2017-08-21 00:15:30 -05:00
|
|
|
label-charging = %percentage%%
|
2018-01-16 23:26:52 -06:00
|
|
|
label-charging-padding = 2
|
2018-01-17 18:56:13 -06:00
|
|
|
label-charging-foreground = ${res/colors.background-4}
|
2018-01-16 23:26:52 -06:00
|
|
|
label-charging-background = ${res/colors.background}
|
2017-08-21 00:20:12 -05:00
|
|
|
label-discharging = %percentage%% (%time%)
|
2018-01-16 23:26:52 -06:00
|
|
|
label-discharging-padding = ${self.label-charging-padding}
|
|
|
|
label-discharging-background = ${res/colors.background}
|
2018-01-18 00:13:57 -06:00
|
|
|
label-full = %percentage%%
|
|
|
|
label-full-padding = ${self.label-charging-padding}
|
|
|
|
label-full-background = ${res/colors.background}
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2017-12-23 02:47:12 -06:00
|
|
|
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=
|
2018-01-16 23:26:52 -06:00
|
|
|
ramp-capacity-padding = 2
|
|
|
|
ramp-capacity-foreground = ${res/colors.background}
|
2018-01-17 12:15:17 -06:00
|
|
|
ramp-capacity-background = ${res/colors.icon-battery}
|
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-01-16 23:26:52 -06:00
|
|
|
animation-charging-padding = ${self.ramp-capacity-padding}
|
2018-01-17 18:56:13 -06:00
|
|
|
animation-charging-foreground = ${res/colors.background}
|
|
|
|
animation-charging-background = ${res/colors.background-4}
|
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-01-16 23:26:52 -06:00
|
|
|
format-prefix =
|
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
2018-01-17 12:15:17 -06:00
|
|
|
format-prefix-background = ${res/colors.icon-cpu}
|
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-padding = 2
|
|
|
|
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>
|
|
|
|
format-prefix =
|
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
|
|
|
format-prefix-background = ${res/colors.primary}
|
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%
|
|
|
|
label-padding = 2
|
|
|
|
label-background = ${res/colors.background}
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/memory]
|
2017-08-20 23:08:19 -05:00
|
|
|
type = internal/memory
|
|
|
|
format = <label>
|
2018-01-16 23:26:52 -06:00
|
|
|
format-prefix =
|
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
2018-01-17 12:15:17 -06:00
|
|
|
format-prefix-background = ${res/colors.icon-memory}
|
2017-08-01 02:32:02 -05:00
|
|
|
interval = 1
|
2017-07-30 00:04:04 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
label = %percentage_used%%
|
|
|
|
label-padding = 2
|
|
|
|
label-background = ${res/colors.background}
|
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 ]
|
|
|
|
format-prefix =
|
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
|
|
|
format-prefix-background = ${res/colors.alert}
|
|
|
|
interval = 60
|
|
|
|
|
|
|
|
label-padding = 2
|
|
|
|
label-background = ${res/colors.background}
|
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/volume]
|
2017-08-20 23:08:19 -05:00
|
|
|
type = internal/volume
|
2018-01-16 23:26:52 -06:00
|
|
|
format-volume = <label-volume>
|
|
|
|
format-volume-prefix =
|
|
|
|
format-volume-prefix-padding = 2
|
|
|
|
format-volume-prefix-foreground = ${res/colors.background}
|
2018-01-17 12:15:17 -06:00
|
|
|
format-volume-prefix-background = ${res/colors.icon-volume}
|
2018-01-16 23:26:52 -06:00
|
|
|
format-muted = <label-muted>
|
|
|
|
format-muted-prefix =
|
|
|
|
format-muted-prefix-padding = 2
|
|
|
|
format-muted-prefix-foreground = ${res/colors.background}
|
|
|
|
format-muted-prefix-background = ${res/colors.background-4}
|
|
|
|
|
|
|
|
label-volume-padding = 2
|
|
|
|
label-volume-background = ${res/colors.background}
|
|
|
|
|
|
|
|
label-muted-padding = ${self.label-volume-padding}
|
2017-12-16 23:26:16 -06:00
|
|
|
label-muted-foreground = ${res/colors.background-4}
|
2018-01-16 23:26:52 -06:00
|
|
|
label-muted-background = ${self.label-volume-background}
|
2017-08-20 23:08:19 -05:00
|
|
|
|
2018-01-16 23:26:52 -06:00
|
|
|
[module/wlan]
|
|
|
|
type = internal/network
|
|
|
|
format-connected = <ramp-signal><label-connected>
|
|
|
|
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-01-16 23:26:52 -06:00
|
|
|
label-connected-padding = 2
|
|
|
|
label-connected-background = ${res/colors.background}
|
|
|
|
label-disconnected =
|
|
|
|
label-disconnected-padding = 2
|
|
|
|
label-disconnected-foreground = ${res/colors.background}
|
|
|
|
label-disconnected-background = ${res/colors.background-4}
|
2017-12-23 02:47:12 -06:00
|
|
|
|
2017-12-27 15:49:02 -06:00
|
|
|
ramp-signal-0 =
|
|
|
|
ramp-signal-1 =
|
|
|
|
ramp-signal-2 =
|
|
|
|
ramp-signal-3 =
|
|
|
|
ramp-signal-4 =
|
2018-01-16 23:26:52 -06:00
|
|
|
ramp-signal-padding = 2
|
|
|
|
ramp-signal-foreground = ${res/colors.background}
|
|
|
|
ramp-signal-background = ${res/colors.primary}
|
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-01-16 23:26:52 -06:00
|
|
|
format-prefix =
|
|
|
|
format-prefix-padding = 2
|
|
|
|
format-prefix-foreground = ${res/colors.background}
|
2018-01-17 12:15:17 -06:00
|
|
|
format-prefix-background = ${res/colors.icon-xbacklight}
|
2017-08-24 16:51:43 -05:00
|
|
|
|
2017-09-04 04:31:39 -05:00
|
|
|
label = %percentage%%
|
2018-01-16 23:26:52 -06:00
|
|
|
label-padding = 2
|
|
|
|
label-background = ${res/colors.background}
|
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-16 23:26:52 -06:00
|
|
|
label-padding = 2
|
|
|
|
label-background = ${res/colors.background}
|
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
|