# Default Configuration

Added in version 3.6.0.

Polybar's default configuration lives in `/etc/polybar/config.ini` and is loaded if no other configuration file can be found.

`Download`

      1;==========================================================
      2;
      3;
      4;   ██████╗  ██████╗ ██╗  ██╗   ██╗██████╗  █████╗ ██████╗
      5;   ██╔══██╗██╔═══██╗██║  ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
      6;   ██████╔╝██║   ██║██║   ╚████╔╝ ██████╔╝███████║██████╔╝
      7;   ██╔═══╝ ██║   ██║██║    ╚██╔╝  ██╔══██╗██╔══██║██╔══██╗
      8;   ██║     ╚██████╔╝███████╗██║   ██████╔╝██║  ██║██║  ██║
      9;   ╚═╝      ╚═════╝ ╚══════╝╚═╝   ╚═════╝ ╚═╝  ╚═╝╚═╝  ╚═╝
     10;
     11;
     12;   To learn more about how to configure Polybar
     13;   go to https://github.com/polybar/polybar
     14;
     15;   The README contains a lot of information
     16;
     17;==========================================================
     18
     19[colors]
     20background = #282A2E
     21background-alt = #373B41
     22foreground = #C5C8C6
     23primary = #F0C674
     24secondary = #8ABEB7
     25alert = #A54242
     26disabled = #707880
     27
     28[bar/example]
     29width = 100%
     30height = 24pt
     31radius = 6
     32
     33; dpi = 96
     34
     35background = ${colors.background}
     36foreground = ${colors.foreground}
     37
     38line-size = 3pt
     39
     40border-size = 4pt
     41border-color = #00000000
     42
     43padding-left = 0
     44padding-right = 1
     45
     46module-margin = 1
     47
     48separator = |
     49separator-foreground = ${colors.disabled}
     50
     51font-0 = monospace;2
     52
     53modules-left = xworkspaces xwindow
     54modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date
     55
     56cursor-click = pointer
     57cursor-scroll = ns-resize
     58
     59enable-ipc = true
     60
     61; wm-restack = generic
     62; wm-restack = bspwm
     63; wm-restack = i3
     64
     65; override-redirect = true
     66
     67; This module is not active by default (to enable it, add it to one of the
     68; modules-* list above).
     69; Please note that only a single tray can exist at any time. If you launch
     70; multiple bars with this module, only a single one will show it, the others
     71; will produce a warning. Which bar gets the module is timing dependent and can
     72; be quite random.
     73; For more information, see the documentation page for this module:
     74; https://polybar.readthedocs.io/en/stable/user/modules/tray.html
     75[module/systray]
     76type = internal/tray
     77
     78format-margin = 8pt
     79tray-spacing = 16pt
     80
     81[module/xworkspaces]
     82type = internal/xworkspaces
     83
     84label-active = %name%
     85label-active-background = ${colors.background-alt}
     86label-active-underline= ${colors.primary}
     87label-active-padding = 1
     88
     89label-occupied = %name%
     90label-occupied-padding = 1
     91
     92label-urgent = %name%
     93label-urgent-background = ${colors.alert}
     94label-urgent-padding = 1
     95
     96label-empty = %name%
     97label-empty-foreground = ${colors.disabled}
     98label-empty-padding = 1
     99
    100[module/xwindow]
    101type = internal/xwindow
    102label = %title:0:60:...%
    103
    104[module/filesystem]
    105type = internal/fs
    106interval = 25
    107
    108mount-0 = /
    109
    110label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
    111
    112label-unmounted = %mountpoint% not mounted
    113label-unmounted-foreground = ${colors.disabled}
    114
    115[module/pulseaudio]
    116type = internal/pulseaudio
    117
    118format-volume-prefix = "VOL "
    119format-volume-prefix-foreground = ${colors.primary}
    120format-volume = <label-volume>
    121
    122label-volume = %percentage%%
    123
    124label-muted = muted
    125label-muted-foreground = ${colors.disabled}
    126
    127[module/xkeyboard]
    128type = internal/xkeyboard
    129blacklist-0 = num lock
    130
    131label-layout = %layout%
    132label-layout-foreground = ${colors.primary}
    133
    134label-indicator-padding = 2
    135label-indicator-margin = 1
    136label-indicator-foreground = ${colors.background}
    137label-indicator-background = ${colors.secondary}
    138
    139[module/memory]
    140type = internal/memory
    141interval = 2
    142format-prefix = "RAM "
    143format-prefix-foreground = ${colors.primary}
    144label = %percentage_used:2%%
    145
    146[module/cpu]
    147type = internal/cpu
    148interval = 2
    149format-prefix = "CPU "
    150format-prefix-foreground = ${colors.primary}
    151label = %percentage:2%%
    152
    153[network-base]
    154type = internal/network
    155interval = 5
    156format-connected = <label-connected>
    157format-disconnected = <label-disconnected>
    158label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
    159
    160[module/wlan]
    161inherit = network-base
    162interface-type = wireless
    163label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
    164
    165[module/eth]
    166inherit = network-base
    167interface-type = wired
    168label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
    169
    170[module/date]
    171type = internal/date
    172interval = 1
    173
    174date = %H:%M
    175date-alt = %Y-%m-%d %H:%M:%S
    176
    177label = %date%
    178label-foreground = ${colors.primary}
    179
    180[settings]
    181screenchange-reload = true
    182pseudo-transparency = true
    183
    184; vim:ft=dosini