dotfiles/files/polybar.ini

166 lines
3.6 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
2018-11-19 08:55:05 +00:00
success = #0d0
2018-11-18 20:26:59 +00:00
[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%
2018-11-19 08:28:27 +00:00
height = 25
2018-11-18 20:26:59 +00:00
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
2018-11-19 09:07:37 +00:00
padding = 2
2018-11-18 20:26:59 +00:00
font-0 = "DejaVu Sans Mono:size=9;2"
font-1 = "FontAwesome5FreeSolid:size=8;2"
2018-11-19 09:07:37 +00:00
modules-left = xwindow
2018-11-18 20:26:59 +00:00
modules-center = date
2019-10-03 18:24:55 +01:00
modules-right = player_mpris_tail memory cpu temperature wifi eno1 pulseaudio wattage battery 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
2018-11-19 09:07:37 +00:00
[bar/bottom]
inherit = bar/top
bottom = true
modules-left = i3
modules-center =
tray-position = right
modules-right =
padding = 0
height = 20
2018-11-18 20:26:59 +00:00
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 75
[module/i3]
type = internal/i3
2019-02-23 13:31:51 +00:00
format = <label-state> <label-mode>
2018-11-18 20:26:59 +00:00
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 = 2
2018-11-18 20:26:59 +00:00
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
2018-12-14 14:22:21 +00:00
label-maxlen = 50
2018-11-18 20:26:59 +00:00
[module/power-menu]
type = custom/menu
label-open =
label-close =
label-open-foreground = ${colors.alert}
label-close-foreground = ${colors.alert}
2018-11-18 20:26:59 +00:00
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
2018-11-19 08:55:05 +00:00
menu-0-1-foreground = ${colors.success}
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 = 2
2018-11-18 21:39:42 +00:00
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}
2018-11-19 08:40:56 +00:00
[module/wifi]
type = internal/network
interface = wlp2s0
label-connected =  %local_ip% (%essid%)
2018-11-19 08:55:05 +00:00
label-connected-foreground = ${colors.success}
2018-11-19 08:40:56 +00:00
label-packetloss = ${self.label-connected}
2018-11-19 08:52:03 +00:00
[module/eno1]
type = internal/network
inherit = module/wifi
label-connected =  %local_ip%
interface = eno1
2019-10-03 18:24:55 +01:00
[module/temperature]
type = internal/temperature
interval = 3
2019-10-03 18:24:55 +01:00
base-temperature = 20
warn-temperature = 75
label-warn-foreground = ${colors.alert}
label =  %temperature-c%
label-warn =  %temperature-c%