;Symbols ;▁▂▃▄▅▆▇█ ; ;===================================================== ; ; To learn more about how to configure Polybar ; go to https://github.com/jaagr/polybar ; ; The README contains alot of information ; ;===================================================== [colors] ;gruvbox colors dark0_hard = #1d2021 dark0 = #282828 dark0_soft = #32302f dark1 = #3c3836 dark2 = #504945 dark3 = #665c54 dark4 = #7c6f64 gray_245 = #928374 gray_244 = #928374 light0_hard = #f9f5d7 light0 = #fbf1c7 light0_soft = #f2e5bc light1 = #ebdbb2 light2 = #d5c4a1 light3 = #bdae93 light4 = #a89984 bright_red = #fb4934 bright_green = #b8bb26 bright_yellow = #fabd2f bright_blue = #83a598 bright_purple = #d3869b bright_aqua = #8ec07c bright_orange = #fe8019 neutral_red = #cc241d neutral_green = #98971a neutral_yellow = #d79921 neutral_blue = #458588 neutral_purple = #b16286 neutral_aqua = #689d6a neutral_orange = #d65d0e faded_red = #9d0006 faded_green = #79740e faded_yellow = #b57614 faded_blue = #076678 faded_purple = #8f3f71 faded_aqua = #427b58 faded_orange = #af3a03 ;want to get colors from xrdb / .Xresources? ;background = ${xrdb:color0:#222} ;bar-background = #00FFFFFF ;ARGB bar-background = #dd1d2021 [bar/general] width = 100% ; spaces before/after each module module-margin-left = 1 module-margin-right = 1 height = 27 fixed-center = true line-size = 2 line-color = #f00 ; rounded corners of the bar radius = 0.0 ;this makes sure that i3 doesn't reposition everything when polybar becomes active... is shit override-redirect = false wm-restack = i3 ; all the bar colors background = ${colors.bar-background} foreground = ${colors.light0_hard} ;border-color = ${colors.bright_blue} border-color = #00FFFFFF border-left-size = 0 border-right-size = 0 border-top-size = 0 ; spaces on begin/end of bar padding-left = 5 padding-right = 5 ; set the bar fonts ; when using mono fonts, icons might appear way too small ;font-0 = fixed:pixelsize=10;1 ;font-0 = "Wuncon Siji:pixelsize=15;1" ;font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 ;font-2 = "Inconsolata\ For\ Powerline:pixelsize=10;1" ;font-0 = FuraCode Nerd Font:pixelsize=11;1 font-0 = Hasklug Nerd Font Mono:pixelsize=9;1 ; larger variant for icons if they're too small (use %{T2}x%{T-}) font-1 = Hasklug Nerd Font Mono:pixelsize=14;1 ;font-1 = Siji:style=Regular:pixelsize=11 ;font-1 = Siji:pixelsize=14;0 ; override pointers cursor-click = pointer cursor-scroll = pointer ; this bar will contain the tray, only on primary monitor [bar/primary] inherit = bar/general monitor = ${env:MONITOR:eDP-1} bottom = false ;offset-x = 2% ;offset-y = 1% ;i'm faking the left and right margins with a fat border. i'm helpless ;border-size = 20 ;border-left-size = 16 ;border-right-size = 16 ;unused modules - mpd xbacklight backlight-acpi alsa modules-left = i3 modules-center = temperature battery xkeyboard memory cpu filesystem updates-pacman updates-aurhelper reboot-check xbacklight top-process modules-right = net wifi0 vpn ; TRAY MANAGEMENT tray-position = right ;tray-position = ${env:TRAY_POSITION:none} tray-transparent = false tray-detached = false tray-maxsize = 16 ;tray-background = ${colors.background-alt} ;this makes sure that the tray doesn't run off to the right of the monitor - only enable this when the bar's width is a bit off tray-offset-x = 0 tray-offset-y = 27 tray-padding = 2 tray-scale = 1.0 padding-left = 2 padding-right = 2 scroll-up = i3wm-wsnext scroll-down = i3wm-wsprev cursor-click = pointer ;cursor-scroll = ns-resize cursor-scroll = pointer [bar/secondary] inherit = bar/general monitor = ${env:MONITOR:eDP-1} ;offset-x = 2% ;offset-y = 1% ;unused modules - mpd xbacklight backlight-acpi alsa modules-right = pulseaudio modules-center = player-mpris-tail modules-left = date padding-left = 2 padding-right = 2 [module/player-mpris-tail] type = custom/script exec = ~/.config/polybar/polybar-scripts/player-mpris-tail/player-mpris-tail.py -f '{icon} {artist} - {:t30:{title}:}' --icon-playing  --icon-paused  --icon-stopped  --icon-none ﱙ tail = true label = %output% label-foreground = ${colors.light0_hard} [module/gpu-temp] type = custom/script exec = ~/scripts/gpu.temp.sh tail = true label = "%output%°C" label-foreground = ${colors.light0_hard} format-prefix = "%{T2}󱣾%{T-} " format-prefix-foreground = ${colors.bright_green} interval = 5 ;[module/info-hackspeed] ;type = custom/script ;format-prefix = " " ;format-prefix-foreground = ${colors.bright_green} ;exec = ~/.config/polybar/polybar-scripts/info-hackspeed/info-hackspeed.sh ;tail = true [module/obelisk-status] type = custom/script exec = ~/scripts/obelisk.status.sh tail = false interval = 10 [module/mail-status] type = custom/script exec = ~/scripts/mail.status.sh tail = false interval = 10 [module/top-process] type = custom/script format-prefix = " " format-prefix-foreground = ${colors.bright_green} ;format-underline = ${colors.bright_red} interval = 5 exec = ~/.dotfiles/scripts/top.process.sh tail = true [module/xwindow] type = internal/xwindow label = %title:0:30:...% [module/xkeyboard] type = internal/xkeyboard blacklist-0 = num lock format-prefix = " " format-prefix-foreground = ${colors.bright_green} format-prefix-font = 2 ;format-prefix-underline = ${colors.underline-keyboard} ; layout, number, name label-layout = %layout% ;label-layout-underline = ${colors.underline-keyboard} label-indicator-padding = 2 label-indicator-margin = 1 label-indicator-background = ${colors.neutral_blue} ;label-indicator-underline = ${colors.underline-keyboard} cursor-click = pointer [module/vpn] type = custom/script exec = nmcli | grep "VPN connection" | sed -e "s/VPN connection//g" exec-if = pgrep -x openvpn interval = 5 ;format-underline = #268bd2 format-prefix = " " format-prefix-foreground = ${colors.light0} [module/filesystem] type = internal/fs ; Mountpoints to display ; mounts differ depending on the machine ; need to include comments in each of the options: template swallows newlines {{- if eq .chezmoi.hostname "dome" }} ; mount root mount-0 = / {{ else if eq .chezmoi.hostname "carbonraptor" -}} ; mount root mount-0 = / ; mount ext4 partition for non-btrfs files mount-1 = /mnt/ext4 {{ else if eq .chezmoi.hostname "jnielandt" -}} ; only root mount-0 = / {{ else if eq .chezmoi.hostname "nielanjo" -}} ; only root mount-0 = / {{- end }} ; Seconds to sleep between updates ; Default: 30 interval = 10 ; Display fixed precision values ; Default: false fixed-values = true ; Spacing (number of spaces, pixels, points) between entries ; Default: 2 spacing = 4 ; Default: 90 ; New in version 3.6.0 warn-percentage = 75 ; Available tags: ; (default) ; ; ; format-mounted = format-mounted-prefix = "󰋊 " format-mounted-prefix-foreground = ${colors.bright_green} ; Available tags: ; (default) format-unmounted = ; Format used when mountpoint %percentage_used% reaches warn-percentage ; If not defined, format-mounted is used instead. ; Available tags: ; ; ; ; ; New in version 3.6.0 ; format-warn = ; Available tokens: ; %mountpoint% ; %type% ; %fsname% ; %percentage_free% ; %percentage_used% ; %total% ; %free% ; %used% ; Default: %mountpoint% %percentage_free%% label-mounted = %mountpoint% %percentage_used%% label-mounted-foreground = ${colors.bright_green} ; Available tokens: ; %mountpoint% ; Default: %mountpoint% is not mounted label-unmounted = %mountpoint%: not mounted label-unmounted-foreground = ${colors.bright_orange} ; Available tokens: ; %mountpoint% ; %type% ; %fsname% ; %percentage_free% ; %percentage_used% ; %total% ; %free% ; %used% ; Default: %mountpoint% %percentage_free%% ; New in version 3.6.0 ; label-warn = %mountpoint%: WARNING [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.bright_red} label-urgent-padding = 2 label-empty = %index% label-empty-foreground = ${colors.bright_green} label-empty-padding = 2 ; Separator in between workspaces ; label-separator = | [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 ; Show urgent workspaces regardless of whether the workspace is actually hidden ; by pin-workspaces. ; ; Default: false ; New in version 3.6.0 show-urgent = true ; This will split the workspace name on ':' ; Default: false strip-wsnumbers = true ; Sort the workspaces by index instead of the default ; sorting that groups the workspaces by output ; Default: false index-sort = true ; 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 = true ; ws-icon-[0-9]+ =