;===================================================== ; ; To learn more about how to configure Polybar ; go to https://github.com/jaagr/polybar ; ; The README contains alot of information ; ;===================================================== [settings] compositing-background = over compositing-foreground = over compositing-overline = over compositing-underline = over compositing-border = over [colors] background = #EE222222 foreground = #dfdfdf primary = #0a6cf5 secondary = #009646 alert = #bd2c40 [bar/default] width = 100% height = 27 radius = 3.0 fixed-center = true monitor = ${env:MONITOR:} background = ${colors.background} foreground = ${colors.foreground} line-size = 2 line-color = #f00 border-size = 0 border-color = #00000000 padding-left = 2 padding-right = 2 module-margin-left = 2 module-margin-right = 2 font-0 = FontAwesome:size=10;1 font-1 = siji:pixelsize=10;1 font-2 = Weather Icons:size=10;1 modules-left = powermenu i3 modules-center = datetime openweathermap modules-right = system-usb-udev updates pulseaudio-tail wlan eth vpn xkeyboard battery tray-detached = false tray-position = right scroll-up = i3wm-wsnext scroll-down = i3wm-wsprev [module/xwindow] type = internal/xwindow label = %title:0:30:...% [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock label-layout = " %layout%" label-layout-underline = ${colors.primary} label-indicator = %name% label-indicator-underline = ${colors.secondary} [module/openweathermap] type = custom/script exec = ~/bin/polybar/openweathermap-simple.sh interval = 600 label-font = 3 [module/filesystem] type = internal/fs interval = 25 mount-0 = / label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%% label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.foreground-alt} [module/bspwm] type = internal/bspwm label-focused = %index% label-focused-background = ${colors.background-alt} label-focused-underline= ${colors.primary} label-focused-padding = 2 label-occupied = %index% label-occupied-padding = 2 label-urgent = %index%! label-urgent-background = ${colors.alert} label-urgent-padding = 2 label-empty = %index% label-empty-foreground = ${colors.foreground-alt} label-empty-padding = 2 [module/i3] type = internal/i3 format = 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 = ${colors.background} 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 [module/wlan] type = internal/network interface = wlo1 interval = 3.0 format-connected =  label-connected = "%essid%" format-disconnected = [module/eth] type = internal/network interface = enp8s0 interval = 3.0 format-connected-prefix-foreground = ${colors.foreground-alt} label-connected = "" format-disconnected = [module/powermenu] type = custom/menu format-foreground = ${colors.foreground} format-background = ${colors.background} label-open = "" label-open-font = 4 label-close = "" label-close-foreground = ${colors.foreground} label-separator = " / " label-separator-foreground = ${colors.foreground} ;logout menu-0-2 = "" menu-0-2-exec = i3-msg exit menu-0-2-foreground = ${colors.foreground} ; reboot menu-0-1 = "" menu-0-1-exec = systemctl reboot menu-0-1-foreground = ${colors.foreground} ; shutdown menu-0-0 = "" menu-0-0-exec = systemctl poweroff menu-0-0-foreground = ${colors.alert} [module/datetime] type = custom/script exec = date +'%H:%M' tail = false interval = 60 click-left = gsimplecal [module/system-usb-udev] type = custom/script exec = ~/bin/polybar/system-usb-udev.sh tail = true click-left = ~/bin/polybar/system-usb-udev.sh --mount click-right = ~/bin/polybar/system-usb-udev.sh --unmount [module/pulseaudio-tail] type = custom/script exec = ~/bin/polybar/pulseaudio-tail.sh 2> /dev/null tail = true click-right = ~/bin/polybar/pulseaudio-tail.sh --show 2> /dev/null click-left = ~/bin/polybar/pulseaudio-tail.sh --mute 2> /dev/null scroll-up = ~/bin/polybar/pulseaudio-tail.sh --up 2> /dev/null scroll-down = ~/bin/polybar/pulseaudio-tail.sh --down 2> /dev/null [module/vpn] type = custom/script exec = ~/bin/polybar/vpn_running.sh interval = 5 click-left = ~/bin/polybar/vpn_country.sh [module/updates] type = custom/script exec = ~/bin/polybar/updates.sh 2> /dev/null interval = 600 format-prefix = "" format-underline = ${colors.alert} [module/battery] type = internal/battery battery = BAT0 adapter = AC full-at = 96 format-charging = format-charging-underline = ${colors.secondary} format-discharging = format-discharging-underline = ${colors.alert} label-full = "" label-discharging = " %percentage%%" label-charging = " %percentage%%" [global/wm] margin-top = 5 margin-bottom = 5