This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/de/bar/polybar-config

396 lines
8.7 KiB
Plaintext
Raw Normal View History

; ############################ ;
; ######### COLORS ######### ;
; ############################ ;
[colors]
foreground = ${xrdb:color7:#222222}
background = #bb111111
2018-10-23 18:47:22 -05:00
tray-bg = #222222
icon = #555555
good = ${xrdb:color2}
neutral = ${xrdb:color3}
bad = ${xrdb:color1}
active = ${xrdb:color4}
alert = ${xrdb:color1}
bar-bg = ${xrdb:color3}
sysres = ${xrdb:color5}
levels = ${xrdb:color3}
net = ${xrdb:color1}
cpu = ${colors.sysres}
memory = ${colors.sysres}
filesystem = ${colors.sysres}
thermal = ${xrdb:color2}
battery-charging = ${colors.good}
battery-full = ${colors.good}
battery-discharging = ${colors.neutral}
; battery- = ${colors.good}
time = ${colors.foreground}
; ########################### ;
; ########## BAR ########## ;
; ########################### ;
[bar/lytedev]
monitor = ${env:BAR_MONITOR:HDMI-1}
width = ${env:BAR_WIDTH:HDMI-1}
height = ${env:BAR_HEIGHT:30}
offset-x = ${env:POS_X:30}
offset-y = ${env:POS_Y:30}
radius = 0.0
2018-10-22 20:05:34 -05:00
fixed-center = true
bottom = ${env:BAR_BOTTOM:true}
2017-05-05 00:55:43 -05:00
dpi = ${xrdb:dpi:92}
background = ${colors.background}
foreground = ${colors.foreground}
2018-10-23 14:59:04 -05:00
line-size = 0
line-color = ${colors.foreground}
border-size = 0
border-color = #00000000
padding-left = 0
2018-10-22 20:05:34 -05:00
padding-right = 2
module-margin-left = 1
2018-10-23 14:59:04 -05:00
module-margin-right = 1
font-0 = ${env:BAR_FONT_DECLARATION}
2017-05-03 13:31:10 -05:00
font-1 = ${env:BAR_ICON_FONT_DECLARATION}
modules-left = bspwm
2018-10-22 20:05:34 -05:00
modules-center = date
modules-right = cpu filesystem memory volume microphone xbacklight xkeyboard temperature battery
tray-position = right
2018-10-22 20:05:34 -05:00
tray-padding = 0
2018-10-23 18:47:22 -05:00
tray-background = ${colors.tray-bg}
2017-03-14 20:38:52 -05:00
wm-restack = bspwm
2017-03-14 20:38:52 -05:00
override-redirect = true
; scroll-up = bspwm-desknext
; scroll-down = bspwm-deskprev
; ############################ ;
; ########### FS ########### ;
; ############################ ;
[module/filesystem]
type = internal/fs
interval = 25
2018-10-22 20:05:34 -05:00
mount-0 = ${env:BAR_FS_VOLUME}
2017-04-14 11:52:18 -05:00
format = <label-mounted>
2019-01-22 19:37:40 -06:00
label-mounted = %free%
label-mounted-foreground = ${colors.filesystem}
2018-10-23 14:59:04 -05:00
format-mounted-prefix = " "
format-mounted-prefix-foreground = ${colors.icon}
; ########################### ;
; ######### BSPWM ######### ;
; ########################### ;
[module/bspwm]
2017-04-14 11:52:18 -05:00
ws-icon-0 = dev;
2018-10-23 15:00:49 -05:00
ws-icon-1 = web;
2018-10-23 14:59:04 -05:00
ws-icon-2 = gfx;
ws-icon-3 = env;
2018-10-23 14:59:04 -05:00
ws-icon-4 = play;
ws-icon-5 = chat;
ws-icon-6 = out;
ws-icon-7 = mon;
ws-icon-8 = misc;
2017-04-14 11:52:18 -05:00
ws-icon-9 = util;
ws-icon-default = ♟
; misc icon: 
2017-05-03 13:31:10 -05:00
label-focused-font = 2
label-occupied-font = 2
label-urgent-font = 2
label-empty-font = 2
2017-04-14 11:52:18 -05:00
type = internal/bspwm
2017-03-14 20:35:15 -05:00
pin-workspaces = false
2017-04-14 11:52:18 -05:00
label-focused = %icon%
label-focused-background = ${colors.active}
label-focused-foreground = ${colors.background}
label-focused-padding = 2
2017-04-14 11:52:18 -05:00
label-occupied = %icon%
label-occupied-padding = 2
2017-04-14 11:52:18 -05:00
label-urgent = %icon%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
2017-04-14 11:52:18 -05:00
label-empty = %icon%
label-empty-foreground = ${colors.icon}
label-empty-padding = 2
; ########################### ;
; ########## MPD ########## ;
; ########################### ;
[module/mpd]
type = internal/mpd
format-online = <icon-prev> <toggle> <label-song> <icon-stop> <icon-next>
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 25
label-song-ellipsis = true
; ########################### ;
; ####### BACKLIGHT ####### ;
; ########################### ;
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
format-foreground = ${colors.icon}
2017-04-14 11:52:18 -05:00
label = 
2017-04-14 11:52:18 -05:00
bar-width = 5
bar-indicator = |
bar-indicator-foreground = ${colors.foreground}
2017-05-03 13:31:10 -05:00
bar-indicator-font = 0
bar-fill = ─
; bar-fill = -
2017-05-03 13:31:10 -05:00
bar-fill-font = 0
bar-fill-foreground = ${colors.bar-bg}
bar-empty = ─
; bar-empty = -
2017-05-03 13:31:10 -05:00
bar-empty-font = 0
bar-empty-foreground = ${colors.bar-bg}
; ########################### ;
; ########## CPU ########## ;
; ########################### ;
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.icon}
2018-10-22 20:05:34 -05:00
label = %percentage-cores%
label-foreground = ${colors.cpu}
; ########################## ;
; ######## MEMORY ######## ;
; ########################## ;
[module/memory]
type = internal/memory
interval = 2
2018-10-23 14:59:04 -05:00
format-prefix = " "
format-prefix-foreground = ${colors.icon}
2018-10-22 20:05:34 -05:00
label = %gb_free%
label-foreground = ${colors.memory}
; ########################## ;
; ######### WIFI ######### ;
; ########################## ;
2018-10-22 20:05:34 -05:00
[module/wifi]
type = internal/network
2018-10-22 20:05:34 -05:00
interface = ${env:BAR_WIFI_INTERFACE}
interval = 10.0
2018-10-22 20:05:34 -05:00
;format-connected = <ramp-signal> <label-connected>
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.icon}
2018-10-22 20:05:34 -05:00
format-connected = <label-connected>
label-connected = "%essid% %downspeed% %upspeed%"
label-connected-foreground = ${colors.wifi-connected}
2018-10-22 20:05:34 -05:00
format-disconnected-prefix = " "
format-disconnected-prefix-foreground = ${colors.icon}
2018-10-22 20:05:34 -05:00
format-disconnected = "N/A"
; format-disconnected = <label-disconnected>
; format-disconnected-underline = ${self.format-connected-underline}
; label-disconnected = %ifname% disconnected
; label-disconnected-foreground = ${colors.wifi-disconnected}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
[module/eth]
type = internal/network
2018-10-22 20:05:34 -05:00
interface = ${env:BAR_ETH_INTERFACE}
interval = 10.0
2018-10-22 20:05:34 -05:00
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.icon}
2018-10-22 20:05:34 -05:00
label-connected = %upspeed% %downspeed%
label-connected-foreground = ${colors.eth-connected}
2018-10-22 20:05:34 -05:00
format-disconnected = N/A
; format-disconnected = <label-disconnected>
; format-disconnected-underline = 0
; label-disconnected = %ifname% disconnected
; label-disconnected-foreground = ${colors.eth-disconnected}
; ########################### ;
; ######### CLOCK ######### ;
; ########################### ;
[module/date]
type = internal/date
2017-02-08 13:27:09 -06:00
interval = 1
2018-10-22 20:05:34 -05:00
date = "%a %Y-%m-%d "
2017-02-08 14:13:46 -06:00
date-alt =
2017-02-08 14:13:46 -06:00
time = %H:%M:%S
time-alt = %H:%M
label-foreground = ${colors.time}
format-prefix = " "
format-prefix-foreground = ${colors.icon}
label = %date%%time%
; ########################## ;
; ######## VOLUME ######## ;
; ########################## ;
[module/volume]
type = internal/alsa
format-volume = <label-volume> <bar-volume>
2017-04-14 11:52:18 -05:00
label-volume = 
label-volume-foreground = ${colors.icon}
format-muted-prefix = " "
format-muted-foreground = ${colors.icon}
2018-10-22 20:05:34 -05:00
label-muted = M
bar-volume-width = 5
bar-volume-foreground-0 = ${colors.bar-bg}
bar-volume-foreground-1 = ${colors.bar-bg}
bar-volume-foreground-2 = ${colors.bar-bg}
bar-volume-foreground-3 = ${colors.bar-bg}
bar-volume-foreground-4 = ${colors.bar-bg}
bar-volume-foreground-5 = ${colors.bar-bg}
bar-volume-foreground-6 = ${colors.bar-bg}
bar-volume-gradient = false
bar-volume-indicator = |
2017-05-03 13:31:10 -05:00
bar-volume-indicator-font = 0
bar-volume-fill = ─
2017-05-03 13:31:10 -05:00
bar-volume-fill-font = 0
bar-volume-empty = ─
2017-05-03 13:31:10 -05:00
bar-volume-empty-font = 0
bar-volume-empty-foreground = ${colors.icon}
; ######################### ;
; ####### BATTERY ####### ;
; ######################### ;
[module/battery]
type = internal/battery
battery = BAT0
adapter = ADP1
full-at = 98
label-discharging-foreground = ${colors.battery-discharging}
label-charging-foreground = ${colors.battery-charging}
label-full-foreground = ${colors.battery-full}
2017-04-14 11:52:18 -05:00
format-charging = <animation-charging> <label-charging>
2017-04-14 11:52:18 -05:00
format-discharging-prefix =
format-discharging-prefix-foreground = ${colors.icon}
format-discharging = <ramp-capacity> <label-discharging>
2017-04-14 11:52:18 -05:00
format-charging-prefix =
format-charging-prefix-foreground = ${colors.icon}
2017-04-14 11:52:18 -05:00
format-full-prefix = " "
format-full-prefix-foreground = ${colors.icon}
2017-04-14 11:52:18 -05:00
ramp-capacity-0 = ""
ramp-capacity-1 = ""
ramp-capacity-2 = ""
ramp-capacity-foreground = ${colors.icon}
2017-04-14 11:52:18 -05:00
animation-charging-0 = ""
animation-charging-1 = ""
animation-charging-2 = ""
animation-charging-foreground = ${colors.icon}
animation-charging-framerate = 1000
; ########################## ;
; ####### THERMALS ####### ;
; ########################## ;
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
2017-02-08 13:27:09 -06:00
format = <ramp><label>
format-warn = <ramp> <label-warn>
label-foreground = ${colors.thermal}
2017-04-14 11:52:18 -05:00
format-prefix =
format-prefix-foreground = ${colors.icon}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.icon}
2017-04-14 11:52:18 -05:00
ramp-0 = " "
ramp-1 = " "
ramp-2 = " "
ramp-foreground = ${colors.icon}
; ######################## ;
; ###### SETTINGS ###### ;
; ######################## ;
[settings]
screenchange-reload = true
2018-10-22 20:05:34 -05:00
pseudo-transparency = true
compositing-background = source
compositing-foreground = source
compositing-border = source
; ######################### ;
; ####### GLOBALS ####### ;
; ######################### ;
[global/wm]
2017-02-22 19:01:27 -06:00
margin-top = ${env:WINDOW_GAP}
margin-bottom = ${env:WINDOW_GAP}
[module/microphone]
type = custom/script
exec = $DOTFILES_PATH/de/bar/mic.bash
tail = true
format = <label>
label = %output%
click-left = kill -USR1 %pid%