123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496 |
- ;==========================================================
- ;
- ;
- ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
- ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
- ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
- ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
- ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
- ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
- ;
- ;
- ; To learn more about how to configure Polybar
- ; go to https://github.com/polybar/polybar
- ;
- ; The README contains a lot of information
- ;
- ;==========================================================
- [colors]
- background = #1d1f21
- background-alt = #282a2e
- foreground = #c5c8c6
- primary = #5f819d
- secondary = #8ABEB7
- alert = #A54242
- disabled = #373b41
- [bar/example]
- width = 100%
- height = 24px
- radius = 0
- dpi = 96
- background = ${colors.background}
- foreground = ${colors.foreground}
- line-size = 2pt
- border-size = 0pt
- ; border-size = 4pt
- ; border-color = #00000000
- border-color = ${colors.background}
- padding-left = 0
- padding-right = 1
- module-margin = 1
- separator = |
- separator-foreground = ${colors.disabled}
- ; font-0 = monospace;1
- ; font-0 = "Terminus:size=16;2"
- font-1 = "Terminess Nerd Font Mono:size=11"
- font-0 = "Symbols Nerd Font Mono:size=10"
- ; wlan eth
- modules-left = xworkspaces xwindow
- modules-center = cmus mpd
- modules-right = filesystem memory temperature cpu battery pulseaudio xkeyboard date systray
- cursor-click = pointer
- cursor-scroll = ns-resize
- enable-ipc = true
- ; wm-restack = generic
- wm-restack = bspwm
- ; wm-restack = i3
- ; override-redirect = true
- ; This module is not active by default (to enable it, add it to one of the
- ; modules-* list above).
- ; Please note that only a single tray can exist at any time. If you launch
- ; multiple bars with this module, only a single one will show it, the others
- ; will produce a warning. Which bar gets the module is timing dependent and can
- ; be quite random.
- ; For more information, see the documentation page for this module:
- ; https://polybar.readthedocs.io/en/stable/user/modules/tray.html
- [module/systray]
- type = internal/tray
- format-margin = 8pt
- tray-spacing = 8pt
- [module/xworkspaces]
- type = internal/xworkspaces
- label-active = %name%
- label-active-background = ${colors.background-alt}
- label-active-underline= ${colors.primary}
- label-active-padding = 1
- label-occupied = %name%
- label-occupied-padding = 1
- label-urgent = %name%
- label-urgent-background = ${colors.alert}
- label-urgent-padding = 1
- label-empty = %name%
- label-empty-foreground = ${colors.disabled}
- label-empty-padding = 1
- [module/xwindow]
- type = internal/xwindow
- label = %title:0:30:...%
- [module/filesystem]
- type = internal/fs
- format-prefix = "FS "
- interval = 25
- mount-0 = /
- label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
- label-unmounted = %mountpoint% not mounted
- label-unmounted-foreground = ${colors.disabled}
- [module/pulseaudio]
- type = internal/pulseaudio
- format-volume-prefix = " "
- format-volume-prefix-foreground = ${colors.primary}
- format-volume = <label-volume>
- label-volume = %percentage%%
- label-muted =
- label-muted-foreground = ${colors.disabled}
- [module/xkeyboard]
- type = internal/xkeyboard
- blacklist-0 = num lock
- label-layout = %layout%
- label-layout-foreground = ${colors.primary}
- label-indicator-padding = 2
- label-indicator-margin = 1
- label-indicator-foreground = ${colors.background}
- label-indicator-background = ${colors.secondary}
- [module/memory]
- type = internal/memory
- interval = 2
- format-prefix = " "
- format-prefix-foreground = ${colors.primary}
- label = %percentage_used:2%%
- [module/cpu]
- type = internal/cpu
- interval = 2
- format-prefix = ""
- format-prefix-foreground = ${colors.primary}
- label = %percentage:2%%
- [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]
- inherit = network-base
- interface-type = wireless
- label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
- [module/eth]
- inherit = network-base
- interface-type = wired
- label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
- [module/date]
- type = internal/date
- interval = 1
- date = %a, %b %d %T
- ; date = %H:%M
- ; date-alt = %Y-%m-%d %H:%M:%S
- label = %date%
- ; label-foreground = ${colors.primary}
- [settings]
- screenchange-reload = true
- pseudo-transparency = true
- ; vim:ft=dosini
- [module/battery]
- type = internal/battery
- ; This is useful in case the battery never reports 100% charge
- ; Default: 100
- full-at = 99
- ; format-low once this charge percentage is reached
- ; Default: 10
- ; New in version 3.6.0
- low-at = 5
- ; Use the following command to list batteries and adapters:
- ; $ ls -1 /sys/class/power_supply/
- battery = BAT0
- adapter = ADP1
- ; If an inotify event haven't been reported in this many
- ; seconds, manually poll for new values.
- ;
- ; Needed as a fallback for systems that don't report events
- ; on sysfs/procfs.
- ;
- ; Disable polling by setting the interval to 0.
- ;
- ; Default: 5
- poll-interval = 5
- ; see "man date" for details on how to format the time string
- ; NOTE: if you want to use syntax tags here you need to use %%{...}
- ; Default: %H:%M:%S
- time-format = %H:%M
- ; Available tags:
- ; <label-charging> (default)
- ; <bar-capacity>
- ; <ramp-capacity>
- ; <animation-charging>
- format-charging = <animation-charging> <label-charging>
- ; Available tags:
- ; <label-discharging> (default)
- ; <bar-capacity>
- ; <ramp-capacity>
- ; <animation-discharging>
- format-discharging = <ramp-capacity> <label-discharging>
- ; Available tags:
- ; <label-full> (default)
- ; <bar-capacity>
- ; <ramp-capacity>
- ;format-full = <ramp-capacity> <label-full>
- ; Format used when battery level drops to low-at
- ; If not defined, format-discharging is used instead.
- ; Available tags:
- ; <label-low>
- ; <animation-low>
- ; <bar-capacity>
- ; <ramp-capacity>
- ; New in version 3.6.0
- ;format-low = <label-low> <animation-low>
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- ; %time%
- ; %consumption% (shows current charge rate in watts)
- label-charging = Charging %percentage%%
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- ; %time%
- ; %consumption% (shows current discharge rate in watts)
- label-discharging = Discharging %percentage%%
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- label-full =
- ; Available tokens:
- ; %percentage% (default) - is set to 100 if full-at is reached
- ; %percentage_raw%
- ; %time%
- ; %consumption% (shows current discharge rate in watts)
- ; New in version 3.6.0
- label-low = BATTERY LOW
- ; Only applies if <ramp-capacity> is used
- ramp-capacity-0 =
- ramp-capacity-1 =
- ramp-capacity-2 =
- ramp-capacity-3 =
- ramp-capacity-4 =
- ; Only applies if <bar-capacity> is used
- bar-capacity-width = 10
- ; Only applies if <animation-charging> is used
- animation-charging-0 =
- animation-charging-1 =
- animation-charging-2 =
- animation-charging-3 =
- animation-charging-4 =
- ; Framerate in milliseconds
- animation-charging-framerate = 750
- ; Only applies if <animation-discharging> is used
- animation-discharging-0 =
- animation-discharging-1 =
- animation-discharging-2 =
- animation-discharging-3 =
- animation-discharging-4 =
- ; Framerate in milliseconds
- animation-discharging-framerate = 500
- ; Only applies if <animation-low> is used
- ; New in version 3.6.0
- animation-low-0 = !
- animation-low-1 =
- animation-low-framerate = 200
- [module/temperature]
- type = internal/temperature
- ; Seconds to sleep between updates
- ; Default: 1
- interval = 0.5
- ; Thermal zone to use
- ; To list all the zone types, run
- ; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
- ; Default: 0
- thermal-zone = 0
- ; Select thermal zone by name
- ; The name has to match the contents of /sys/class/thermal/thermal_zone*/type
- ; for the desired thermal zone.
- ; New in version 3.7.0
- ; Default: ""
- zone-type = x86_pkg_temp
- ; Full path of temperature sysfs path
- ; Use `sensors` to find preferred temperature source, then run
- ; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
- ; to find path to desired file
- ; Default reverts to thermal zone setting
- hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
- ; Base temperature for where to start the ramp (in degrees celsius)
- ; Default: 0
- base-temperature = 20
- ; Threshold temperature to display warning label (in degrees celsius)
- ; Default: 80
- warn-temperature = 60
- ; Whether or not to show units next to the temperature tokens (°C, °F)
- ; Default: true
- units = false
- ; Available tags:
- ; <label> (default)
- ; <ramp>
- format = <ramp> <label>
- ; Available tags:
- ; <label-warn> (default)
- ; <ramp>
- format-warn = <ramp> <label-warn>
- ; Available tokens:
- ; %temperature% (deprecated)
- ; %temperature-c% (default, temperature in °C)
- ; %temperature-f% (temperature in °F)
- ; %temperature-k% (temperature in Kelvin, new in version 3.7.0)
- label = %temperature-c%
- ; Available tokens:
- ; %temperature% (deprecated)
- ; %temperature-c% (default, temperature in °C)
- ; %temperature-f% (temperature in °F)
- ; %temperature-k% (temperature in Kelvin, new in version 3.7.0)
- label-warn = %temperature-c%
- label-warn-foreground = #f00
- ; Requires the <ramp> tag
- ; The icon selection will range from `base-temperature` to `warn-temperature`,
- ; temperatures at and above `warn-temperature` will use the last icon
- ; and temperatures at and below `base-temperature` will use `ramp-0`.
- ; All other icons are distributed evenly between the two temperatures.
- ramp-0 = A
- ramp-1 = B
- ramp-2 = C
- ramp-foreground = #55
- [module/cmus]
- type = custom/script
- exec = ~/.config/polybar/script/cmus.sh
- exec-if = pgrep -x cmus
- interval = 1
- click-left = cmus-remote --next
- click-right = cmus-remote --prev
- click-middle = cmus-remote --pause
- scroll-up = cmus-remote --volume +5%
- scroll-down = cmus-remote --volume -5%
- label-font = 3
- format = <label>
- format-underline = ${colors.foreground-alt}
- label = %output%
- label-maxlen = 60
- [module/mpd]
- type = internal/mpd
- ; Host where mpd is running (either ip or domain name)
- ; Can also be the full path to a unix socket where mpd is running.
- host = 127.0.0.1
- port = 44629
- ; password = mysecretpassword
- ; Seconds to sleep between progressbar/song timer sync
- ; Default: 1
- interval = 2
- ; Available tags:
- ; <label-song> (default)
- ; <label-time>
- ; <bar-progress>
- ; <toggle> - gets replaced with <icon-(pause|play)>
- ; <toggle-stop> - gets replaced with <icon-(stop|play)>
- ; <icon-random>
- ; <icon-repeat>
- ; <icon-repeatone> (deprecated)
- ; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone>
- ; <icon-consume>
- ; <icon-prev>
- ; <icon-stop>
- ; <icon-play>
- ; <icon-pause>
- ; <icon-next>
- ; <icon-seekb>
- ; <icon-seekf>
- format-online = <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random> <bar-progress> <label-time> <label-song>
- ;format-playing = ${self.format-online}
- ;format-paused = ${self.format-online}
- ;format-stopped = ${self.format-online}
- ; Available tags:
- ; <label-offline>
- ; Default: ""
- ;format-offline = <label-offline>
- ; Available tokens:
- ; %artist%
- ; %album-artist%
- ; %album%
- ; %date%
- ; %title%
- ; Default: %artist% - %title%
- label-song = 𝄞 %artist% - %title%
- ; Available tokens:
- ; %elapsed%
- ; %total%
- ; Default: %elapsed% / %total%
- ;label-time = %elapsed% / %total%
- ; Available tokens:
- ; None
- label-offline = 🎜 mpd is offline
- ; Only applies if <icon-X> is used
- icon-play = ⏵
- icon-pause = ⏸
- icon-stop = ⏹
- icon-prev = ⏮
- icon-next = ⏭
- icon-seekb = ⏪
- icon-seekf = ⏩
- icon-random = 🔀
- icon-repeat = 🔁
- icon-repeatone = 🔂
- icon-single = 🔂
- icon-consume = ✀
- ; Used to display the state of random/repeat/repeatone/single
- ; Only applies if <icon-[random|repeat|repeatone|single]> is used
- toggle-on-foreground = #ff
- toggle-off-foreground = #55
- ; Only applies if <bar-progress> is used
- bar-progress-width = 45
- bar-progress-indicator = |
- bar-progress-fill = ─
- bar-progress-empty = ─
|