162 lines
4.1 KiB
INI
162 lines
4.1 KiB
INI
;==========================================================
|
|
;
|
|
;
|
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
|
;
|
|
;
|
|
; To learn more about how to configure Polybar
|
|
; go to https://github.com/polybar/polybar
|
|
;
|
|
; The README contains a lot of information
|
|
;
|
|
;==========================================================
|
|
|
|
[colors]
|
|
background = #282a36
|
|
background-alt = #44475a
|
|
foreground = #f8f8f2
|
|
primary = #f8f8f2
|
|
secondary = #ff79c6
|
|
alert = #ff5555
|
|
disabled = #6272a4
|
|
|
|
[bar/bar]
|
|
width = 100%
|
|
height = 18pt
|
|
radius = 0
|
|
|
|
#dpi = 96
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
line-size = 0pt
|
|
|
|
border-size = 0
|
|
border-color = #00000000
|
|
|
|
padding-left = 2
|
|
padding-right = 2
|
|
|
|
module-margin = 2
|
|
|
|
separator =
|
|
separator-foreground = ${colors.disabled}
|
|
|
|
font-0 = Recursive Sans Casual Static: size=11; 3
|
|
font-1 = "CaskaydiaCove NerdFont:size=11; 3"
|
|
|
|
|
|
modules-left = i3 xwindow
|
|
modules-center = player-mpris-tail
|
|
modules-right = pulseaudio xkeyboard memory cpu wlan eth date
|
|
|
|
cursor-click = pointer
|
|
cursor-scroll = ns-resize
|
|
|
|
enable-ipc = true
|
|
|
|
tray-position = right
|
|
|
|
wm-restack = i3
|
|
|
|
; override-redirect = true
|
|
|
|
[module/i3]
|
|
type = internal/i3
|
|
pin-workspaces = false
|
|
show-urgent = true
|
|
strip-wsnumbers = true
|
|
index-sort = true
|
|
enable-click = true
|
|
enable-scroll = true
|
|
wrapping-scroll = true
|
|
reverse-scroll = false
|
|
fuzzy-match = true
|
|
label-focused-foreground = ${colors.secondary}
|
|
label-focused-padding = 0
|
|
label-unfocused-padding = 0
|
|
label-separator =|
|
|
label-separator-padding = 2
|
|
label-separator-foreground = ${colors.disabled}
|
|
|
|
|
|
[module/xwindow]
|
|
type = internal/xwindow
|
|
label = %title:0:60:...%
|
|
|
|
[module/player-mpris-tail]
|
|
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/pulseaudio]
|
|
type = internal/pulseaudio
|
|
|
|
format-volume-prefix = "蓼 "
|
|
format-volume-prefix-foreground = ${colors.primary}
|
|
format-volume = <label-volume>
|
|
|
|
label-volume = %percentage%%
|
|
|
|
label-muted = 遼
|
|
label-muted-foreground = ${colors.disabled}
|
|
click-right = pavucontrol
|
|
|
|
[module/xkeyboard]
|
|
type = internal/xkeyboard
|
|
blacklist-0 = num lock
|
|
|
|
label-layout = %layout%
|
|
label-layout-foreground = ${colors.primary}
|
|
|
|
label-indicator-padding = 2
|
|
label-indicator-margin = 1
|
|
label-indicator-foreground = ${colors.background}
|
|
label-indicator-background = ${colors.secondary}
|
|
|
|
[module/memory]
|
|
type = internal/memory
|
|
interval = 2
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.primary}
|
|
label = %percentage_used:2%%
|
|
|
|
[module/cpu]
|
|
type = internal/cpu
|
|
interval = 2
|
|
format-prefix = " "
|
|
format-prefix-foreground = ${colors.primary}
|
|
label = %percentage:2%%
|
|
|
|
[network-base]
|
|
type = internal/network
|
|
interval = 5
|
|
format-connected = <label-connected>
|
|
format-disconnected = <label-disconnected>
|
|
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
|
|
|
[module/date]
|
|
type = internal/date
|
|
interval = 1
|
|
|
|
date = %H:%M
|
|
date-alt = %Y-%m-%d %H:%M:%S
|
|
|
|
label =﨟 %date%
|
|
label-foreground = ${colors.primary}
|
|
|
|
[settings]
|
|
screenchange-reload = true
|
|
pseudo-transparency = false
|
|
|
|
# vim:ft=dosini
|