ArchLabs Linux

Show Us Your Polybar

Sweet, cool idea.

Here is my latest polybar setup, only 4 modules. Keeping it minimal.

Config:

[bar/bar]
background = #D93d3c3b
foreground = #b6a49b
width                    = 24%
height                   = 70
radius                   = 15
line-size                = 0
bottom                   = true
border-bottom-size       = 0
padding-left             = 0
padding-right            = 0
#module-margin-left       = 1
#module-margin-right      = 1

fixed-center = true
font-0 = San Francisco Display Regular:size=24;1
font-1 = unifont:fontformat=truetype:size=24:antialias=false;0
font-2 = "MaterialIcons:size=24:antialias=false;1"
font-3 = "icomoon-extended-ultra:size=24:antialias=false;1"
font-4 = "Ubuntu Nerd Font:size=24:antialias=false;1"
font-5 = FontAwesome:size=24;1

modules-left = 
modules-center =
modules-right = date volume eth poweroff 
module-margin = 2

;left - center - right - none
tray-position = none
tray-maxsize = 24
tray-detached = false
tray-transparent = false
tray-padding = 2
tray-scale = 1.0


override-redirect = true
offset-x = 2900
offset-y = 20

padding = 0

wm-name = bar

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


[module/date]
type = internal/date
interval = 60
date = %a %d %b
time = %l:%M %p
label =    %date%      %time%
;label =  %time%
format-padding = 1

[module/volume]
type = internal/volume
format-volume =   <ramp-volume>  <label-volume>
format-muted = 0%  
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 

[module/poweroff]
type = custom/script
exec = echo "  "
click-left = rofi -modi run,drun,window -show drun
click-right = i3lock-fancy -pg &
click-middle = /usr/bin/rofi-logout
format-padding = 1

[module/rofi]
type = custom/script
exec = echo "  "
click-left = rofi -modi run,drun,window -show drun
format-padding = 1


[module/eth]
type = internal/network
interface = enp2s0
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = "  "
format-connected-prefix-foreground = #b6a49b
label-connected = %downspeed:9%
format-disconnected = <label-disconnected>
label-disconnected = not connected
label-disconnected-foreground = #66ffffff
format-padding = 1
3 Likes

7 posts were split to a new topic: Polybar font help

1 Like

Font Awesome broke (on Void, not Arch) so switched to headings instead of icons. Could chnage to Marterial Icons but didn’t want to deal with it right now.

And changed the foreground colour to the sandy brown colour from dobbie’s gtk/openbox theme. Very eyeball friendly colour.

screen-import-Sunday_1523220024.md.png

bspwmscrot.md.png

Here is my latest:

Configs:

Fullbar file:

width                    = 90%
height                   = 70
radius                   = 15
line-size                = 0
bottom                   = true
#module-margin-left       = 1
#module-margin-right      = 1

fixed-center = true
font-0 = San Francisco Display Regular:size=10;5
font-1 = unifont:fontformat=truetype:size=10:antialias=false;5
font-2 = "MaterialIcons:size=10:antialias=false;5"
font-3 = "icomoon-extended-ultra:size=10:antialias=false;5"
font-4 = "Ubuntu Nerd Font:size=10:antialias=false;5"
font-5 = FontAwesome:size=10;5



override-redirect = true
offset-x = 192
offset-y = 20
screenchange-reload      = true
throttle-output          = 5
throttle-output-for      = 10
throttle-input-for       = 30
padding-left             = 0
padding-right            = 0
module-margin-left       = 2
module-margin-right      = 3

Polybar Config

[bar/bar]
monitor = ${env:MONITOR:HDMI-A-0}
dpi = 192
include-file = ~/.config/polybar/bar
background = #D92E3440
foreground = #ECEFF4


modules-left = 
modules-center =
modules-right = date volume eth poweroff 


[bar/bar2]
monitor = ${env:MONITOR:HDMI-A-0}
dpi = 192
include-file = ~/.config/polybar/bar2
background = #D92E3440
foreground = #ECEFF4
modules-left = music
modules-center =
modules-right = 

[bar/fullbar]
monitor = ${env:MONITOR:HDMI-A-0}
dpi = 192
include-file = ~/.config/polybar/fullbar
background = #D92E3440
foreground = #ECEFF4
modules-left = music
modules-center =
modules-right = date volume eth poweroff


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


[module/date]
type = internal/date
interval = 60
date = %a %d %b
time = %l:%M %p
label =    %date%      %time%
;label =  %time%
format-padding = 1


