|
|
|
|
|
;; Palette
|
|
|
[color]
|
|
|
trans = #00000000
|
|
|
white = #FFFFFF
|
|
|
black = #000000
|
|
|
grey = #797979
|
|
|
grey-dark = #3f3f3f
|
|
|
orange = #ffa000
|
|
|
red = #bd2c40
|
|
|
|
|
|
pink = #9e1553
|
|
|
pink-dark = #3f3c3f
|
|
|
|
|
|
[global/wm]
|
|
|
margin-bottom = 0
|
|
|
margin-top = 0
|
|
|
|
|
|
[bar/main]
|
|
|
monitor = ${env:MONITOR:}
|
|
|
monitor-fallback =
|
|
|
monitor-strict = false
|
|
|
monitor-exact = true
|
|
|
|
|
|
override-redirect = false
|
|
|
bottom = false
|
|
|
fixed-center = true
|
|
|
width = 100%
|
|
|
height = 20
|
|
|
offset-x = 0
|
|
|
offset-y = 0
|
|
|
|
|
|
background = ${color.black}
|
|
|
foreground = ${color.white}
|
|
|
|
|
|
radius = 0.0
|
|
|
|
|
|
line-size = 1
|
|
|
line-color = #f00
|
|
|
|
|
|
border-size = 1
|
|
|
border-color = ${root.background}
|
|
|
|
|
|
padding = 0
|
|
|
module-margin = 1
|
|
|
|
|
|
font-0 = "Ubuntu Nerd Font:style=Book:weight=bold:size=10"
|
|
|
font-1 = "IcoMoon\-Free:style=Regular:weight=bold:size=10"
|
|
|
font-2 = "Material Icons:style=Regular:weight=bold:size=10"
|
|
|
font-3 = "Material Wifi Signal Enhanced:style=Regular:weight=bold:size=10"
|
|
|
|
|
|
#modules-left = i3 clementine mpv
|
|
|
modules-left = i3 mpv
|
|
|
modules-center = date
|
|
|
modules-right = temperature bluetooth wireless-network wired-network alsa battery
|
|
|
|
|
|
separator = " "
|
|
|
spacing = 0
|
|
|
dim-value = 1.0
|
|
|
|
|
|
wm-name =
|
|
|
|
|
|
locale = ${env:LANG}
|
|
|
|
|
|
tray-position = right
|
|
|
tray-detached = true
|
|
|
tray-maxsize = 16
|
|
|
tray-background = ${root.background}
|
|
|
tray-offset-x = -210
|
|
|
tray-offset-y = -2
|
|
|
tray-padding = 2
|
|
|
tray-scale = 1.0
|
|
|
|
|
|
dpi-x = 96
|
|
|
dpi-y = 96
|
|
|
|
|
|
enable-ipc = false
|
|
|
|
|
|
[settings]
|
|
|
screenchange-reload = false
|
|
|
|
|
|
compositing-background = source
|
|
|
compositing-foreground = over
|
|
|
compositing-overline = over
|
|
|
compositing-underline = over
|
|
|
compositing-border = over
|
|
|
|
|
|
pseudo-transparency = false
|
|
|
|
|
|
[module/date]
|
|
|
type = internal/date
|
|
|
interval = 5.0
|
|
|
date = %a %d %b %H:%M
|
|
|
|
|
|
[module/battery]
|
|
|
type = internal/battery
|
|
|
full-at = 97
|
|
|
battery = BAT0
|
|
|
adapter = AC
|
|
|
poll-interval = 20
|
|
|
|
|
|
format-charging = <ramp-capacity> <label-charging>
|
|
|
format-discharging = <ramp-capacity> <label-discharging>
|
|
|
format-full = <ramp-capacity> <label-full>
|
|
|
label-charging = ⚡%percentage%%
|
|
|
label-discharging = %percentage%%
|
|
|
label-full = ⚡%percentage%%
|
|
|
|
|
|
ramp-capacity-0 =
|
|
|
ramp-capacity-0-foreground = ${color.red}
|
|
|
ramp-capacity-1 =
|
|
|
ramp-capacity-1-foreground = ${color.orange}
|
|
|
ramp-capacity-2 =
|
|
|
ramp-capacity-3 =
|
|
|
ramp-capacity-4 =
|
|
|
|
|
|
[module/alsa]
|
|
|
type = internal/alsa
|
|
|
interval = 5
|
|
|
format-volume = <ramp-volume>
|
|
|
format-muted = <label-muted>
|
|
|
label-muted =
|
|
|
label-muted-foreground = ${color.grey}
|
|
|
|
|
|
; You cannot customize click actions on official modules? Really?!? >:(
|
|
|
;click-right = exec pavucontrol
|
|
|
|
|
|
; Only applies if <ramp-volume> is used
|
|
|
ramp-volume-0 =
|
|
|
ramp-volume-1 =
|
|
|
ramp-volume-2 =
|
|
|
ramp-volume-3 =
|
|
|
|
|
|
[module/wired-network]
|
|
|
type = internal/network
|
|
|
interface = ${env:POLY_ENP}
|
|
|
|
|
|
format-connected = <label-connected>
|
|
|
label-connected =
|
|
|
|
|
|
[module/wireless-network]
|
|
|
type = internal/network
|
|
|
interface = ${env:POLY_WLP}
|
|
|
|
|
|
format-connected = <ramp-signal>
|
|
|
format-disconnected = <label-disconnected>
|
|
|
format-packetloss = <animation-packetloss>
|
|
|
|
|
|
label-disconnected =
|
|
|
label-disconnected-foreground = ${color.grey}
|
|
|
|
|
|
; Only applies if <ramp-signal> is used
|
|
|
ramp-signal-0 =
|
|
|
ramp-signal-1 =
|
|
|
ramp-signal-2 =
|
|
|
ramp-signal-3 =
|
|
|
ramp-signal-font = 3
|
|
|
|
|
|
; Only applies if <animation-packetloss> is used
|
|
|
animation-packetloss-0 =
|
|
|
animation-packetloss-0-foreground = ${color.orange}
|
|
|
animation-packetloss-1 =
|
|
|
animation-packetloss-1-foreground = ${color.black}
|
|
|
; Framerate in milliseconds
|
|
|
animation-packetloss-framerate = 500
|
|
|
|
|
|
[module/temperature]
|
|
|
type = internal/temperature
|
|
|
interval = 5
|
|
|
thermal-zone = 0
|
|
|
hwmon-path = ${env:POLY_HWMON:}
|
|
|
|
|
|
base-temperature = 40
|
|
|
warn-temperature = 80
|
|
|
|
|
|
format = <ramp><label>
|
|
|
format-warn = <ramp><label-warn>
|
|
|
format-warn-foreground = ${color.red}
|
|
|
|
|
|
label = %temperature-c%
|
|
|
label-warn = %temperature-c%
|
|
|
|
|
|
ramp-0 =
|
|
|
ramp-1 =
|
|
|
ramp-2 =
|
|
|
ramp-3 =
|
|
|
ramp-4 =
|
|
|
|
|
|
[module/i3]
|
|
|
type = internal/i3
|
|
|
pin-workspaces = true
|
|
|
index-sort = true
|
|
|
enable-click = true
|
|
|
enable-scroll = true
|
|
|
|
|
|
icon-default = ""
|
|
|
|
|
|
format = <label-state> <label-mode>
|
|
|
|
|
|
label-mode = %mode%
|
|
|
label-mode-padding = 2
|
|
|
label-mode-background = #e60053
|
|
|
|
|
|
label-focused = %index%
|
|
|
label-focused-foreground = ${color.white}
|
|
|
label-focused-background = ${color.pink-dark}
|
|
|
label-focused-underline = ${color.pink}
|
|
|
label-focused-padding = 4
|
|
|
|
|
|
label-unfocused = %index%
|
|
|
label-unfocused-padding = 4
|
|
|
|
|
|
label-visible = %index%
|
|
|
label-visible-underline = ${color.grey}
|
|
|
label-visible-padding = 4
|
|
|
|
|
|
label-urgent = %index%
|
|
|
label-urgent-foreground = ${color.black}
|
|
|
label-urgent-background = ${color.red}
|
|
|
label-urgent-padding = 4
|
|
|
|
|
|
label-separator =
|
|
|
label-separator-padding = 0
|
|
|
label-separator-foreground = ${color.grey}
|
|
|
|
|
|
[module/clementine]
|
|
|
type = custom/script
|
|
|
exec = ~/.config/polybar/scripts/clementine.sh
|
|
|
interval = 1
|
|
|
|
|
|
label = %output%
|
|
|
format = <label>
|
|
|
|
|
|
[module/mpv]
|
|
|
type = custom/script
|
|
|
exec = ~/.config/polybar/scripts/mpv.sh play-pause-btn " " media-title " " [ playlist-pos-1 / playlist-count ] " " time-pos - duration
|
|
|
interval = 1
|
|
|
|
|
|
format = <label>
|
|
|
label = %output%
|
|
|
|
|
|
click-left = printf "%s\n" "cycle pause" | socat - $XDG_RUNTIME_DIR/mpv/main.sock
|
|
|
|
|
|
[module/bluetooth]
|
|
|
type = custom/script
|
|
|
exec = ~/.config/polybar/scripts/bluetooth.sh
|
|
|
interval = 5
|
|
|
click-left = blueman-manager &
|
|
|
click-right = ~/.config/polybar/scripts/bluetooth.sh --toggle &
|
|
|
format-background = #000000
|
|
|
format-foreground = #ffffff
|
|
|
|