;===================================================== ; ; To learn more about how to configure Polybar ; go to https://github.com/jaagr/polybar ; ; The README contains alot of information ; ;===================================================== [colors] bg = ${xrdb:polybar.color.bg} bg-enabled = ${xrdb:polybar.color.bg-enabled} fg = ${xrdb:polybar.color.fg} fg-disabled = ${xrdb:polybar.color.fg-disabled} primary = ${xrdb:polybar.color.primary} secondary = ${xrdb:polybar.color.secondary} [bar/top] monitor = ${env:PRIMARY_MONITOR:HDMI-1} width = 100% height = 28 fixed-center = true background = ${colors.bg} foreground = ${colors.fg} ;line-size = 3 ;line-color = ${colors.background-highlight} ;border-bottom-size = 2 ;border-color =${colors.bg} padding-left = 0 padding-right = 0 module-margin-left = 0 module-margin-right = 1 font-0 = Hack:pixelsize=10;3 font-1 = FontAwesome:pixelsize=10;3 font-2 = material\-wifi:pizelsize=10;3 font-3 = Material Icons:pizelsize=11;4 modules-left = i3 modules-center = title modules-right = date memory cpu battery openvpn wireless-network bluetooth volume backlight tray-position = right tray-padding = 7 tray-maxsize = 16 tray-transparent = false tray-background = ${colors.bg} ;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 [module/base] icon-foreground = ${colors.fg} [module/labeled-base] label-margin = 1 label-foreground = ${colors.fg} [module/i3] type = internal/i3 format = index-sort = true wrapping-scroll = false ; Only show workspaces on the same output as the bar pin-workspaces = false ; ws-icon-default = ${env:ICO_WS2} label-mode-foreground = ${colors.primary} label-mode-padding = 1 ; unfocused = Inactive workspace on any monitor label-unfocused = " %index% " label-unfocused-foreground = ${colors.fg-disabled} label-unfocused-padding = ${self.label-mode-padding} ; focused = Active workspace on focused monitor label-focused = ${self.label-unfocused} label-focused-foreground = ${colors.fg} label-focused-background = ${colors.bg-enabled} label-focused-padding = ${self.label-mode-padding} label-visible = ${self.label-focused} label-visible-foreground = ${module/labeled-base.label-foreground} label-visible-padding = ${self.label-mode-padding} ; urgent = Workspace with urgency hint set label-urgent = ${self.label-unfocused} label-urgent-foreground = ${colors.primary} label-urgent-padding = ${self.label-mode-padding} [module/xbacklight] type = internal/xbacklight inherit = module/base format = ramp-0 = ${env:ICO_BL1} ramp-1 = ${env:ICO_BL2} ramp-2 = ${env:ICO_BL3} ramp-3 = ${env:ICO_BL4} ramp-4 = ${env:ICO_BL5} ramp-5 = ${env:ICO_BL6} ramp-6 = ${env:ICO_BL7} ramp-foreground = ${colors.fg} [module/backlight] type = internal/backlight inherit = module/xbacklight card = intel_backlight scroll-up = "brightnessctl set +5%" scroll-down = "brightnessctl set 5%-" [module/cpu] type = internal/cpu inherit = module/labeled-base interval = 5 format-prefix = ${env:ICO_CPU} label-margin = 0 label = "%percentage:3%% " [module/memory] type = internal/memory inherit = module/labeled-base interval = 5 format-prefix = ${env:ICO_MEM} label-margin = 0 label = "%percentage_used:3%% " [module/wireless-network] type = internal/network interface = wlan0 interval = 5 format-connected = format-disconnected = label-connected-foreground = ${module/labeled-base.label-foreground} label-connected-margin = ${module/labeled-base.label-margin} label-connected = %essid% label-disconnected = ${env:ICO_WDC} label-disconnected-foreground = ${colors.fg-disabled} ramp-signal-0 = ${env:ICO_WC1} ramp-signal-1 = ${env:ICO_WC2} ramp-signal-2 = ${env:ICO_WC3} ramp-signal-3 = ${env:ICO_WC4} click-left = ~/.config/polybar/wifi_toggle.bash [module/date] type = internal/date inherit = module/labeled-base interval = 1 format-prefix = ${env:ICO_DATE} date = "%Y-%m-%d %H:%M" label = "%date%" [module/title] type = internal/xwindow label = %title% label-maxlen = 50 [module/volume] type = internal/volume inherit = module/base format-muted-foreground = ${colors.fg-disabled} format-volume = label-muted = ${env:ICO_MUTE} ramp-volume-0 = ${env:ICO_VOL1} ramp-volume-1 = ${env:ICO_VOL2} ramp-volume-2 = ${env:ICO_VOL3} click-right = pavucontrol [module/battery] type = internal/battery inherit = module/labeled-base battery = BAT0 adapter = AC0 full-at = 95 time-format = %H:%M label-charging-foreground = ${module/labeled-base.label-foreground} label-charging-margin = 0 label-charging = "%percentage:3%% " #label-charging = %time% format-charging = #label-discharging = %time% label-discharging-foreground = ${module/labeled-base.label-foreground} label-discharging-margin = 0 label-discharging = "%percentage:3%% " format-discharging = format-full-prefix = ${env:ICO_PLUG} format-full-foreground-prefix = ${colors.fg} label-full = " " ramp-capacity-0 = ${env:ICO_BAT1} ramp-capacity-1 = ${env:ICO_BAT2} ramp-capacity-2 = ${env:ICO_BAT3} ramp-capacity-3 = ${env:ICO_BAT4} ramp-capacity-4 = ${env:ICO_BAT5} ramp-capacity-foreground = ${colors.fg} ramp-capacity-0-foreground = ${colors.secondary} animation-charging-0 = ${env:ICO_BAT2} animation-charging-1 = ${env:ICO_BAT3} animation-charging-2 = ${env:ICO_BAT4} animation-charging-3 = ${env:ICO_BAT5} animation-charging-foreground = ${colors.fg} animation-charging-framerate = 750 [module/redshift] type = custom/script inherit = module/base interval = 1 exec = ~/.config/polybar/redshift.bash status click-left = ~/.config/polybar/redshift.bash toggle [module/bluetooth] type = custom/script inherit = module/base interval = 1 exec = ~/.config/polybar/bluetooth.bash click-left = ~/.config/polybar/bluetooth.bash toggle [module/openvpn] type = custom/script inherit = module/base interval = 1 exec = /bin/bash ~/.config/polybar/openvpn.bash click-left = sudo systemctl restart openvpn-client@vpn.massaki.ca ; vim:ft=dosini