You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

531 lines
14 KiB
Plaintext

2 years ago
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
;background = ${xrdb:background}
background = ${xrdb:color0}
;foreground = #676b73
foreground = ${xrdb:foreground}
bg = ${xrdb:background}
color0 = ${xrdb:color0}
color1 = ${xrdb:color1}
color2 = ${xrdb:color2}
color3 = ${xrdb:color3}
color4 = ${xrdb:color4}
color5 = ${xrdb:color5}
color6 = ${xrdb:color6}
color7 = ${xrdb:color7}
color8 = ${xrdb:color8}
color9 = ${xrdb:color9}
color10 = ${xrdb:color10}
color11 = ${xrdb:color11}
color12 = ${xrdb:color12}
color13 = ${xrdb:color13}
color14 = ${xrdb:color14}
color15 = ${xrdb:color15}
dark-light = #272A2B
active-light = #313435
[bar/example]
tray-position = right
monitor = LVDS1
width = 100%
height = 16
padding-left = 1
padding-right = 0
padding-bottom = 4
background = ${colors.background}
foreground = ${colors.foreground}
bottom = false
border-top-size = 0
border-bottom-size = 4
border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
line-size = 1
wm-restack = bspwm
modules-left = round-left bspwm round-right empty-space
modules-center = mpd
modules-right = pipewire-microphone pulseaudio-control mail round-left cpu temperature round-right updates wlan wired mem xbacklight battery round-left time round-right powermenu
font-0 = JetBrainsMono Nerd Font:style=Bold:pixelsize=9;3
font-1 = JetBrainsMono Nerd Font:size=14;4
# font-2 = Material Design Icons:style=Bold:size=9;3
# font-3 = unifont:fontformat=truetype:size=9;3
[bar/external1]
tray-position = right
monitor = HDMI2
width = 100%
height = 16
padding-left = 1
padding-right = 0
padding-bottom = 4
background = ${colors.background}
foreground = ${colors.foreground}
bottom = false
border-top-size = 0
border-bottom-size = 4
border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
line-size = 1
wm-restack = bspwm
modules-left = round-left bspwm round-right empty-space
modules-center = mpd
modules-right = pipewire-microphone pulseaudio-control mail round-left cpu temperature round-right updates wlan wired mem xbacklight battery round-left time round-right powermenu
font-0 = JetBrainsMono Nerd Font:style=Bold:pixelsize=9;3
font-1 = JetBrainsMono Nerd Font:size=14;4
# font-2 = Material Design Icons:style=Bold:size=9;3
# font-3 = unifont:fontformat=truetype:size=9;3
[bar/example2]
tray-position = right
monitor = DisplayPort-0
width = 100%
height = 22
padding-left = 1
padding-right = 0
padding-bottom = 4
background = ${colors.background}
foreground = ${colors.foreground}
bottom = false
border-top-size = 0
border-bottom-size = 4
border-top-color = ${colors.background}
border-bottom-color = ${colors.background}
line-size = 1
wm-restack = bspwm
modules-left = round-left bspwm round-right empty-space
modules-center =
modules-right = pipewire-microphone pulseaudio-control mail round-left cpu round-right updates wlan mem xbacklight battery round-left time round-right powermenu
font-0 = JetBrainsMono Nerd Font:style=Bold:pixelsize=9;3
font-1 = JetBrainsMono Nerd Font:size=14;4
# font-2 = Material Design Icons:style=Bold:size=9;3
# font-3 = unifont:fontformat=truetype:size=9;3
[module/pulseaudio-control]
type = custom/script
tail = true
format-underline = ${colors.cyan}
label-padding = 2
label-foreground = ${colors.foreground}
# Icons mixed from Font Awesome 5 and Material Icons
# You can copy-paste your options for each possible action, which is more
# trouble-free but repetitive, or apply only the relevant ones (for example
# --sink-blacklist is only needed for next-sink).
exec = pulseaudio-control --icons-volume " , " --icon-muted " " --sink-nicknames-from "device.description" --sink-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: ﰝ Speakers" --sink-nickname "alsa_output.pci-0000_09_00.3.analog-stereo: Headphones" --sink-nickname "alsa_output.pci-0000_07_00.1.hdmi-stereo: HDMI" listen
click-right = exec pavucontrol &
click-left = pulseaudio-control togmute
click-middle = pulseaudio-control --sink-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2" next-sink
scroll-up = pulseaudio-control --volume-max 130 up
scroll-down = pulseaudio-control --volume-max 130 down
[module/polywins]
type = custom/script
exec = ~/.config/polybar/scripts/polywins.sh 2>/dev/null
format = <label>
format-background = #2a2e36
label = %output%
label-padding = 0
tail = true
[module/empty-space]
type = custom/text
content = " "
[module/round-left]
type = custom/text
content = %{T3}%{T-}
content-foreground = ${colors.bg}
[module/round-right]
type = custom/text
content = %{T3}%{T-}
content-foreground = ${colors.bg}
[module/roundd-left]
type = custom/text
content = %{T3}%{T-}
content-foreground = #a3be8c
[module/roundd-right]
type = custom/text
content = %{T3}%{T-}
content-foreground = #a3be8c
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 70
format-foreground = ${colors.color3}
format = <ramp> <label>
format-warn = <ramp> <label-warn>
format-padding = 1
label = %temperature%
label-warn = %temperature%
ramp-0 = ""
ramp-font = 3
# ramp-foreground = #a4ebf3
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
inline-mode = true
enable-click = true
enable-scroll = true
reverse-scroll = false
format = <label-state>
ws-icon-0 = "1;%{F#F9DE8F}  "
ws-icon-1 = "2;%{F#ff9b93}  "
ws-icon-2 = "3;%{F#95e1d3}  "
ws-icon-3 = "4;%{F#81A1C1}  "
ws-icon-4 = "5;%{F#A3BE8C} ﱮ "
ws-icon-5 = "6;%{F#F9DE8F}  "
ws-icon-6 = "7;%{F#ff9b93}  "
ws-icon-7 = "8;%{F#95e1d3}  "
ws-icon-8 = "9;%{F#81A1C1}  "
label-separator = ""
label-separator-background = ${colors.bg}
label-focused = %icon%
label-focused-foreground = ${colors.foreground}
label-focused-padding = 1
label-focused-background = ${colors.color8}
label-focused-margin = 0
label-occupied = %icon%
label-occupied-foreground = ${colors.color8}
label-occupied-background = ${colors.bg}
label-occupied-padding = 1
label-occupied-margin = 0
label-empty = %icon%
label-empty-foreground = ${colors.foreground}
label-empty-padding = 1
label-empty-background = ${colors.bg}
label-empty-margin = 0
label-urgent = %icon%
label-urgent-foreground = ${colors.bg}
label-urgent-background = ${colors.color1}
label-urgent-padding = 1
[module/alsa]
type = internal/alsa
format-volume = <label-volume> <bar-volume>
label-volume = " "
label-volume-foreground = ${colors.foreground}
format-muted-foreground = ${colors.foreground}
label-muted = 󰚙
format-muted-padding = 1
bar-volume-width = 10
bar-volume-foreground-0 = #61afef
bar-volume-foreground-1 = #61afef
bar-volume-foreground-2 = #61afef
bar-volume-foreground-3 = #61afef
bar-volume-foreground-4 = #61afef
bar-volume-foreground-5 = #61afef
bar-volume-foreground-6 = #61afef
bar-volume-gradient = false
bar-volume-indicator =
bar-volume-indicator-foreground = #61afef
bar-volume-indicator-font = 2
bar-volume-fill = ━
bar-volume-fill-foreground = #61afef
bar-volume-fill-font = 2
bar-volume-empty = ━
bar-volume-empty-font = 2
bar-volume-empty-foreground = #565c64
format-volume-padding = 2
[module/time]
type = internal/date
interval = 60
format = <label>
format-background = ${colors.bg}
format-foreground = #82868e
date =  %H:%M%{F-}
time-alt =  %a, %b %d%{F-}
label = %date%%time%
[module/mem]
type = custom/script
exec = free -m | sed -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p'
format = <label>
format-prefix = "  "
label = %output% MB
label-padding = 1
format-prefix-foreground = #d19a66
[module/updates]
type = custom/script
exec = xbps-updates
format = <label>
interval = 300
label = %output%
label-padding = 2
label-foreground = ${colors.color1}
[module/mail]
type = custom/script
exec = mails_unread.sh
format = <label>
interval = 10
label = %output%
label-padding = 2
click-left = alacritty -e "neomutt"
click-right = mw -Y
label-foreground = ${colors.color1}
[module/powermenu]
type = custom/text
content =" "
content-padding = 2
click-left = doas zzz &
content-foreground = ${colors.color1}
[module/wlan]
type = internal/network
# interface = wlp1s0
interface-type = wireless
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = ""
format-connected-prefix-padding = 1
label-connected = "%essid%: %signal%% "
label-connected-foreground = ${colors.color2}
format-connected-prefix-foreground = ${colors.color2}
label-connected-padding = 1
format-disconnected = <label-disconnected>
label-disconnected = "睊 "
label-disconnected-foreground = ${colors.color1}
ramp-signal-0 = 😱
ramp-signal-1 = 😠
ramp-signal-2 = 😒
ramp-signal-3 = 😊
ramp-signal-4 = 😃
ramp-signal-5 = 😈
[module/wired]
type = internal/network
# interface = eno0
interface-type = wired
interval = 1.0
format-connected = <label-connected>
format-connected-prefix = 
format-connected-prefix-foreground = ${colors.color3}
format-connected-prefix-padding = 1
label-connected = "%linkspeed%"
label-connected-foreground = ${colors.color3}
label-connected-padding = 1
label-disconnected = ""
label-disconnected-foreground = ${colors.color1}
label-disconnected-padding = 1
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 100
format-charging = <animation-charging> <label-charging>
label-charging = %percentage%%
format-charging-foreground = ${colors.color4}
format-charging-background = ${colors.background}
format-discharging = <ramp-capacity> <label-discharging>
label-discharging = %percentage%%
format-discharging-foreground = ${colors.foreground}
format-discharging-background = ${colors.background}
format-full-prefix = " "
format-full-prefix-foreground = #A0E8A2
format-foreground = ${colors.color4}
format-background = ${colors.background}
label-discharging-foreground = ${colors.foreground}
ramp-capacity-foreground = #A0E8A2
label-charging-foreground = ${colors.foreground}
label-padding = 1
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-3 = " "
animation-charging-4 = " "
animation-charging-foreground = #DF8890
animation-charging-framerate = 750
format-charging-padding = 1
format-discharging-padding = 1
[module/volume]
type = custom/script
exec = amixer get Master | awk '$0~/%/{print $4}' | tr -d '[]'
format = <label>
internal = 5.0
label = %output%
label-foreground = #BF616A
label-padding = 1
[module/xbacklight]
type = internal/xbacklight
format = <label>
format-prefix = " "
label = %percentage%
format-prefix-foreground = #61afef
label-foreground = #D8DEE9
format-padding = 1
[module/cpu]
type = internal/cpu
interval = 2.5
format-prefix =" "
format = <label>
label = "%percentage%% "
format-background = ${colors.bg}
format-foreground = ${colors.color4}
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...
[module/pipewire-microphone]
type = custom/script
exec = $HOME/.config/polybar/scripts/pipewire-microphone.sh
tail = true
click-left = $HOME/.config/polybar/scripts/pipewire-microphone.sh --toggle &
click-right = pavuctl
[module/mpd]
type = internal/mpd
host = 127.0.0.1
port = 6600
; Seconds to sleep between progressbar/song timer sync
; Default: 1
interval = 1
; Available tags:
; <label-song> (default)
; <label-time>
; <bar-progress>
; <toggle> - gets replaced with <icon-(pause|play)>
; <toggle-stop> - gets replaced with <icon-(stop|play)>
; <icon-random>
; <icon-repeat>
; <icon-repeatone> (deprecated)
; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone>
; <icon-consume>
; <icon-prev>
; <icon-stop>
; <icon-play>
; <icon-pause>
; <icon-next>
; <icon-seekb>
; <icon-seekf>
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> <bar-progress> <label-song>
format-playing = ${self.format-online}
format-paused = ${self.format-online}
format-stopped = ${self.format-online}
; Available tags:
; <label-offline>
; Default: ""
format-offline = <label-offline>
; Available tokens:
; %artist%
; %album-artist%
; %album%
; %date%
; %title%
; Default: %artist% - %title%
label-song = %artist% - %title%
; Available tokens:
; %elapsed%
; %total%
; Default: %elapsed% / %total%
;label-time = %elapsed% / %total%
; Available tokens:
; None
label-offline = ﱙ
; Only applies if <icon-X> is used
icon-play = ⏵
icon-pause = ⏸
icon-stop = ⏹
icon-prev = ⏮
icon-next = ⏭
icon-seekb = ⏪
icon-seekf = ⏩
icon-random = 🔀
icon-repeat = 🔁
icon-repeatone = 🔂
icon-single = 🔂
icon-consume = ✀
; Used to display the state of random/repeat/repeatone/single
; Only applies if <icon-[random|repeat|repeatone|single]> is used
toggle-on-foreground = #ff
toggle-off-foreground = #55
; Only applies if <bar-progress> is used
bar-progress-width = 45
bar-progress-indicator = |
bar-progress-fill = ─
bar-progress-empty = ─