config-polybar/config.ini

217 lines
5.4 KiB
INI
Raw Normal View History

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
;
;==========================================================
2022-04-22 16:37:41 +00:00
include-file = ./powerline-for-polybar/powerline-for-polybar.config
2022-04-02 23:18:08 +00:00
[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%
2022-04-22 16:37:41 +00:00
height = 20
2022-04-02 23:18:08 +00:00
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-22 16:37:41 +00:00
module-margin = 0
2022-04-02 23:18:08 +00:00
separator =
separator-foreground = ${colors.disabled}
2022-04-22 16:37:41 +00:00
font-0 = "CaskaydiaCove Nerd Font:size=11; 2"
2022-04-02 23:18:08 +00:00
modules-left = i3 xwindow
2022-04-22 16:37:41 +00:00
modules-center = player-mpris-tail battery1 battery0
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-22 16:37:41 +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
2022-04-22 16:37:41 +00:00
label-separator-padding = 0
2022-04-02 23:18:08 +00:00
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]
2022-04-22 16:37:41 +00:00
inherit = powerline-templates/right-to-left-item
background = ${colors.yellow}
background-next = ${colors.background}
2022-04-02 23:18:08 +00:00
type = internal/pulseaudio
format-volume = <label-volume>
2022-04-03 12:37:27 +00:00
label-volume =蓼 %percentage%%
2022-04-03 19:55:29 +00:00
label-volume-background = ${colors.yellow}
2022-04-03 12:37:27 +00:00
label-volume-foreground = ${colors.background}
label-volume-padding = 1
2022-04-02 23:18:08 +00:00
label-muted =
2022-04-22 16:37:41 +00:00
label-muted-foreground = ${colors.background}
label-muted-background = ${colors.yellow}
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
2022-04-03 19:55:29 +00:00
[module/battery0]
2022-04-22 16:37:41 +00:00
inherit = powerline-templates/right-to-left-item
2022-04-03 19:55:29 +00:00
type = internal/battery
full-at = 99
low-at = 5
battery = BAT0
adapter = ADP1
poll-interval = 120
label-discharging-padding = 1
label-discharging = %percentage%%
label-charging = %percentage%%
label-charging-padding = 1
label-full = %percentage%%
label-full-padding = 1
[module/battery1]
type = internal/battery
full-at = 99
low-at = 5
battery = BAT1
adapter = ADP1
poll-interval = 120
label-discharging-padding = 1
label-discharging = %percentage%%
label-charging = %percentage%%
label-charging-padding = 1
label-full = %percentage%%
label-full-padding = 1
2022-04-02 23:18:08 +00:00
[module/xkeyboard]
2022-04-22 16:37:41 +00:00
inherit = powerline-templates/right-to-left-item
background = ${colors.green}
background-next = ${colors.yellow}
2022-04-02 23:18:08 +00:00
type = internal/xkeyboard
blacklist-0 = num lock
2022-04-03 18:08:23 +00:00
label-layout = %layout%
2022-04-03 12:37:27 +00:00
label-layout-foreground = ${colors.background}
2022-04-03 19:55:29 +00:00
label-layout-background = ${colors.green}
2022-04-03 12:37:27 +00:00
label-layout-padding = 1
2022-04-02 23:18:08 +00:00
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
2022-04-22 16:37:41 +00:00
inherit = powerline-templates/right-to-left-item
background = ${colors.cyan}
background-next = ${colors.green}
2022-04-02 23:18:08 +00:00
type = internal/memory
interval = 2
2022-04-03 18:08:23 +00:00
label = %percentage_used:2%%
2022-04-03 19:55:29 +00:00
label-background = ${colors.cyan}
2022-04-03 12:37:27 +00:00
label-foreground = ${colors.background}
label-padding = 1
2022-04-02 23:18:08 +00:00
[module/cpu]
2022-04-22 16:37:41 +00:00
inherit = powerline-templates/right-to-left-item
background = ${colors.purple}
background-next = ${colors.cyan}
2022-04-02 23:18:08 +00:00
type = internal/cpu
2022-04-03 12:37:27 +00:00
interval = 20
label = %percentage:2%%
2022-04-03 20:36:11 +00:00
label-background = ${colors.purple}
2022-04-03 12:37:27 +00:00
label-foreground = ${colors.background}
label-padding = 1
2022-04-02 23:18:08 +00:00
[module/date]
2022-04-22 16:37:41 +00:00
inherit = powerline-templates/right-to-left-item
background = ${colors.pink}
background-next = ${colors.purple}
2022-04-02 23:18:08 +00:00
type = internal/date
interval = 1
date = %H:%M
2022-04-22 16:37:41 +00:00
date-alt = %d %m %Y %H:%M:%S
2022-04-02 23:18:08 +00:00
2022-04-03 18:08:23 +00:00
label =﨟 %date%
2022-04-03 12:37:27 +00:00
label-foreground = ${colors.background}
2022-04-03 20:36:11 +00:00
label-background = ${colors.pink}
2022-04-03 12:37:27 +00:00
label-padding = 1
2022-04-02 23:18:08 +00:00
[settings]
screenchange-reload = true
pseudo-transparency = false
# vim:ft=dosini