[module/backlight]
type = internal/xbacklight
label = %percentage%%  


[module/battery]
type = internal/battery
battery = BAT1
adapter = ADP1
poll-interval = 0
format-discharging = <label-discharging>  <ramp-capacity>
format-full = <label-full>  <ramp-capacity>
format-charging = <label-charging>  <ramp-capacity>  
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-3 = 
ramp-capacity-4 = 


[module/wlan]
type = internal/network
interface = wlan0
interval = 5
label-connected = %essid%  

[module/wlan2]
inherit = module/wlan
interface = wlp1s0

[module/volume]
type = internal/volume
format-volume =   <ramp-volume>  <label-volume>
format-muted = 0%  
ramp-volume-0 = 
ramp-volume-1 = 
ramp-volume-2 = 

[module/poweroff]
type = custom/script
exec = echo "    "
click-left = rofi -modi run,drun,window -show drun
click-right = i3lock-fancy -pg &
click-middle = /usr/bin/rofi-logout
format-padding = 1

[module/rofi]
type = custom/script
exec = echo "   "
click-left = rofi -modi run,drun,window -show drun
format-padding = 1

[module/time]
type = internal/date
interval = 5
label-foreground = #b6a49b
date =
date-alt = " %Y-%m-%d"

time = %H:%M
time-alt = %H:%M:%S

format-prefix = 
format-prefix-foreground = #b6a49b
;format-underline = #0a6cf5
format-padding = 1
label = %date% %time%

[module/pkg]
type                    = custom/script
label                   = %output%
tail                    = true
label-padding           = 1
exec                    = $HOME/.config/polybar/updates
exec-if                 = "ping -c 1 8.8.8.8 > /dev/null"
click-left              = urxvt --geometry 100x30 -e sudo pacman -Syyu &

[module/play]
type = custom/script
exec = python3 ~/.config/polybar/Play.py
format-padding = 1
interval = 2
format = <label>
format-foreground = #b6a49b
click-left = playerctl play
click-right = playerctl pause

[module/pause]
type = custom/script
exec = python3 ~/.config/polybar/Pause.py
format-padding = 1
format = <label>
interval = 2
format-foreground = #b6a49b
click-left = playerctl pause

[module/volume1]
type = custom/script
interval = 1
label = %output%
exec = $HOME/.config/polybar/pavolume.sh
click-right = exec pavucontrol &
click-left = $HOME/.config/polybar/pavolume.sh --togmute
scroll-up = $HOME/.config/polybar/pavolume.sh --up
scroll-down = $HOME/.config/polybar/pavolume.sh --down
tail = true
format-padding = 1

[module/eth]
type = internal/network
interface = enp2s0
interval = 3.0
format-connected = <label-connected>
format-connected-prefix = "  "
format-connected-prefix-foreground = #eceff4
label-connected = %downspeed:9%
format-disconnected = <label-disconnected>
label-disconnected = not connected
label-disconnected-foreground = #66ffffff
format-padding = 1

[module/music]
type = custom/script
interval = 2
label = %output:0:305:...%
label-padding = 1
exec = ~/.config/polybar/mpris2.sh
click-left = playerctl pause
click-right = playerctl play
format-padding = 3
3 Likes

Hi,
I would like to tweak a little bit my config : currently, I have 2 bars and i’d like to reduce them.
For instance, I want to sum up the two disk information at the bottom right into an information button, which would on click display these information. A sorta like menu.
Is there anyway to do so ?
Thanks !

I don’t think the polybar menu module allows the user to display other modules, so you would have to write a custom script that shows your free space and have that displayed. Sort of like a pipe menu.

Start a new help thread for that, this thread is for working configurations and screenshots.

1 Like

Installed the monofur nerd font so I could use icons with Void Linux (Font Awesome is broken); went with horizontal bar-load for CPU and RAM:

fbox_polybar.md.png

That is one nice polybar there @PackRat

Thanks, did the laptop as well; standardized colors and fonts (monofur nerd font):

sshot-122345_2018-06-27.md.png

2 Likes


I think I’m content with my Polybar. I might tweak it some more.

1 Like

Nice @Tyr-El , wide !

1 Like

A few updates

3 Likes

@TheJameyBear , nice updates there mate.

1 Like

@TheJameyBear Sweet! Almost out of space, you’ll need a second bar soon.

2 Likes

Plans…Oh yes…Plans have I

1 Like

Hehe! That’s the spirit!

1 Like

Are you running an ultrawide or two monitors?

Two 24" monitors. I’ve got one bar on each screen.