dotfiles/home/.config/polybar/config

356 lines
7.2 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
[bar/bascht]
monitor = ${env:MONITOR:eDP-1}
width = 100%
height = 30
;offset-x = 0
;offset-y = 0
;override-redirect = true
wm-restack = i3
;background = ${xrdb:color9}
background = ${colors.background}
foreground = ${colors.foreground}
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 = ShureTechMono Nerd Font:size=16;3
font-1 = Font Awesome:size=10;5
font-2 = NotoEmoji:size=10;
font-3 = fixed:pixelsize=10;1
font-4 = unifont:fontformat=truetype:size=8:antialias=false;0
font-5 = siji:pixelsize=5;1
modules-left = emwh
modules-center = xwindow
modules-right = mpd volume memory wlan eth battery temperature date
; wlan eth battery temperature date powermenu
tray-position = right
tray-padding = 0
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
[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/emwh]
type = internal/i3
index-sort = true
wrapping-scroll = false
strip-wsnumbers = false
pin-workspaces = true
enable-click = true
; 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 = 0
label-mode-background = #e60053
; Available tokens:
; %name%
; %icon%
; %index%
; %output%
; Default: %icon% %name%
label-focused = %name%
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%
label-visible-underline = #555555
label-visible-padding = 1
; 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 = 0:
;ws-icon-1 = 1:♛
;ws-icon-2 = 2;♜
;ws-icon-3 = 3;♝
;ws-icon-4 = 4;♞
;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 = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp4s0
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}
[module/eth]
type = internal/network
interface = eth0
interval = 10.0
format-connected-underline = #55aa55
format-connected-prefix = "CC "
format-connected-foreground-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
; 
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:%S
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>
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 = 60
format = <ramp><label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
label-open =  power
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 = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0