dotfiles/files/polybar.ini

143 lines
3.2 KiB
INI

[colors]
background = #111
foreground = #dfdfdf
primary = #285577
secondary = #333333
alert = #bd2c40
[settings]
screenchange-reload = true
[bar/example]
monitor = ${env:MONITOR:}
width = 100%
height = 30
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
padding-right = 2
font-0 = "DejaVu Sans Mono:size=9;2"
font-1 = "FontAwesome5FreeSolid:size=8;2"
modules-left = i3 xwindow
modules-center = date
modules-right = player_mpris_tail memory cpu pulseaudio {% if ansible_fqdn == "TOO-Laptop" %}wattage battery{% endif %} power-menu
module-margin = 2
wm-restack = i3
scroll-up = i3wm-wsnext
scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = default
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 75
[module/i3]
type = internal/i3
format = <label-state>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
label-focused = %index%
label-focused-background = ${colors.primary}
label-focused-padding = 1
label-unfocused = ${self.label-focused}
label-unfocused-padding = 1
label-visible = ${self.label-focused}
label-visible-background = ${colors.secondary}
label-visible-padding = ${self.label-focused-padding}
label-urgent = ${self.label-focused}
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
[module/date]
type = internal/date
interval = 1
date = "%Y-%m-%d"
date-alt = "%c"
time = %H:%M:%S
label = %date% %time%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
use-ui-max = false
label-muted =  MUTE
label-muted-foreground = ${colors.alert}
interval = 10
ramp-volume-0 =
ramp-volume-1 =
ramp-volume-2 =
[module/cpu]
type = internal/cpu
interval = 1
label =  %percentage%%
[module/memory]
type = internal/memory
interval = 1
label =  %gb_used%
[module/player_mpris_tail]
type = custom/script
exec = "python3 {{ polybar_scripts }}/player-mpris-tail/player-mpris-tail.py -f '{icon} {title} - {artist}' --icon-playing  --icon-paused "
tail = true
click-left = playerctl play-pause
click-right = playerctl next
label-maxlen = 75
[module/power-menu]
type = custom/menu
label-open =
label-close =
menu-0-0 = Shutdown
menu-0-0-foreground = #F00
menu-0-1 = Restart
menu-0-1-foreground = #0F0
label-separator = " | "
expand-right = false
[module/battery]
type = internal/battery
full-at = 100
poll-interval = 1
time-format = %H:%M
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
animation-charging-framerate = 500
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-discharging-framerate = ${self.animation-charging-framerate}
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%% (%time%)
[module/wattage]
type = internal/battery
full-at = ${module/battery.full-at}
label-discharging =  %consumption%W
label-charging =  %consumption%W
poll-interval = ${module/battery.poll-interval}