Files
home_server/dotfiles/polybar/config_powerline
T
2024-02-03 11:58:42 +01:00

318 lines
11 KiB
Plaintext

[colors]
#custom_foreground = ${xrdb:custom_foreground}
#custom_background_dark = ${xrdb:custom_background_dark}
#custom_background_light = ${xrdb:custom_background_light}
#custom_primary = ${xrdb:custom_primary}
#custom_warn = ${xrdb:custom_warn}
[bar/bar]
monitor = eDP1
height = 25
bottom = false
fixed-center = false
background = ${colors.custom_background_dark}
foreground = ${colors.custom_foreground}
font-0 = Iosevka Term:fontformat=truetype:pixelsize=8:antialias=true;2
font-1 = Iosevka Nerd Font Mono:fontformat=truetype:size=14:antialias=true;3
font-2 = Material Icons:fontformat=truetype:pixelsize=10:antialias=true;3
modules-left = left_end i3 right_end
modules-center = left_end mpd_controls divider mpd right_end
modules-right = left_end battery memory divider cpu divider temperature divider wifi_down wifi_up eth_down eth_up divider volume divider date divider time right_end
[module/i3]
type = internal/i3
index-sort = true
wrapping-scroll = true
strip-wsnumbers = false
pin-workspaces = true
ws-icon-0 = 1;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-1 = 2;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-2 = 3;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-3 = 4;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-4 = 5;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-5 = 6;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-6 = 7;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-7 = 8;%{T3}%{T-} :: %{T3}%{T-}
ws-icon-8 = 9;%{T3}%{T-} :: %{T3}%{T-}
label-separator = |
label-separator-padding = 2
label-separator-foreground = ${colors.custom_background_light}
label-focused = %icon%
label-focused-foreground = ${colors.custom_primary}
label-focused-background = ${colors.custom_background_dark}
label-unfocused = %icon%
label-unfocused-foreground = ${colors.custom_background_light}
label-unfocused-background = ${colors.custom_background_dark}
label-visible = %icon%
label-visible-foreground = ${colors.custom_foreground}
label-visible-background = ${colors.custom_background_dark}
label-urgent = %icon%
label-urgent-foreground = ${colors.custom_warn}
label-urgent-background = ${colors.custom_background_dark}
[module/divider]
type = custom/text
content = " | "
content-foreground = ${colors.custom_background_light}
content-background = ${colors.custom_background_dark}
[module/left_end]
type = custom/text
content = " -----[ "
content-foreground = ${colors.custom_background_light}
content-background = ${colors.custom_background_dark}
[module/right_end]
type = custom/text
content = " ]----- "
content-foreground = ${colors.custom_background_light}
content-background = ${colors.custom_background_dark}
[module/mpd]
type = internal/mpd
format-playing = <label-song>
format-paused = <label-song>
format-stopped = <label-song>
format-playing-prefix = "%{T3}%{T-} "
format-playing-prefix-foreground = ${colors.custom_primary}
format-playing-prefix-background = ${colors.custom_background_dark}
format-paused-prefix = "%{T3}%{T-} "
format-paused-prefix-foreground = ${colors.custom_primary}
format-paused-prefix-background = ${colors.custom_background_dark}
format-stopped-prefix = "%{T3}%{T-} "
format-stopped-prefix-foreground = ${colors.custom_primary}
format-stopped-prefix-background = ${colors.custom_background_dark}
label-song-maxlen = 100
label-song-ellipsis = true
label-song = %artist% - %title%
label-song-foreground = ${colors.custom_foreground}
label-song-background = ${colors.custom_background_dark}
[module/mpd_controls]
type = internal/mpd
format-playing = <icon-prev><toggle><icon-next>
format-paused = <icon-prev><toggle><icon-next>
format-stopped = <icon-prev><toggle><icon-next>
icon-play = %{T3}%{T-}
icon-play-foreground = ${colors.custom_foreground}
icon-play-background = ${colors.custom_background_dark}
icon-pause = %{T3}%{T-}
icon-pause-foreground = ${colors.custom_foreground}
icon-pause-background = ${colors.custom_background_dark}
icon-prev = %{T3}%{T-}
icon-prev-foreground = ${colors.custom_foreground}
icon-prev-background = ${colors.custom_background_dark}
icon-next = %{T3}%{T-}
icon-next-foreground = ${colors.custom_foreground}
icon-next-background = ${colors.custom_background_dark}
[module/cpu]
type = internal/cpu
interval = 1
format-prefix = %{T3}%{T-}
format-prefix-foreground = ${colors.custom_primary}
format-prefix-background = ${colors.custom_background_dark}
label = " %percentage:3%%"
label-foreground = ${colors.custom_foreground}
label-background = ${colors.custom_background_dark}
[module/memory]
type = internal/memory
interval = 1
format-prefix = %{T3}%{T-}
format-prefix-foreground = ${colors.custom_primary}
format-prefix-background = ${colors.custom_background_dark}
label = " %percentage_used:3%%"
label-foreground = ${colors.custom_foreground}
label-background = ${colors.custom_background_dark}
[module/wifi_down]
type = internal/network
interface = wlp3s0
interval = 1.0
accumulate-stats = true
format-connected-prefix = %{T3}%{T-}
format-connected-prefix-foreground = ${colors.custom_primary}
format-connected-prefix-background = ${colors.custom_background_dark}
label-connected = " %downspeed:8% "
label-connected-foreground = ${colors.custom_foreground}
label-connected-background = ${colors.custom_background_dark}
[module/wifi_up]
type = internal/network
interface = wlp3s0
interval = 1.0
accumulate-stats = true
format-connected-prefix = %{T3}%{T-}
format-connected-prefix-foreground = ${colors.custom_primary}
format-connected-prefix-background = ${colors.custom_background_dark}
label-connected = " %upspeed:8%"
label-connected-foreground = ${colors.custom_foreground}
label-connected-background = ${colors.custom_background_dark}
[module/eth_down]
type = internal/network
interface = enp0s31f6
interval = 1.0
accumulate-stats = true
format-connected-prefix = %{T3}%{T-}
format-connected-prefix-foreground = ${colors.custom_primary}
format-connected-prefix-background = ${colors.custom_background_dark}
label-connected = " %downspeed:8% "
label-connected-foreground = ${colors.custom_foreground}
label-connected-background = ${colors.custom_background_dark}
[module/eth_up]
type = internal/network
interface = enp0s31f6
interval = 1.0
accumulate-stats = true
format-connected-prefix = %{T3}%{T-}
format-connected-prefix-foreground = ${colors.custom_primary}
format-connected-prefix-background = ${colors.custom_background_dark}
label-connected = " %upspeed:8%"
label-connected-foreground = ${colors.custom_foreground}
label-connected-background = ${colors.custom_background_dark}
[module/date]
type = internal/date
interval = 1
date = %d-%m-%Y
date-alt = %d-%m-%Y
format-prefix = %{T3}%{T-}
format-prefix-foreground = ${colors.custom_primary}
format-prefix-background = ${colors.custom_background_dark}
label = " %date%"
label-foreground = ${colors.custom_foreground}
label-background = ${colors.custom_background_dark}
[module/time]
type = internal/date
interval = 1
time = %H:%M
time-alt = %H:%M:%S
format-prefix = %{T3}%{T-}
format-prefix-foreground = ${colors.custom_primary}
format-prefix-background = ${colors.custom_background_dark}
label = " %time%"
label-foreground = ${colors.custom_foreground}
label-background = ${colors.custom_background_dark}
[module/volume]
type = internal/alsa
interval = 0.1
format-volume-prefix = %{T3}%{T-}
format-volume-prefix-foreground = ${colors.custom_primary}
format-volume-prefix-background = ${colors.custom_background_dark}
label-volume = " %percentage:3%%"
label-volume-foreground = ${colors.custom_foreground}
label-volume-background = ${colors.custom_background_dark}
format-muted-prefix = %{T3}%{T-}
format-muted-prefix-foreground = ${colors.custom_warn}
format-muted-prefix-background = ${colors.custom_background_dark}
label-muted = " %percentage:3%%"
label-muted-foreground = ${colors.custom_foreground}
label-muted-background = ${colors.custom_background_dark}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 100
format-charging = <label-charging>
format-charging-prefix = %{T3}%{T-}
format-charging-prefix-foreground = ${colors.custom_primary}
format-charging-prefix-background = ${colors.custom_background_dark}
format-charging-suffix = " | "
format-charging-suffix-foreground = ${colors.custom_background_light}
format-charging-suffix-background = ${colors.custom_background_dark}
format-discharging = <label-discharging>
format-discharging-prefix = %{T3}%{T-}
format-discharging-prefix-foreground = ${colors.custom_warn}
format-discharging-prefix-background = ${colors.custom_background_dark}
format-discharging-suffix = " | "
format-discharging-suffix-foreground = ${colors.custom_background_light}
format-discharging-suffix-background = ${colors.custom_background_dark}
format-full = <label-full>
format-full-prefix = %{T3}%{T-}
format-full-prefix-foreground = ${colors.custom_primary}
format-full-prefix-background = ${colors.custom_background_dark}
format-full-suffix = " | "
format-full-suffix-foreground = ${colors.custom_background_light}
format-full-suffix-background = ${colors.custom_background_dark}
label-charging = " %percentage:3%%"
label-charging-foreground = ${colors.custom_foreground}
label-charging-background = ${colors.custom_background_dark}
label-discharging = " %percentage:3%%"
label-discharging-foreground = ${colors.custom_foreground}
label-discharging-background = ${colors.custom_background_dark}
label-full = " %percentage:3%%"
label-full-foreground = ${colors.custom_foreground}
label-full-background = ${colors.custom_background_dark}
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 70
format-prefix = %{T3}%{T-}
format-prefix-foreground = ${colors.custom_primary}
format-prefix-background = ${colors.custom_background_dark}
label = " %temperature:3%"
label-foreground = ${colors.custom_foreground}
label-background = ${colors.custom_background_dark}
format-warn-prefix = %{T3}%{T-}
format-warn-prefix-foreground = ${colors.custom_warn}
format-warn-prefix-background = ${colors.custom_background_dark}
label-warn = " %temperature:3%"
label-warn-foreground = ${colors.custom_foreground}
label-warn-background = ${colors.custom_background_dark}
[settings]
screenchange-reload = true
[global/wm]
margin-top = 0
margin-bottom = 0