dotfiles/.config/polybar/config

312 lines
7.6 KiB
INI
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; 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:color0:#222}
foreground = ${xrdb:color7:#222}
foreground-alt = ${xrdb:color7:#222}
primary = ${xrdb:color1:#222}
secondary = ${xrdb:color2:#222}
alert = ${xrdb:color3:#222}
[bar/right]
monitor = ${env:MONITOR:DVI-D-2}
width = 100%:-30
height = 30
offset-x = 15
offset-y = 12
radius = 0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 0
line-color = ${xrdb:color3:#222}
border-size = 3
border-color = ${xrdb:color1:#222}
padding-left = 2
padding-right = 2
module-margin-left = 1
module-margin-right = 1
font-0 = DaddyTimeMono:pixelsize=10;3
font-1 = unifont:fontformat=truetype:size=8:antialias=false;2
font-2 = Siji:pixelsize=11;2
font-3 = Symbols Nerd Font:pixelsize=10;2
modules-left = bspwm
modules-center = date
modules-right = filesystem pulseaudio xkeyboard memory cpu powermenu
wm-restack = bspwm
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
cursor-click = pointer
;cursor-scroll = ns-resize
[bar/left]
monitor = ${env:MONITOR:HDMI-1}
width = 100%:-30
height = 30
offset-x = 15
offset-y = 12
radius = 0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 0
line-color = ${xrdb:color3:#222}
border-size = 3
border-color = ${xrdb:color1:#222}
padding-left = 2
padding-right = 2
module-margin-left = 1
module-margin-right = 1
font-0 = DaddyTimeMono:pixelsize=10;3
font-1 = unifont:fontformat=truetype:size=8:antialias=false;2
font-2 = Siji:pixelsize=11;2
font-3 = Symbols Nerd Font:pixelsize=10;2
modules-left = bspwm
modules-center = date
modules-right = spotify mullvad-status notification-status
wm-restack = bspwm
cursor-click = pointer
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label-layout = %layout%
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %mountpoint%: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
label-focused = %name%
label-focused-foreground = ${colors.primary}
label-focused-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%!
label-urgent-background = ${xrdb:color1:#222}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 1
; Separator in between workspaces
; label-separator = |
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label = %percentage_used%%
[module/eth]
type = internal/network
interface = enp4s0
interval = 3.0
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix =
format-prefix-foreground = ${colors.foreground-alt}
label = %{A3:dunstify ' Calendar' "$(cal)":}%date%%{A} %time%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume =  %percentage%%
label-volume-foreground = ${root.foreground}
label-muted =  muted
label-muted-foreground = #666
bar-volume-width = 25
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = -
bar-volume-fill-font = 2
bar-volume-empty = -
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
; [module/temperature]
; type = internal/temperature
; thermal-zone = 0
; warn-temperature = 60
; format = <ramp> <label>
; format-underline = #f50a4d
; format-warn = <ramp> <label-warn>
; format-warn-underline = ${self.format-underline}
; label = %temperature-c%
; label-warn = %temperature-c%
; label-warn-foreground = ${colors.secondary}
; ramp-0 = 
; ramp-1 = 
; ramp-2 = 
; ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open =
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = reboot
menu-0-1 = power off
menu-0-1-exec = sudo poweroff
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false
; [module/pipewire-microphone]
; type = custom/script
; exec = ~/.config/polybar/scripts/pipewire-microphone.sh
; tail = true
; click-left = ~/.config/polybar/scripts/pipewire-microphone.sh --toggle &
; [module/pipewire]
; type = custom/script
; label = "%output%"
; label-font = 3
; interval = 2.0
; exec = ~/.config/polybar/scripts/pipewire.sh
; click-right = exec pavucontrol &
; click-left = ~/.config/polybar/scripts/pipewire.sh mute &
; scroll-up = ~/.config/polybar/scripts/pipewire.sh up &
; scroll-down = ~/.config/polybar/scripts/pipewire.sh down &
[module/spotify]
type = custom/script
interval = 1
format-prefix = " "
format = <label>
exec = /usr/bin/polybar-spotify -f '{artist}: {song}'
;control players (optional)
click-left = playerctl --player=spotify play-pause
[module/mullvad-status]
type = custom/script
exec = ~/.config/polybar/scripts/mullvad-status.sh | sed 's/VPN disconnected//g'
interval = 2
format-prefix = " "
[module/notification-status]
type = custom/script
exec = ~/.config/polybar/scripts/notification-status.sh
interval = 2
format-prefix = " "
; vim:ft=dosini