; ;===================================================== ; ; 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 = 15 border-right-size = 15 border-top-size = 5 ; spaces on begin/end of bar padding-left = 5 padding-right = 5 ; set the bar fonts ;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-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-aurhelper reboot-check xbacklight top-process modules-right = net wifi0 vpn powermenu ; 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 = 32 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 info-hackspeed padding-left = 2 padding-right = 2 [module/player-mpris-tail] type = custom/script exec = ~/.config/polybar/polybar-scripts/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/info-hackspeed] type = custom/script format-prefix = " " format-prefix-foreground = ${colors.bright_green} exec = ~/.config/polybar/polybar-scripts/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-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 interval = 25 ; mounts differ depending on the machine {{- if eq .chezmoi.hostname "dome" }} mount-0 = / {{ else if eq .chezmoi.hostname "carbonraptor" -}} mount-0 = / mount-1 = /mnt/ext4 {{- end }} ;label-mounted = %{F#0a81f5}%mountpoint%%{F-} %percentage_used%% ;#b8bb26 label-mounted = %{F#b8bb26}%mountpoint%%{F-} %percentage_used%% label-mounted-foreground = ${colors.bright_green} label-unmounted = %mountpoint% not mounted label-unmounted-foreground = ${colors.faded_green} [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 format = index-sort = true wrapping-scroll = false ; Only show workspaces on the same output as the bar pin-workspaces = true ; This will split the workspace name on ':' ; Default: false strip-wsnumbers = true ;bright_red = #fb4934 ;bright_green = #b8bb26 ;bright_yellow = #fabd2f ;bright_blue = #83a598 ;bright_purple = #d3869b ;bright_aqua = #8ec07c ;bright_orange = #fe8019 ;ws-icon-1 = 1:1;%{B#b58900}1%{B-} ;ws-icon-0 = 1:1;%{F#db4934}%{F-} ;ws-icon-1 = 2:2;%{F#b8bb26}%{F-} ;ws-icon-2 = 3:3;%{F#fabd2f}%{F-} ;ws-icon-3 = 4:4;%{F#83a598}%{F-} ;ws-icon-4 = 5:5;%{F#d3869b}%{F-} ;ws-icon-4 = 5:5; ;ws-icon-5 = 6:6; ;ws-icon-6 = 7:7; ;ws-icon-7 = 8:8; ;ws-icon-8 = 9:9;﬐ ;ws-icon-9 = 10:10; ;ws-icon-10 = 11:; ;ws-icon-11 = 12:; ws-icon-default = ﱤ ; mode menu styling label-mode-padding = 1 label-mode-foreground = ${colors.light0_hard} label-mode-background = ${colors.dark2} ;label-mode-underline = ${colors.light2} ; can use: %icon% %name% %index label-focused = %name% label-unfocused = ·%name% label-visible = ·%name% label-urgent = ·%name% label-focused-foreground = ${colors.light0_hard} label-unfocused-foreground = ${colors.light0_hard} label-visible-foreground = ${colors.light0_hard} label-urgent-foreground = ${colors.bright_orange} label-focused-padding = 1 label-unfocused-padding = 1 label-visible-padding = 1 label-urgent-padding = 1 ;label-focused = %icon% %name% ;label-focused = %index% ;label-focused-background = ${module/bspwm.label-focused-background} ;label-focused-underline = ${module/bspwm.label-focused-underline} ;label-focused-padding = ${module/bspwm.label-focused-padding} ;label-focused-background = ${colors.light1} ;label-focused-underline = ${colors.underline-i3-focused} ; unfocused = Inactive workspace on any monitor ;label-unfocused = %index% ;label-unfocused-underline = ${colors.underline-i3-unfocused} ;label-unfocused-padding = ${module/bspwm.label-occupied-padding} [module/mpd] type = internal/mpd format-online = icon-prev = 玲 icon-stop =  icon-play =  icon-pause =  icon-next = 怜 label-song-maxlen = 25 label-song-ellipsis = true [module/xbacklight] type = internal/xbacklight format =