dotfiles/polybar/config

141 lines
3.0 KiB
Plaintext

[colors]
black = #000000
blue = #0288D1
blue-light = #B3E5FC
pink = #E91E63
pink-light = #FFCDD2
alert = #E91E63
[bar/aqua]
width = 100%
height = 24
radius = 0.0
fixed-center = true
background = ${colors.black}
foreground = ${colors.blue}
line-size = 3
line-color = #f00
border-size = 0
border-color = #000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = NimbusSans:bold:fixed:pixelsize=14;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1+e
modules-left = i3
modules-center = xwindow
modules-right = volume battery date
tray-position = right
tray-padding = 2
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
[module/bspwm]
type = internal/bspwm
label-focused = %index%
label-focused-background = ${colors.black}
label-focused-underline= ${colors.pink}
label-focused-padding = 2
label-occupied = %index%
label-occupied-padding = 2
label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.pink}
label-focused = %index%
label-focused-background = ${module/bspwm.label-focused-background}
label-focused-underline = ${module/bspwm.label-focused-underline}
label-focused-padding = ${module/bspwm.label-focused-padding}
label-unfocused = %index%
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-background}
label-visible-padding = ${self.label-focused-padding}
label-urgent = %index%!
label-urgent-background = ${module/bspwm.label-urgent-background}
label-urgent-padding = ${module/bspwm.label-urgent-padding}
[module/date]
type = internal/date
interval = 1.0
date =
date-alt = %m-%d-%Y
time = %I:%M
time-alt = %I:%M:%S
label = %date% %time%
format-underline = ${colors.blue}
[module/battery]
type = internal/battery
full-at = 99
time-format = %-H:%M
; $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = ADP1
poll-interval = 1
format-charging = <label-charging>
format-charging-underline = ${colors.blue}
label-charging = %percentage%% (%time%)
format-discharging = <label-discharging>
format-discharging-underline = ${colors.blue-light}
label-discharging = %percentage%% (%time%)
[module/volume]
type = internal/alsa
format-volume = <label-volume>
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}
format-volume-underline = ${colors.blue}
format-muted-prefix = " "
label-muted = VOL %percentage%%
format-muted-underline = ${colors.pink}
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 0
margin-bottom = 0