dotfiles/files/polybar.ini

139 lines
2.9 KiB
INI
Raw Normal View History

2018-11-18 20:26:59 +00:00
[colors]
background = #111
foreground = #dfdfdf
primary = #285577
secondary = #333333
alert = #bd2c40
[settings]
screenchange-reload = true
2018-11-18 22:00:29 +00:00
[bar/top]
2018-11-18 20:26:59 +00:00
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
2018-11-18 21:39:42 +00:00
modules-right = player_mpris_tail memory cpu pulseaudio {% if ansible_fqdn == "TOO-Laptop" %}wattage battery{% endif %} power-menu
2018-11-18 20:26:59 +00:00
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
2018-11-18 21:58:59 +00:00
menu-0-0-foreground = ${colors.alert}
2018-11-18 22:18:06 +00:00
menu-0-0-exec = shutdown -h now
2018-11-18 20:26:59 +00:00
menu-0-1 = Restart
menu-0-1-foreground = #0F0
2018-11-18 22:18:06 +00:00
menu-0-1-exec = shutdown -r now
2018-11-18 20:26:59 +00:00
label-separator = " | "
expand-right = false
2018-11-18 21:39:42 +00:00
[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 =
2018-11-18 21:57:21 +00:00
format-charging = <label-charging>
2018-11-18 21:39:42 +00:00
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%% (%time%)
2018-11-18 21:57:21 +00:00
label-charging =  %percentage%%
2018-11-18 21:39:42 +00:00
[module/wattage]
type = internal/battery
full-at = ${module/battery.full-at}
label-discharging =  %consumption%W
2018-11-18 21:57:21 +00:00
label-charging = ${self.label-discharging}
2018-11-18 21:39:42 +00:00
poll-interval = ${module/battery.poll-interval}