home/.config/polybar/config

399 lines
12 KiB
Plaintext
Raw Normal View History

2017-09-05 18:41:31 -05:00
#==================================================
#
# INFO: https://github.com/jaagr/polybar
#
#===================================================
#========================================
# RESOURCES
#========================================
[res/colors]
2018-05-06 01:45:35 -05:00
primary = ${xrdb:color4}
secondary = ${xrdb:color12}
alert = ${xrdb:color3}
2018-05-09 00:36:42 -05:00
warning = ${xrdb:color1}
2018-05-06 01:45:35 -05:00
icon-battery = ${xrdb:color7}
icon-cpu = ${xrdb:color4}
icon-date = ${xrdb:color7}
icon-fs = ${xrdb:color2}
icon-memory = ${xrdb:color5}
icon-volume = ${xrdb:color7}
icon-wlan = ${xrdb:color6}
icon-wm = ${xrdb:color7}
icon-xbacklight = ${xrdb:color7}
2018-05-08 23:31:12 -05:00
icon-xwindow = ${xrdb:color7}
2018-05-06 01:45:35 -05:00
background = ${xrdb:background}
2018-05-06 01:45:35 -05:00
background-alt = ${xrdb:color10}
foreground = ${xrdb:color15}
2018-05-09 00:36:42 -05:00
foreground-light = ${xrdb:color8}
2017-07-30 00:04:04 -05:00
2018-01-18 14:57:31 -06:00
[res/config]
2018-05-06 01:45:35 -05:00
padding = 2
2018-01-18 14:57:31 -06:00
[res/fonts]
2018-05-06 02:04:42 -05:00
font-0 = "Terminus:size=9;2"
2018-05-06 12:37:20 -05:00
font-1 = "Siji:size=9;2"
2018-05-06 01:45:35 -05:00
font-2 = "FontAwesome:size=10;2"
font-3 = "Material Design Icons:size=11;3"
2018-05-06 12:37:20 -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
[template/bar]
2017-09-05 18:41:31 -05:00
# Rendering of the bar
2018-05-06 01:45:35 -05:00
width = 100%
height = 30
2018-01-31 12:47:48 -06:00
wm-restack = ${env:PB_WM_RESTACK:bspwm}
2017-07-30 17:24:27 -05:00
2017-09-05 18:41:31 -05:00
# Module padding and spacing
2018-05-06 01:45:35 -05:00
module-margin = 1
2017-07-30 17:24:27 -05:00
2018-05-06 01:45:35 -05:00
# Mild ricing
background = #00000000
foreground = ${res/colors.foreground}
2018-05-06 01:45:35 -05:00
# Invisible border on three sides; it cooperates well with i3
border-top-size = 10
border-left-size = ${self.border-top-size}
border-right-size = ${self.border-top-size}
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}
2018-05-06 01:45:35 -05:00
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
#====================
2018-05-06 01:45:35 -05:00
[bar/primary-top]
2018-05-06 02:15:38 -05:00
monitor = ${env:PB_MONITOR:eDP-1}
inherit = template/bar
2018-05-08 23:31:12 -05:00
modules-left = bspwm cpu memory fs-home
modules-center =
2018-05-06 01:45:35 -05:00
modules-right = wlan xbacklight volume battery date
2018-05-06 01:45:35 -05:00
[bar/secondary-top]
2018-01-20 13:56:55 -06:00
monitor = ${env:PB_MONITOR}
inherit = template/bar
modules-left = i3 bspwm
2018-05-06 01:45:35 -05:00
modules-center = xwindow
modules-right =
2017-09-05 18:41:31 -05:00
#========================================
# MODULES
#========================================
2017-07-30 00:04:04 -05:00
# BORDERS and WHITESPACE
2017-09-05 18:41:31 -05:00
#====================
[module/|]
2017-07-30 00:04:04 -05:00
type = custom/text
content = " "
2018-05-06 01:45:35 -05:00
content-foreground = ${res/colors.background-alt}
# OTHER
2017-09-05 18:41:31 -05:00
#====================
2018-05-06 01:45:35 -05:00
[module/i3]
type = internal/i3
format = <label-state><label-mode>
format-prefix = i3
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.icon-wm}
enable-scroll = false
2018-05-06 01:45:35 -05:00
index-sort = true
pin-workspaces = true
2018-05-06 01:45:35 -05:00
label-mode-padding = ${res/config.padding}
label-mode-foreground = ${res/colors.background}
label-mode-background = ${res/colors.icon-wm}
label-focused = %name%
2018-01-18 14:57:31 -06:00
label-focused-padding = ${res/config.padding}
2018-05-06 01:45:35 -05:00
label-focused-foreground = ${self.label-mode-foreground}
label-focused-background = ${res/colors.secondary}
2018-05-06 01:45:35 -05:00
label-visible = ${self.label-focused}
label-visible-padding = ${res/config.padding}
label-visible-background = ${res/colors.background-alt}
label-unfocused = ${self.label-focused}
label-unfocused-padding = ${res/config.padding}
label-unfocused-background = ${res/colors.background}
label-urgent = ${self.label-focused}
2018-01-19 12:45:10 -06:00
label-urgent-padding = ${res/config.padding}
2018-05-06 01:45:35 -05:00
label-urgent-background = ${res/colors.alert}
2018-05-06 01:45:35 -05:00
[module/bspwm]
type = internal/bspwm
format = <label-state><label-mode>
format-prefix = b
format-prefix-padding = 2
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.icon-wm}
enable-scroll = false
pin-workspaces = true
2018-05-06 01:45:35 -05:00
ws-icon-0 = 1;
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-default = 
label-monocle = 
label-monocle-padding = ${res/config.padding}
label-monocle-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-monocle-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-tiled = 
label-tiled-padding = ${res/config.padding}
label-tiled-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-tiled-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-fullscreen = 
label-fullscreen-padding = ${res/config.padding}
label-fullscreen-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-fullscreen-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-floating = 
label-floating-padding = ${res/config.padding}
label-floating-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-floating-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-pseudotiled = 
label-pseudotiled-padding = ${res/config.padding}
label-pseudotiled-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-pseudotiled-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-locked = 
label-locked-padding = ${res/config.padding}
label-locked-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-locked-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-sticky = 
label-sticky-padding = ${res/config.padding}
label-sticky-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-sticky-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-private = 
label-private-padding = ${res/config.padding}
label-private-background = ${res/colors.icon-wm}
2018-05-09 00:36:42 -05:00
label-private-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-focused = %icon%
label-focused-padding = ${res/config.padding}
label-focused-foreground = ${res/colors.background}
label-focused-background = ${res/colors.secondary}
2018-05-06 01:45:35 -05:00
label-dimmed = ${self.label-focused}
label-dimmed-padding = ${res/config.padding}
2018-05-06 01:45:35 -05:00
label-dimmed-foreground = ${self.label-focused-foreground}
label-dimmed-background = ${res/colors.background-alt}
label-occupied = ${self.label-focused}
label-occupied-padding = ${res/config.padding}
label-occupied-foreground = ${res/colors.foreground}
label-occupied-background = ${res/colors.background}
2018-05-06 01:45:35 -05:00
label-urgent = ${self.label-focused}
label-urgent-padding = ${res/config.padding}
label-urgent-foreground = ${res/colors.alert}
2018-05-06 01:45:35 -05:00
label-urgent-background = ${res/colors.background}
2018-05-06 01:45:35 -05:00
label-empty = ${self.label-focused}
label-empty-padding = ${res/config.padding}
2018-05-06 01:45:35 -05:00
label-empty-foreground = ${res/colors.background-alt}
label-empty-background = ${res/colors.background}
[module/battery]
type = internal/battery
2018-05-06 01:45:35 -05:00
format-charging = <ramp-capacity>
format-charging-background = ${res/colors.background-alt}
format-discharging = <ramp-capacity><label-discharging>
format-discharging-background = ${res/colors.icon-battery}
format-full = <label-full>
time-format = %H:%M
2018-05-06 01:45:35 -05:00
full-at = 98
interval = 15
label-charging = %percentage%%
2018-05-06 01:45:35 -05:00
label-charging-padding = ${res/config.padding}
label-charging-foreground = ${res/colors.background-alt}
label-charging-background = ${res/colors.background}
label-discharging = %percentage%%
2018-05-06 01:45:35 -05:00
label-discharging-padding = ${self.label-charging-padding}
label-discharging-background = ${res/colors.background}
2018-05-17 14:59:27 -05:00
label-full = 
2018-05-06 01:45:35 -05:00
label-full-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
label-full-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-full-background = ${res/colors.alert}
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 = ${res/config.padding}
2018-05-09 00:36:42 -05:00
ramp-capacity-foreground = ${res/colors.foreground-light}
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-05-06 01:45:35 -05:00
animation-charging-padding = ${self.ramp-capacity-padding}
2018-05-09 00:36:42 -05:00
animation-charging-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
animation-charging-background = ${res/colors.background-alt}
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>
2018-05-06 01:45:35 -05:00
format-prefix = 
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.icon-cpu}
interval = 1
label = %percentage%%
2018-05-06 01:45:35 -05:00
label-padding = ${res/config.padding}
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>
2018-05-06 01:45:35 -05:00
format-prefix = 
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.icon-date}
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%
2018-05-06 01:45:35 -05:00
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
2017-07-30 00:04:04 -05:00
[module/fs-home]
type = internal/fs
format-mounted = <label-mounted>
2018-05-06 01:45:35 -05:00
format-mounted-prefix = 
format-mounted-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-mounted-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-mounted-prefix-background = ${res/colors.icon-fs}
mount-0 = /home
label-mounted = %percentage_used%%
2018-05-06 01:45:35 -05:00
label-mounted-padding = ${res/config.padding}
label-mounted-background = ${res/colors.background}
[module/memory]
type = internal/memory
format = <label>
2018-05-06 01:45:35 -05:00
format-prefix = 
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.icon-memory}
interval = 1
2017-07-30 00:04:04 -05:00
label = %percentage_used%%
2018-05-06 01:45:35 -05:00
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[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-05-06 01:45:35 -05:00
format-prefix = 
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.alert}
interval = 60
2018-05-06 01:45:35 -05:00
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/volume]
type = internal/volume
2018-05-06 01:45:35 -05:00
format-volume = <label-volume>
format-volume-prefix = 
format-volume-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-volume-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-volume-prefix-background = ${res/colors.icon-volume}
format-muted = <label-muted>
2018-05-06 01:45:35 -05:00
label-volume-padding = ${res/config.padding}
label-volume-background = ${res/colors.background}
2018-05-06 01:45:35 -05:00
label-muted = 
label-muted-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
label-muted-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-muted-background = ${res/colors.background-alt}
[module/wlan]
type = internal/network
2018-05-06 01:45:35 -05:00
format-connected = <ramp-signal><label-connected>
format-disconnected = <label-disconnected>
interface = wlp1s0
label-connected = %essid%
2018-05-06 01:45:35 -05:00
label-connected-padding = ${res/config.padding}
label-connected-background = ${res/colors.background}
label-disconnected = 
label-disconnected-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
label-disconnected-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
label-disconnected-background = ${res/colors.background-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
ramp-signal-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
ramp-signal-background = ${res/colors.icon-wlan}
[module/xbacklight]
type = internal/xbacklight
format = <label>
2018-05-06 01:45:35 -05:00
format-prefix = 
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-06 01:45:35 -05:00
format-prefix-background = ${res/colors.icon-xbacklight}
label = %percentage%%
2018-05-06 01:45:35 -05:00
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
[module/xwindow]
type = internal/xwindow
2018-05-08 23:31:12 -05:00
format = <label>
format-prefix = 
format-prefix-padding = ${res/config.padding}
2018-05-09 00:36:42 -05:00
format-prefix-foreground = ${res/colors.foreground-light}
2018-05-08 23:31:12 -05:00
format-prefix-background = ${res/colors.icon-xwindow}
label = %title%
2018-05-06 01:45:35 -05:00
label-padding = ${res/config.padding}
label-background = ${res/colors.background}
2018-05-08 23:31:12 -05:00
label-maxlen = 60
label-ellipsis = true
2017-09-05 18:41:31 -05:00
# vim:ft=dosini