dotfiles/config/bspwm/polybar
2021-01-31 14:01:25 +02:00

99 lines
2 KiB
Text

[settings]
enable-ipc = true
format-padding = 1
screenchange-reload = true
pseudo-transparency = true
[colors]
background = #262A2B
foreground = #DFDFDF
secondary = #008DCD
alert = #FF6C6B
[bar/bar]
width = 100%
height = 24
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
wm-restack = bspwm
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
modules-left = windowname
modules-center = bspwm
modules-right = pulseaudio archupd wifi-signal weather memory cpu keyboard time date
tray-position = right
tray-padding = 0
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
enable-click = true
fuzzy-match = true
enable-scroll = true
label-focused = 
label-focused-foreground = ${colors.secondary}
label-focused-padding = 2
label-occupied = 
label-occupied-foreground = ${colors.foreground}
label-occupied-padding = 2
label-urgent = 
label-urgent-foreground = ${colors.alert}
label-urgent-padding = 2
label-empty = 
label-empty-foreground = #58676C74
label-empty-padding = 2
[module/pulseaudio]
type = internal/pulseaudio
interval = 2
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 
ramp-volume-0 = 
[module/weather]
type = custom/script
exec = python3 ~/.config/polybar/scripts/weather.py
interval = 60
[module/archupd]
type = custom/script
exec = ~/.config/polybar/scripts/updates-pacman-aur.sh
interval = 60
[module/keyboard]
type = internal/xkeyboard
format-prefix = ""
label-layout =  %layout%
blacklist-0 = num lock
blacklist-1 = scroll lock
blacklist-2= caps lock
[module/cpu]
type = internal/cpu
format-prefix = " "
interval = 2
[module/memory]
type = internal/memory
interval = 2
label = %percentage_used%%
format-prefix = " "
[module/windowname]
type = internal/xwindow
label = %title%
label-maxlen = 90
[module/date]
type = internal/date
interval = 600
date = %d.%m.%Y
label =  %date%
[module/time]
type = internal/date
time = %H:%M
label =  %time%