150 lines
2.9 KiB
Text
150 lines
2.9 KiB
Text
[local]
|
|
include-file = /home/jdkaplan/.config/polybar/local
|
|
|
|
[colors]
|
|
background = #222
|
|
background-alt = #444
|
|
foreground = #dfdfdf
|
|
foreground-alt = #555
|
|
primary = #ffb52a
|
|
secondary = #e60053
|
|
alert = #bd2c40
|
|
|
|
[bar/default]
|
|
inherit = mixins/bar
|
|
monitor = ${env:MONITOR}
|
|
|
|
[bar/with_tray]
|
|
inherit = mixins/bar
|
|
monitor = ${env:MONITOR}
|
|
|
|
# Set a fixed position that's far enough away to fit the other content. This
|
|
# leaves a weird gap, but both the tray and the network module are
|
|
# variable-sized, so there's no resolving that until the tray can be positioned
|
|
# like any other module.
|
|
#
|
|
# TODO: https://github.com/polybar/polybar/issues/314
|
|
tray-position = right
|
|
tray-detached = true
|
|
tray-offset-x = -400
|
|
|
|
[mixins/bar]
|
|
bottom = true
|
|
fixed-center = false
|
|
|
|
width = 100%
|
|
height = 24
|
|
offset-x = 0
|
|
offset-y = 0
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
radius = 0
|
|
|
|
line-size = 1
|
|
line-color = #f00
|
|
|
|
border-size = 1
|
|
border-color = #00000000
|
|
|
|
padding = 0
|
|
|
|
module-margin = 1
|
|
|
|
font-0 = NotoSans-Regular:pixelsize=10;1
|
|
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
|
|
font-2 = siji:pixelsize=10;1
|
|
|
|
modules-left = i3
|
|
modules-center =
|
|
modules-right = eth wlan volume battery date
|
|
|
|
[global/wm]
|
|
margin-bottom = 0
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
|
|
pin-workspaces = true
|
|
enable-click = true
|
|
enable-scroll = false
|
|
|
|
label-focused = %index%
|
|
label-focused-background = ${colors.background-alt}
|
|
label-focused-underline= ${colors.primary}
|
|
label-focused-padding = 2
|
|
|
|
label-unfocused = %index%
|
|
label-unfocused-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/wlan]
|
|
type = internal/network
|
|
interface = ${local.wlan_interface}
|
|
|
|
format-connected = <label-connected>
|
|
format-connected-underline = #9f78e1
|
|
label-connected = %essid% %local_ip%
|
|
|
|
format-disconnected-underline = #9f78e1
|
|
label-disconnected = No Wifi
|
|
|
|
[module/eth]
|
|
type = internal/network
|
|
interface = ${local.eth_interface}
|
|
|
|
format-connected-underline = #55aa55
|
|
label-connected = %local_ip%
|
|
|
|
format-disconnected = <label-disconnected>
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 1
|
|
|
|
date = %a %b %d
|
|
time = %H:%M:%S
|
|
|
|
format-underline = #0a6cf5
|
|
|
|
label = %date% %time%
|
|
|
|
[module/volume]
|
|
type = internal/pulseaudio
|
|
|
|
format-volume = <label-volume>
|
|
format-volume-underline = #e83c3a
|
|
|
|
label-volume = Vol: %percentage%%
|
|
label-volume-foreground = ${root.foreground}
|
|
|
|
label-muted = Vol: %percentage%-
|
|
|
|
[module/battery]
|
|
type = internal/battery
|
|
battery = BAT0
|
|
adapter = AC
|
|
|
|
full-at = ${local.battery_full}
|
|
|
|
format-charging = <label-charging>
|
|
format-charging-underline = #2affb5
|
|
|
|
format-discharging = <label-discharging>
|
|
format-discharging-underline = #ffb52a
|
|
|
|
format-full-underline = ${self.format-charging-underline}
|