dotfiles/.config/polybar/config.ini

238 lines
6.1 KiB
INI

;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
background = #282A2E
background-alt = #373B41
foreground = #C5C8C6
primary = #F0C674
secondary = #8ABEB7
#alert = #A54242
disabled = #707880
[bar/example]
width = 100%
height = 16pt
radius = 0
; dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 1.5pt
border-size = 0pt
border-color = #00000000
padding-left = 0
padding-right = 0
module-margin = 1
#separator =
#separator-foreground = ${colors.disabled}
font-0 = "Hack Nerd Font:style=Regular:size=12;3"
font-1 = "Hack Nerd Font:style=Regular:size=14;3"
modules-left = xworkspaces arrow xwindow
modules-center =
modules-right = battery xkeyboard memory cpu mywlan date
#fixed-center = false
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
#tray-position = right
; wm-restack = generic
; wm-restack = bspwm
; wm-restack = i3
; override-redirect = true
[module/mywlan]
type = custom/script
exec = ~/.config/polybar/scripts/wlan.sh
interval = 5
format = <label>
format-foreground = ${colors.foreground}
label = %output%
click-left = ~/.config/rofi/programs/rofi-wifi-menu.sh
[module/battery]
type = internal/battery
full-at = 100
low-at = 15
battery = BAT0
adapter = ucsi-source-psy-USBC000:001
poll-interval = 5
label-discharging = PWR: %percentage%%
label-charging = CHR: %percentage%%
label-low = LOW: %percentage%%
format-discharging-foreground = ${colors.foreground}
format-discharging-background = ${colors.background}
format-charging-foreground = ${colors.foreground}
format-charging-background = ${colors.background}
format-low = <label-low>
format-low-foreground = #FF0000
format-low-background = ${colors.background}
label-full = PWR: %percentage%%
format-full = <label-full>
format-full-foreground = ${colors.foreground}
format-full-background = ${colors.background}
[module/arrow]
type = custom/text
content =
content-foreground = ${colors.foreground}
[module/voidd]
type = custom/text
content = -
content-foreground = ${colors.background}
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colors.background}
label-active-foreground = ${colors.foreground}
label-active-underline = ${colors.foreground}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-occupied-background = ${colors.foreground}
label-occupied-foreground = ${colors.background}
label-urgent = %name%
label-urgent-background = #FF0000
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title%
label-maxlen = 70
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/alsa]
type = internal/alsa
master-soundcard = hw:0
speaker-soundcard = hw:0
headphone-soundcard = hw:0
format-volume-prefix = "VOL: "
format-volume-prefix-foreground = #000000
format-volume-prefix-background = #787878
format-volume = <label-volume>
label-volume = %percentage%%
label-volume-foreground = #000000
label-volume-background = #787878
label-muted = muted
label-muted-foreground = #000000
label-muted-background = #787878
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = caps lock
blacklist-1 = num lock
label-layout = %layout%
label-layout-foreground = ${colors.foreground}
label-layout-background = ${colors.background}
[module/memory]
type = internal/memory
interval = 1
format-prefix = "RAM: "
format-prefix-foreground = ${colors.foreground}
format-prefix-background = ${colors.background}
label = %percentage_used:2%%
label-foreground = ${colors.foreground}
label-background = ${colors.background}
[module/cpu]
type = internal/cpu
interval = 1
format-prefix = "CPU: "
format-prefix-foreground = ${colors.foreground}
format-prefix-background = ${colors.background}
label = %percentage:2%%
label-foreground = ${colors.foreground}
label-background = ${colors.background}
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
[module/wlan]
type = internal/network
interface-type = wireless
interface = wlp0s20f3
interval = 3
ping-interval = 5
label-connected = WLAN Connected
label-connected-foreground = #000000
label-disconnected = WLAN Disconnected
label-disconnected-foreground = #000000
label-connected-background = #E4E4E4
label-disconnected-background = #E4E4E4
label-packetloss = ⚠ WLAN Connected
label-packetloss-foreground = #FFC110
label-packetloss-background = #E4E4E4
[module/date]
type = internal/date
interval = 1
date = %r %D
date-alt = %r %D
label = %date%
label-foreground = ${colors.foreground}
label-background = ${colors.background}
format-suffix = -
format-suffix-foreground = ${colors.background}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini