# ___ _ __ __ # |_ | | | | \/ | # | | __ _ ___| | __ | . . | ___ _ __ __ _ __ _ _ __ # | |/ _` |/ __| |/ / | |\/| |/ _ \| '__/ _` |/ _` | '_ \ # /\__/ / (_| | (__| < | | | | (_) | | | (_| | (_| | | | | # \____/ \__,_|\___|_|\_\ \_| |_/\___/|_| \__, |\__,_|_| |_| # __/ | # |___/ # ;===================================================== ; ; To learn more about how to configure Polybar ; go to https://github.com/jaagr/polybar ; ; The README contains alot of information ; Themes : https://github.com/jaagr/dots/tree/master/.local/etc/themer/themes ; https://github.com/jaagr/polybar/wiki/ ; https://github.com/jaagr/polybar/wiki/Configuration ; https://github.com/jaagr/polybar/wiki/Formatting ; ;===================================================== [global/wm] ;https://github.com/jaagr/polybar/wiki/Configuration#global-wm-settings margin-top = 0 margin-bottom = 0 [settings] ;https://github.com/jaagr/polybar/wiki/Configuration#application-settings throttle-output = 5 throttle-output-for = 10 screenchange-reload = true compositing-background = over compositing-foreground = over compositing-overline = over compositing-underline = over compositing-border = over ; Define fallback values used by all module formats format-foreground = #FF0000 format-background = #00FF00 format-underline = format-overline = format-spacing = format-padding = format-margin = format-offset = [colors] ; color1 - background ; color2 - foreground-light ; color3 - foreground-dark background = #282c34 foreground-light = #abb2bf foreground-dark = #434c5e alert = #bd2c40 # volume-min = #a3be8c # volume-med = #ebcb8b # volume-max = #bf616a ################################################################################ ################################################################################ ############ MAINBAR-I3 ############ ################################################################################ ################################################################################ [bar/mainbar-i3] ;https://github.com/jaagr/polybar/wiki/Configuration monitor = ${env:MONITOR} ;monitor-fallback = HDMI1 dpi = ${xrdb:Xft.dpi:-1} monitor-strict = false override-redirect = false bottom = false fixed-center = true width = 100% height = 2% ;offset-x = 1% ;offset-y = 1% background = #282c34 foreground = #abb2bf ; Background gradient (vertical steps) ; background-[0-9]+ = #aarrggbb ;background-0 = radius = 0.0 line-size = 2 line-color = #000000 border-size = 0 ;border-left-size = 25 ;border-right-size = 25 ;border-top-size = 0 ;border-bottom-size = 25 border-color = #000000 padding-left = 1 padding-right = 1 module-margin-left = 0 module-margin-right = 0 ;https://github.com/jaagr/polybar/wiki/Fonts font-0 = "UbuntuMono Nerd Font:size=10;2" font-1 = "UbuntuMono Nerd Font:size=16;3" font-2 = "Font Awesome 5 Free:style=Regular:pixelsize=8;1" font-3 = "Font Awesome 5 Free:style=Solid:pixelsize=8;1" font-4 = "Font Awesome 5 Brands:pixelsize=8;1" font-5 = "Hack Nerd Font Mono:style=Regular::pixelsize=8;1" modules-left = i3 xwindow modules-center = modules-right = pomodoro arrow2 light arrow3 pavolume arrow2 arch-aur-updates arrow3 filesystem arrow2 memory2 arrow3 cpu2 arrow2 battery arrow3 wireless-network arrow2 networkspeedup arrow3 networkspeeddown arrow2 date arrow3 powermenu arrow4 separator = ;dim-value = 1.0 tray-position = right tray-detached = false tray-maxsize = 20 tray-background = ${colors.background} tray-offset-x = 0 tray-offset-y = 0 tray-padding = 4 tray-scale = 1.0 #i3: Make the bar appear below windows ;wm-restack = i3 ;override-redirect = true ; Enable support for inter-process messaging ; See the Messaging wiki page for more details. enable-ipc = true ; Fallback click handlers that will be called if ; there's no matching module handler found. click-left = click-middle = click-right = scroll-up = i3wm-wsnext scroll-down = i3wm-wsprev double-click-left = double-click-middle = double-click-rigt = ; Requires polybar to be built with xcursor support (xcb-util-cursor) ; Possible values are: ; - default : The default pointer as before, can also be an empty string (default) ; - pointer : Typically in the form of a hand ; - ns-resize : Up and down arrows, can be used to indicate scrolling cursor-click = cursor-scroll = ################################################################################ ################################################################################ ############ MODULE I3 ############ ################################################################################ ################################################################################ [module/i3] ;https://github.com/jaagr/polybar/wiki/Module:-i3 type = internal/i3 ; Only show workspaces defined on the same output as the bar ; ; Useful if you want to show monitor specific workspaces ; on different bars ; ; Default: false pin-workspaces = true ; This will split the workspace name on ':' ; Default: false strip-wsnumbers = false ; Sort the workspaces by index instead of the default ; sorting that groups the workspaces by output ; Default: false index-sort = false ; Create click handler used to focus workspace ; Default: true enable-click = true ; Create scroll handlers used to cycle workspaces ; Default: true enable-scroll = true ; Wrap around when reaching the first/last workspace ; Default: true wrapping-scroll = false ; Set the scroll cycle direction ; Default: true reverse-scroll = false ; Use fuzzy (partial) matching on labels when assigning ; icons to workspaces ; Example: code;♚ will apply the icon to all workspaces ; containing 'code' in the label ; Default: false fuzzy-match = false ;extra icons to choose from ;http://fontawesome.io/cheatsheet/ ;       v     ws-icon-0 =  ws-icon-1 = 2 ws-icon-2 = 3 ws-icon-3 = 4 ws-icon-4 = 5 ws-icon-5 = 6 ws-icon-6 = 7 ws-icon-7 = 8 ws-icon-8 = 9 ws-icon-9 = 10 ws-icon-default = "" ; Available tags: ; (default) - gets replaced with ; (default) format = label-mode = %mode% label-mode-padding = 2 label-mode-foreground = ${colors.foreground-dark} ; label-mode-background = #FFBB00 label-mode-background = ${colors.foreground-light} ; Available tokens: ; %name% ; %icon% ; %index% ; %output% ; Default: %icon% %name% ; focused = Active workspace on focused monitor label-focused = %name% label-focused-background = ${colors.background} label-focused-foreground = ${colors.foreground-light} label-focused-underline = #abb2bf label-focused-padding = 2 ; Available tokens: ; %name% ; %icon% ; %index% ; Default: %icon% %name% ; unfocused = Inactive workspace on any monitor label-unfocused = %name% label-unfocused-padding = 2 label-unfocused-background = ${colors.background} label-unfocused-foreground = ${colors.foreground-light} label-unfocused-underline = ; visible = Active workspace on unfocused monitor label-visible = %name% label-visible-background = ${self.label-focused-background} label-visible-underline = ${self.label-focused-underline} label-visible-padding = 2 ; Available tokens: ; %name% ; %icon% ; %index% ; Default: %icon% %name% ; urgent = Workspace with urgency hint set label-urgent = %name% label-urgent-background = ${self.label-focused-background} label-urgent-foreground = #db104e label-urgent-padding = 2 format-foreground = ${colors.foreground-light} format-background = ${colors.background} ################################################################################ ############################################################################### ############ MODULES ARROWS ############ ################################################################################ ################################################################################ [module/arrow1] ; grey to Blue type = custom/text content = "%{T2} %{T-}" content-font = 5 content-foreground = ${colors.foreground-light} content-background = ${colors.background} [module/arrow2] ; grey to Blue type = custom/text content = "%{T2} %{T-}" content-font = 5 content-foreground = ${colors.foreground-dark} content-background = ${colors.foreground-light} [module/arrow3] ; grey to Blue type = custom/text content = "%{T2} %{T-}" content-font = 5 content-foreground = ${colors.foreground-light} content-background = ${colors.foreground-dark} [module/arrow4] ; grey to Blue type = custom/text content = "%{T2} %{T-}" content-font = 5 content-foreground = ${colors.background} content-background = ${colors.foreground-light} ################################################################################ ############################################################################### ############ MODULES A-Z ############ ################################################################################ ################################################################################ [module/arch-aur-updates] type = custom/script exec = ~/.config/polybar/scripts/check-all-updates.sh interval = 1000 label = Updates: %output% format-foreground = ${colors.foreground-light} format-background = ${colors.foreground-dark} format-prefix = "  " format-prefix-foreground = #fefefe [module/aur-updates] type = custom/script exec = cower -u | wc -l interval = 1000 label = Aur: %output% format-foreground = ${colors.foreground-light} format-background = ${colors.background} format-prefix = "  " format-prefix-foreground = #FFBB00 format-underline = #FFBB00 ################################################################################ [module/pomodoro] type = custom/script click-left = i3-gnome-pomodoro toggle click-middle = gnome-pomodoro click-right = i3-gnome-pomodoro start_stop exec = i3-gnome-pomodoro status --always interval = 1 format-prefix = "  " format-prefix-foreground = ${colors.foreground-dark} format-foreground = ${colors.foreground-dark} format-background = ${colors.foreground-light} ################################################################################ [module/backlight-acpi] inherit = module/xbacklight type = internal/backlight card = intel_backlight format-foreground = ${colors.foreground} format-background = ${colors.background} format-prefix-foreground = #7D49B6 format-prefix-underline = #7D49B6 format-underline = #7D49B6 ################################################################################ [module/backlight] ;https://github.com/jaagr/polybar/wiki/Module:-backlight type = internal/backlight ; Use the following command to list available cards: ; $ ls -1 /sys/class/backlight/ card = intel_backlight ; Available tags: ;