2022-04-02 23:18:08 +00:00
|
|
|
;==========================================================
|
|
|
|
;
|
|
|
|
;
|
|
|
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
|
|
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
|
|
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
|
|
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
|
|
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
|
|
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
|
|
|
;
|
|
|
|
;
|
|
|
|
; 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
|
2022-04-03 12:37:27 +00:00
|
|
|
green = #50fa7b
|
|
|
|
cyan = #8be9fd
|
|
|
|
orange = #ffb86c
|
|
|
|
pink = #ff79c6
|
|
|
|
purple = #bd93f9
|
|
|
|
red = #ff5555
|
|
|
|
yellow = #f1fa8c
|
|
|
|
white = #f8f8f2
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
[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
|
|
|
|
|
2022-04-03 12:37:27 +00:00
|
|
|
padding-left = 0
|
|
|
|
padding-right = 0
|
2022-04-02 23:18:08 +00:00
|
|
|
|
2022-04-03 12:37:27 +00:00
|
|
|
module-margin = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
separator =
|
|
|
|
separator-foreground = ${colors.disabled}
|
|
|
|
|
|
|
|
font-0 = Recursive Sans Casual Static: size=11; 3
|
2022-04-03 12:37:27 +00:00
|
|
|
font-1 = "CaskaydiaCove Nerd Font Mono:size=11; 3"
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
modules-left = i3 xwindow
|
2022-04-03 12:37:27 +00:00
|
|
|
modules-center = player-mpris-tail
|
|
|
|
modules-right = pulseaudio xkeyboard memory cpu date
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
cursor-click = pointer
|
|
|
|
cursor-scroll = ns-resize
|
|
|
|
|
|
|
|
enable-ipc = true
|
|
|
|
|
2022-04-03 12:37:27 +00:00
|
|
|
tray-position = left
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
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
|
2022-04-03 12:37:27 +00:00
|
|
|
label = %title:0:24:...%
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
[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 = <label-volume>
|
|
|
|
|
2022-04-03 12:37:27 +00:00
|
|
|
label-volume =蓼 %percentage%%
|
|
|
|
label-volume-background = ${colors.pink}
|
|
|
|
label-volume-foreground = ${colors.background}
|
|
|
|
label-volume-padding = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
label-muted = 遼
|
|
|
|
label-muted-foreground = ${colors.disabled}
|
2022-04-03 12:37:27 +00:00
|
|
|
label-muted-background = ${colors.red}
|
2022-04-02 23:18:08 +00:00
|
|
|
click-right = pavucontrol
|
2022-04-03 12:37:27 +00:00
|
|
|
label-muted-padding = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
[module/xkeyboard]
|
|
|
|
type = internal/xkeyboard
|
|
|
|
blacklist-0 = num lock
|
|
|
|
|
|
|
|
label-layout = %layout%
|
2022-04-03 12:37:27 +00:00
|
|
|
label-layout-foreground = ${colors.background}
|
|
|
|
label-layout-background = ${colors.purple}
|
|
|
|
label-layout-padding = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
label-indicator-foreground = ${colors.background}
|
|
|
|
label-indicator-background = ${colors.secondary}
|
|
|
|
|
|
|
|
[module/memory]
|
|
|
|
type = internal/memory
|
|
|
|
interval = 2
|
2022-04-03 12:37:27 +00:00
|
|
|
label =%percentage_used:2%%
|
|
|
|
label-background = ${colors.orange}
|
|
|
|
label-foreground = ${colors.background}
|
|
|
|
label-padding = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
[module/cpu]
|
|
|
|
type = internal/cpu
|
2022-04-03 12:37:27 +00:00
|
|
|
interval = 20
|
|
|
|
label = %percentage:2%%
|
|
|
|
label-background = ${colors.green}
|
|
|
|
label-foreground = ${colors.background}
|
|
|
|
label-padding = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
[module/date]
|
|
|
|
type = internal/date
|
|
|
|
interval = 1
|
|
|
|
|
|
|
|
date = %H:%M
|
|
|
|
date-alt = %Y-%m-%d %H:%M:%S
|
|
|
|
|
|
|
|
label =﨟 %date%
|
2022-04-03 12:37:27 +00:00
|
|
|
label-foreground = ${colors.background}
|
|
|
|
label-background = ${colors.cyan}
|
|
|
|
label-padding = 1
|
2022-04-02 23:18:08 +00:00
|
|
|
|
|
|
|
[settings]
|
|
|
|
screenchange-reload = true
|
|
|
|
pseudo-transparency = false
|
|
|
|
|
|
|
|
# vim:ft=dosini
|