home/.config/polybar/config

272 lines
7.1 KiB
Plaintext
Raw Normal View History

2017-09-05 18:41:31 -05:00
#==================================================
#
# INFO: https://github.com/jaagr/polybar
#
#===================================================
#========================================
# RESOURCES
#========================================
[res/colors]
primary = ${xrdb:color4}
secondary = ${xrdb:color12}
alert = ${xrdb:color3}
background = ${xrdb:background}
background-2 = ${xrdb:bg2}
background-3 = ${xrdb:bg3}
background-4 = ${xrdb:bg4}
foreground = ${xrdb:color15}
foreground-2 = ${xrdb:fg2}
foreground-3 = ${xrdb:fg3}
foreground-4 = ${xrdb:fg4}
2017-07-30 00:04:04 -05:00
[res/fonts]
font-0 = "xos4 Terminus:size=9;2"
2017-12-23 02:47:12 -06:00
font-1 = "Wuncon Siji:size=9;2"
font-2 = "FontAwesome:size=10;2"
2017-12-23 02:47:12 -06:00
font-3 = "Material Design Icons:size=11;3"
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
[template/bar]
2017-09-05 18:41:31 -05:00
# Rendering of the bar
width = 100%
height = 30
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# Module padding and spacing
module-margin = 1
2017-07-30 17:24:27 -05:00
# Mild ricing
background = #00000000
foreground = ${res/colors.foreground}
2017-07-30 17:24:27 -05: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
font-0 = ${res/fonts.font-0}
font-1 = ${res/fonts.font-1}
font-2 = ${res/fonts.font-2}
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]
inherit = template/bar
tray-position = right
2017-07-30 17:24:27 -05:00
modules-left = i3 cpu memory
modules-center = xwindow
modules-right = xbacklight volume battery wlan date
2017-09-05 18:41:31 -05:00
#========================================
# MODULES
#========================================
2017-07-30 00:04:04 -05:00
2017-09-05 18:41:31 -05:00
# COSMETIC
#====================
[module/|]
2017-07-30 00:04:04 -05:00
type = custom/text
content = " "
content-foreground = ${res/colors.background-4}
# OTHER
2017-09-05 18:41:31 -05:00
#====================
2017-07-30 00:04:04 -05:00
[module/i3]
type = internal/i3
format = <label-state><label-mode>
format-prefix = "i3"
format-prefix-padding = 2
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
enable-scroll = false
2017-07-30 00:04:04 -05:00
index-sort = true
label-mode-padding = 2
label-mode-foreground = ${res/colors.background}
label-mode-background = ${res/colors.secondary}
2017-07-30 00:04:04 -05:00
label-focused = %name%
label-focused-padding = ${self.label-mode-padding}
label-focused-foreground = ${self.label-mode-foreground}
label-focused-background = ${res/colors.secondary}
2017-07-30 00:04:04 -05:00
label-visible = ${self.label-focused}
label-visible-padding = ${self.label-mode-padding}
label-visible-background = ${res/colors.background-4}
2017-07-30 00:04:04 -05:00
label-unfocused = ${self.label-focused}
label-unfocused-padding = ${self.label-mode-padding}
label-unfocused-background = ${res/colors.background}
2017-07-30 17:24:27 -05:00
label-urgent = ${self.label-focused}
label-urgent-padding = ${self.label-mode-padding}
label-urgent-background = ${res/colors.alert}
[module/battery]
type = internal/battery
format-charging = <animation-charging><label-charging>
format-discharging = <ramp-capacity><label-discharging>
format-full = <label-full>
format-full-prefix = 
format-full-prefix-padding = 2
format-full-prefix-foreground = ${res/colors.background}
format-full-prefix-background = ${res/colors.alert}
time-format = %H:%M
full-at = 98
interval = 15
label-charging = %percentage%%
label-charging-padding = 2
label-charging-background = ${res/colors.background}
label-discharging = %percentage%% (%time%)
label-discharging-padding = ${self.label-charging-padding}
label-discharging-background = ${res/colors.background}
label-full = %percentage%%
label-full-padding = ${self.label-charging-padding}
label-full-background = ${res/colors.background}
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= 
ramp-capacity-padding = 2
ramp-capacity-foreground = ${res/colors.background}
ramp-capacity-background = ${res/colors.primary}
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}
animation-charging-padding = ${self.ramp-capacity-padding}
animation-charging-foreground = ${self.ramp-capacity-foreground}
animation-charging-background = ${self.ramp-capacity-background}
2017-12-23 02:47:12 -06:00
animation-charging-framerate = 500
[module/cpu]
type = internal/cpu
2017-08-23 01:11:13 -05:00
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
interval = 1
label = %percentage%%
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
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
label = %date% %time%
label-padding = 2
label-background = ${res/colors.background}
2017-07-30 00:04:04 -05:00
[module/memory]
type = internal/memory
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
interval = 1
2017-07-30 00:04:04 -05:00
label = %percentage_used%%
label-padding = 2
label-background = ${res/colors.background}
[module/volume]
type = internal/volume
format-volume = <label-volume>
format-volume-prefix = 
format-volume-prefix-padding = 2
format-volume-prefix-foreground = ${res/colors.background}
format-volume-prefix-background = ${res/colors.primary}
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}
label-muted-foreground = ${res/colors.background-4}
label-muted-background = ${self.label-volume-background}
[module/wlan]
type = internal/network
format-connected = <ramp-signal><label-connected>
format-disconnected = <label-disconnected>
interface = wlp1s0
label-connected = %essid%
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
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-padding = 2
ramp-signal-foreground = ${res/colors.background}
ramp-signal-background = ${res/colors.primary}
[module/xbacklight]
type = internal/xbacklight
format = <label>
format-prefix = 
format-prefix-padding = 2
format-prefix-foreground = ${res/colors.background}
format-prefix-background = ${res/colors.primary}
label = %percentage%%
label-padding = 2
label-background = ${res/colors.background}
[module/xwindow]
type = internal/xwindow
label = %title%
label-padding = 2
label-background = ${res/colors.background}
label-maxlen = 125
label-ellipsis = true
2017-09-05 18:41:31 -05:00
# vim:ft=dosini