Created
February 9, 2020 17:57
-
-
Save manfromth3m0oN/f17743165a64a07325c1f777ce7f0afc to your computer and use it in GitHub Desktop.
Polybar for bspwm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;========================================================== | |
; | |
; | |
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ | |
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ | |
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ | |
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ | |
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ | |
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ | |
; | |
; | |
; To learn more about how to configure Polybar | |
; go to https://github.com/polybar/polybar | |
; | |
; The README contains a lot of information | |
; | |
;========================================================== | |
[colors] | |
;background = ${xrdb:color0:#222} | |
background = #00000000 | |
foreground = ${xrdb:color7:#222} | |
foreground-alt = ${xrdb:color7:#222} | |
primary = ${xrdb:color1:#222} | |
secondary = ${xrdb:color2:#222} | |
alert = ${xrdb:color3:#222} | |
[bar/monone] | |
monitor = DP-1 | |
width = 98% | |
height = 20 | |
offset-x = 1% | |
offset-y = 1% | |
radius = 2 | |
fixed-center = true | |
bottom = true | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
line-size = 3 | |
line-color = #f00 | |
border-size = 0 | |
border-color = #00000000 | |
padding-left = 0 | |
padding-right = 2 | |
module-margin-left = 1 | |
module-margin-right = 2 | |
font-0 = Iosevka Nerd Font Mono:style=Regular:size=8 | |
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 | |
font-2 = siji:pixelsize=10;1 | |
modules-left = bspwm i3 | |
modules-center = xwindow | |
modules-right = alsa cpu wlan eth date | |
;tray-position = right | |
;tray-padding = 2 | |
;tray-background = #0063ff | |
;wm-restack = bspwm | |
;wm-restack = i3 | |
;override-redirect = true | |
;scroll-up = bspwm-desknext | |
;scroll-down = bspwm-deskprev | |
;scroll-up = i3wm-wsnext | |
;scroll-down = i3wm-wsprev | |
cursor-click = pointer | |
cursor-scroll = ns-resize | |
[bar/montwo] | |
monitor = HDMI-1 | |
width = 98% | |
height = 20 | |
offset-x = 1% | |
offset-y = 1% | |
radius = 2 | |
fixed-center = true | |
bottom = true | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
line-size = 3 | |
line-color = #f00 | |
border-size = 0 | |
border-color = #00000000 | |
padding-left = 0 | |
padding-right = 2 | |
module-margin-left = 1 | |
module-margin-right = 2 | |
font-0 = Iosevka Nerd Font Mono:style=Regular:size=8 | |
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 | |
font-2 = siji:pixelsize=10;1 | |
font-3 = Font Awesome 5 Free:pixelsize=10;3 | |
font-4 = Font Awesome 5 Free Solid:pixelsize=10;3 | |
font-5 = Font Awesome 5 Brands:pixelsize=10;3 | |
modules-left = bspwm i3 | |
modules-center = xwindow | |
modules-right = alsa cpu eth date | |
tray-position = right | |
tray-padding = 2 | |
;tray-background = #0063ff | |
wm-restack = bspwm | |
;wm-restack = i3 | |
;override-redirect = true | |
scroll-up = bspwm-desknext | |
scroll-down = bspwm-deskprev | |
;scroll-up = i3wm-wsnext | |
;scroll-down = i3wm-wsprev | |
cursor-click = pointer | |
cursor-scroll = ns-resize | |
[module/xwindow] | |
type = internal/xwindow | |
label = %title:0:30:...% | |
[module/filesystem] | |
type = internal/fs | |
interval = 25 | |
mount-0 = / | |
label-mounted = %{F#8be9fd}%mountpoint%%{F-}: %percentage_used%% | |
label-unmounted = %mountpoint% not mounted | |
label-unmounted-foreground = ${colors.foreground-alt} | |
[module/bspwm] | |
type = internal/bspwm | |
format = <label-state> <label-mode> | |
label-empty = | |
label-occupied = | |
label-urgent = | |
label-focused = | |
label-focused-padding = 1 | |
label-empty-padding = 1 | |
label-occupied-padding = 1 | |
label-urgent-padding = 1 | |
; Only show workspaces defined on the same output as the bar | |
; NOTE: The bspwm and XRandR monitor names must match, which they do by default. | |
; But if you rename your bspwm monitors with bspc -n this option will no longer | |
; behave correctly. | |
; Default: true | |
pin-workspaces = true | |
; Output mode flags after focused state label | |
; Default: false | |
inline-mode = true | |
enable-click = true | |
enable-scroll = true | |
reverse-scroll = true | |
label-focused-foreground = #ffffff | |
label-focused-background = #00000000 | |
label-focused-underline = ${colors.primary} | |
[module/i3] | |
type = internal/i3 | |
format = <label-state> <label-mode> | |
index-sort = true | |
wrapping-scroll = false | |
; Only show workspaces on the same output as the bar | |
;pin-workspaces = true | |
label-mode-padding = 2 | |
label-mode-foreground = #000 | |
label-mode-background = ${colors.primary} | |
; focused = Active workspace on focused monitor | |
label-focused = %index% | |
label-focused-background = #44475a | |
label-focused-underline= ${colors.primary} | |
label-focused-padding = 2 | |
; unfocused = Inactive workspace on any monitor | |
label-unfocused = %index% | |
label-unfocused-padding = 2 | |
; visible = Active workspace on unfocused monitor | |
label-visible = %index% | |
label-visible-background = ${self.label-focused-background} | |
label-visible-underline = ${self.label-focused-underline} | |
label-visible-padding = ${self.label-focused-padding} | |
; urgent = Workspace with urgency hint set | |
label-urgent = %index% | |
label-urgent-background = ${colors.alert} | |
label-urgent-padding = 2 | |
; Separator in between workspaces | |
; label-separator = | | |
[module/cpu] | |
type = internal/cpu | |
interval = 2 | |
format-prefix = "CPU: " | |
format-prefix-foreground = ${colors.foreground-alt} | |
label = %percentage:2%% | |
[module/memory] | |
type = internal/memory | |
interval = 2 | |
format-prefix = "RAM: " | |
format-prefix-foreground = ${colors.foreground-alt} | |
label = %percentage_used%% | |
[module/wlan] | |
type = internal/network | |
interface = net1 | |
interval = 3.0 | |
format-connected = <ramp-signal> <label-connected> | |
label-connected = %essid% | |
format-disconnected = | |
;format-disconnected = <label-disconnected> | |
;format-disconnected-underline = ${self.format-connected-underline} | |
;label-disconnected = %ifname% 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 = enp3s0 | |
interval = 3.0 | |
format-connected-prefix = " " | |
format-connected-prefix-foreground = ${colors.foreground-alt} | |
label-connected = %local_ip% | |
format-disconnected = | |
;format-disconnected = <label-disconnected> | |
;format-disconnected-underline = ${self.format-connected-underline} | |
;label-disconnected = %ifname% 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} | |
label = %date% %time% | |
[module/pulseaudio] | |
type = internal/pulseaudio | |
format-volume = <label-volume> <bar-volume> | |
label-volume = VOL %percentage%% | |
label-volume-foreground = ${root.foreground} | |
label-muted = muted | |
label-muted-foreground = #666 | |
bar-volume-width = 10 | |
bar-volume-foreground-0 = #55aa55 | |
bar-volume-foreground-1 = #55aa55 | |
bar-volume-foreground-2 = #55aa55 | |
bar-volume-foreground-3 = #55aa55 | |
bar-volume-foreground-4 = #55aa55 | |
bar-volume-foreground-5 = #f5a70a | |
bar-volume-foreground-6 = #ff5555 | |
bar-volume-gradient = false | |
bar-volume-indicator = | | |
bar-volume-indicator-font = 2 | |
bar-volume-fill = ─ | |
bar-volume-fill-font = 2 | |
bar-volume-empty = ─ | |
bar-volume-empty-font = 2 | |
bar-volume-empty-foreground = ${colors.foreground-alt} | |
[module/alsa] | |
type = internal/alsa | |
format-volume = <label-volume> <bar-volume> | |
label-volume = VOL | |
label-volume-foreground = ${root.foreground} | |
format-muted-prefix = " " | |
format-muted-foreground = ${colors.foreground-alt} | |
label-muted = sound muted | |
bar-volume-width = 10 | |
bar-volume-foreground-0 = #50fa7b | |
bar-volume-foreground-1 = #50fa7b | |
bar-volume-foreground-2 = #50fa7b | |
bar-volume-foreground-3 = #50fa7b | |
bar-volume-foreground-4 = #50fa7b | |
bar-volume-foreground-5 = #ffb86c | |
bar-volume-foreground-6 = #ff5555 | |
bar-volume-gradient = false | |
bar-volume-indicator = | | |
bar-volume-indicator-font = 2 | |
bar-volume-fill = ─ | |
bar-volume-fill-font = 2 | |
bar-volume-empty = ─ | |
bar-volume-empty-font = 2 | |
bar-volume-empty-foreground = ${colors.foreground-alt} | |
[module/temperature] | |
type = internal/temperature | |
thermal-zone = 0 | |
warn-temperature = 60 | |
format = <ramp> <label> | |
format-underline = #bd93f9 | |
format-warn = <ramp> <label-warn> | |
format-warn-underline = ${self.format-underline} | |
label = %temperature-c% | |
label-warn = %temperature-c% | |
label-warn-foreground = ${colors.secondary} | |
ramp-0 = | |
ramp-1 = | |
ramp-2 = | |
ramp-foreground = ${colors.foreground-alt} | |
[settings] | |
screenchange-reload = true | |
;compositing-background = xor | |
;compositing-background = screen | |
;compositing-foreground = source | |
;compositing-border = over | |
;pseudo-transparency = false | |
[global/wm] | |
margin-top = 5 | |
margin-bottom = 5 | |
; vim:ft=dosini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment