181 lines
4.5 KiB
Text
181 lines
4.5 KiB
Text
[colors]
|
|
bg = #282a36
|
|
fg = #f8f8f2
|
|
date = #ff5555
|
|
cpu = #ffb86c
|
|
audio = #8be9fd
|
|
power = #f1fa8c
|
|
wifi = #50fa7b
|
|
keyboard = #bd93f9
|
|
|
|
[var]
|
|
padding = 1
|
|
default-font = 2
|
|
|
|
[bar/top]
|
|
modules-left = i3
|
|
modules-right = keyboardarrow keyboard audioarrow player-mpris-tail volume wifiarrow wifi powerarrow ac battery0 battery1 arrowcpu cpu temperature ram arrowdate date
|
|
|
|
background = ${colors.bg}
|
|
foreground = ${colors.fg}
|
|
|
|
module-margin = ${var.margin}
|
|
|
|
; font
|
|
font-0 = "CaskaydiaCove NerdFont Mono:pixelsize=18; 3"
|
|
font-1 = "CaskaydiaCove NerdFont Mono:pixelsize=12; 2"
|
|
|
|
[modules/format]
|
|
label-padding = 1
|
|
format-font = 2
|
|
;wifi
|
|
format-connected-font = 2
|
|
format-disconnected-font = 2
|
|
|
|
[arrows/arrowR]
|
|
type = custom/text
|
|
content =
|
|
|
|
[module/i3]
|
|
inherit = modules/format
|
|
type = internal/i3
|
|
|
|
[module/date]
|
|
inherit = modules/format
|
|
type = internal/date
|
|
date = %H:%M:%S
|
|
format-background = ${colors.date}
|
|
format-foreground = ${colors.bg}
|
|
|
|
[module/arrowdate]
|
|
inherit = arrows/arrowR
|
|
content-foreground = ${colors.date}
|
|
content-background = ${colors.cpu}
|
|
|
|
[module/cpu]
|
|
inherit = modules/format
|
|
type = internal/cpu
|
|
interval = 1
|
|
label = %percentage%%
|
|
format-background = ${colors.cpu}
|
|
format-foreground = ${colors.bg}
|
|
|
|
[module/ram]
|
|
inherit = modules/format
|
|
type = internal/memory
|
|
format-foreground = ${colors.bg}
|
|
format-background = ${colors.cpu}
|
|
label = %gb_used%
|
|
|
|
[module/temperature]
|
|
inherit = modules/format
|
|
type = internal/temperature
|
|
format-foreground = ${colors.bg}
|
|
format-background = ${colors.cpu}
|
|
label = %temperature-c%
|
|
|
|
|
|
|
|
[module/arrowcpu]
|
|
inherit = arrows/arrowR
|
|
content-foreground = ${colors.cpu}
|
|
content-background = ${colors.power}
|
|
|
|
[module/wifi]
|
|
inherit = modules/format
|
|
type = internal/network
|
|
interface-type = wireless
|
|
label-connected = %downspeed% %upspeed%
|
|
label-connected-padding = ${var.padding}
|
|
label-connected-foreground = ${colors.bg}
|
|
label-connected-background = ${colors.wifi}
|
|
|
|
[module/wifiarrow]
|
|
inherit = arrows/arrowR
|
|
content-foreground = ${colors.wifi}
|
|
content-background = ${colors.audio}
|
|
|
|
[modules/bat]
|
|
type = internal/battery
|
|
label-charging-font = ${var.default-font}
|
|
label-discharging-font = ${var.default-font}
|
|
label-charging-padding = ${var.padding}
|
|
label-discharging-padding = ${var.padding}
|
|
label-charging-foreground = ${colors.bg}
|
|
label-discharging-foreground = ${colors.bg}
|
|
label-charging-background = ${colors.power}
|
|
label-discharging-background = ${colors.power}
|
|
label-full-background = ${colors.power}
|
|
label-full-padding = ${var.padding}
|
|
label-full-foreground = ${colors.bg}
|
|
label-full-font = ${var.default-font}
|
|
|
|
[module/battery0]
|
|
inherit = modules/bat
|
|
battery = BAT0
|
|
|
|
[module/battery1]
|
|
inherit = modules/bat
|
|
battery = BAT1
|
|
|
|
[module/ac]
|
|
inherit = modules/bat
|
|
adapter = AC
|
|
label-charging = ﮣ
|
|
label-full = ﮣ
|
|
label-discharging = ﮤ
|
|
|
|
[module/powerarrow]
|
|
inherit = arrows/arrowR
|
|
content-foreground = ${colors.power}
|
|
content-background = ${colors.wifi}
|
|
|
|
[module/volume]
|
|
inherit = modules/format
|
|
type = internal/pulseaudio
|
|
label-volume-font = ${var.default-font}
|
|
label-muted-font = ${var.default-font}
|
|
label-volume-padding = ${var.padding}
|
|
label-muted-padding = ${var.padding}
|
|
label-volume-foreground = ${colors.bg}
|
|
label-volume-background = ${colors.audio}
|
|
label-muted-foreground = ${colors.bg}
|
|
label-muted-background = ${colors.audio}
|
|
label-volume = 蓼 %percentage%%
|
|
label-muted = 遼 %percentage%%
|
|
|
|
[module/player-mpris-tail]
|
|
inherit = modules/format
|
|
label-background = ${colors.audio}
|
|
label-foreground = ${colors.bg}
|
|
type = custom/script
|
|
exec = $HOME/.config/polybar/player-mpris-tail.py -f '{icon} {artist} - {title}' --icon-playing "契" --icon-paused ""
|
|
tail = true
|
|
click-left = $HOME/.config/polybar/player-mpris-tail.py previous &
|
|
click-right = $HOME/.config/polybar/player-mpris-tail.py next &
|
|
click-middle = $HOME/.config/polybar/player-mpris-tail.py play-pause &
|
|
|
|
[module/audioarrow]
|
|
inherit = arrows/arrowR
|
|
content-foreground = ${colors.audio}
|
|
content-background = ${colors.keyboard}
|
|
|
|
[module/keyboard]
|
|
inherit = modules/format
|
|
type = internal/xkeyboard
|
|
format-background = ${colors.keyboard}
|
|
label-layout-padding = ${var.padding}
|
|
label-layout = %layout%
|
|
label-indicator-on-capslock = בּ
|
|
label-indicator-on-capslock-background = ${colors.keyboard}
|
|
label-indicator-on-capslock-foreground = ${colors.bg}
|
|
label-indicator-on-capslock-padding = ${var.padding}
|
|
label-indicator-on-background = ${colors.keyboard}
|
|
label-layout-background = ${colors.keyboard}
|
|
label-layout-foreground = ${colors.bg}
|
|
label-indicator-background = ${colors.keyboard}
|
|
|
|
[module/keyboardarrow]
|
|
inherit = arrows/arrowR
|
|
content-foreground = ${colors.keyboard}
|
|
|