1
0
Fork 0
dotfiles/dot_config/polybar/config

363 lines
7.5 KiB
Plaintext

[colors]
background = #222
background-alt = #444
foreground = #dfdfdf
foreground-alt = #55
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[global/wm]
margin-top = 5
margin-bottom = 5
;offset-x = 0
;offset-y = 0
;override-redirect = true
[section/base]
background = ${colors.background}
foreground = ${colors.foreground}
width = 100%
height = 30
wm-restack = bspwm
enable-ipc = true
overline-size = 0
overline-color = #f00
underline-size = 0
underline-color = #ff0000
border-bottom-size = 4
border-bottom-color = #3f3f3f
spacing = 1
padding-left = 0
padding-right = 1
module-margin-left = 1
module-margin-right = 2
font-0 = Iosevka Nerd Font:size=14;3
font-1 = Font Awesome:size=8;5
font-2 = NotoEmoji:size=8;
font-3 = fixed:pixelsize=8;1
font-4 = unifont:fontformat=truetype:size=8:antialias=false;0
font-5 = siji:pixelsize=5;1
[bar/secondary]
monitor = ${env:MONITOR:DP-2-2-8}
inherit = section/base
modules-left = ewmh xwindow
; modules-center =
; modules-right = mpd volume memory wlan eth battery temperature date
; wlan eth battery temperature date powermenu
[bar/bascht]
monitor = ${env:MONITOR:DP2-1}
monitor-fallback = DP-2
inherit = section/base
modules-left = ewmh xwindow
modules-center =
modules-right = ${env:BAR_MODULES:mpd volume memory wlan eth battery temperature date}
; wlan eth battery temperature date powermenu
tray-position = right
tray-padding = 0
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-underline = ${colors.secondary}
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
label-layout = %layout%
label-indicator-padding = 2
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
mount-1 = /home
mount-2 = /mnt/mmc
label-mounted = %mountpoint%: %percentage_free%
label-unmounted = %mountpoint%: not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/ewmh]
type = ${env:WINDOW_MODULE:internal/bspwm}
index-sort = true
wrapping-scroll = false
strip-wsnumbers = false
pin-workspaces = true
enable-click = true
inline-mode = false
label-focused = "● %icon%"
label-visible = "● v%icon%"
label-unfocused = "○ %icon%"
label-empty = "○"
label-occupied = "◍ %icon%"
label-urgent = "● %icon%"
label-separator = " "
label-occupied-padding = 1
; Available tags:
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
; <label-mode> (default)
; format = <label-state> <label-mode>
; Available tokens:
; %mode%
; Default: %mode%
label-mode = %mode%
label-mode-padding = 1
label-mode-background = #e60053
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
;label-focused = %icon%
label-focused-foreground = #ffffff
label-focused-background = #3f3f3f
label-focused-underline = #fba922
label-focused-padding = 1
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
;label-unfocused = %name%:%icon%
label-unfocused-padding = 1
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
;label-visible = %name%:icon%
;label-visible-underline = #555555
;label-visible-padding = 4
; Available tokens:
; %name%
; %icon%
; %index%
; Default: %icon% %name%
;label-urgent = %index%
label-urgent-foreground = #000000
label-urgent-background = #bd2c40
label-urgent-padding = 1
ws-icon-0 = work;
ws-icon-1 = web;
ws-icon-2 = comm;
ws-icon-3 = docs;
ws-icon-4 = media;
ws-icon-5 = files;
ws-icon-6 = graphics;
ws-icon-7 = dump;
ws-icon-default = 
[module/mpd]
type = internal/mpd
format-online = <label-song> <toggle> <icon-next> <icon-random>
format-paused = <toggle>
label-song-maxlen = 19
label-song-ellipsis = false
icon-prev = 
icon-play = 
icon-pause = 
icon-next = 
icon-random = 
icon-repeat = 
toggle-on-foreground = ${colors.primary}
toggle-off-foreground = #66
[module/backlight]
type = internal/backlight
card = intel_backlight
enable-scroll = true
format = <ramp>
label = BL
ramp-0 = 1
ramp-1 = 2
ramp-2 = 3
ramp-3 = 4
ramp-4 = 5
; [module/xbacklight]
; type = internal/xbacklight
; output = eDP-1
; enable-scroll = true
; ; Available tokens:
; ; %percentage% (default)
; label = %percentage%%
;
; ; Only applies if <ramp> is used
; ramp-0 = 🌕
; ramp-1 = 🌔
; ramp-2 = 🌓
; ramp-3 = 🌒
; ramp-4 = 🌑
[module/cpu]
type = internal/cpu
interval = 5
format-prefix = "C "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage%
[module/memory]
type = internal/memory
interval = 5
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = %gb_used%
[module/wlan]
type = internal/network
interface = wlp59s0
interval = 5.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
format-disconnected-underline = ${self.format-connected-underline}
label-connected = %essid%
label-disconnected =
label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = 
ramp-signal-1 = 
ramp-signal-2 = 
ramp-signal-3 = 
ramp-signal-4 = 
ramp-signal-foreground = ${colors.foreground-alt}
animation-packetloss-0 = 
animation-packetloss-0-foreground = #ffa64c
animation-packetloss-1 = 
animation-packetloss-1-foreground = ${bar/top.foreground}
animation-packetloss-framerate = 500
[module/eth]
type = internal/network
interface = ${env:BAR_ETH_INTERFACE:eth0}
interval = 10.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-foreground-foreground = ${colors.foreground-alt}
label-connected = %upspeed% %downspeed%
; 
format-disconnected-underline = ${self.format-connected-underline}
label-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
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/volume]
type = internal/pulseaudio
format-volume = <ramp-volume><label-volume>
sink = ${env:BAR_PA_SINK}
label-muted = 
label-muted-foreground = #22
ramp-volume-0 = ""
ramp-volume-1 = ""
ramp-volume-2 = ""
ramp-volume-foreground = ${colors.foreground-alt}
format-volume-foreground = ${colors.foreground-alt}
click-right = pavucontrol
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 95
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full = 
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 80
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}