Show Us Your Polybar

Nice Pack, looking really good.

Nice & clean @PackRat

@Dobbie03 @altman - thanks; finished it:

5 Likes

Looks great @PackRat

1 Like

Looks impressive. Love it.

@rml - workspaces module for my yaxwm polybar:

;;==========================
;;
;; workspaces
;;
;;==========================

[module/xdesktops]
type = internal/xworkspaces

; 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 = false

; Create click handler used to focus desktop
; Default: true
enable-click = true

; Create scroll handlers used to cycle desktops
; Default: true
enable-scroll = false
reverse-scroll = false
fuzzy-match = true

; icon-[0-9]+ = <desktop-name>;<icon>
; NOTE: The desktop name needs to match the name configured by the WM
; You can get a list of the defined desktops using:
; $ xprop -root _NET_DESKTOP_NAMES
icon-0 = 1;
icon-1 = 2;
icon-2 = 3;
icon-3 = 4;
icon-4 = 5;
icon-5 = 6;
icon-6 = 7;
icon-7 = 8;
icon-8 = 9;
icon-9 = 10;
icon-default =

; Available tags:
;   <label-monitor>
;   <label-state> - gets replaced with <label-(active|urgent|occupied|empty)>
; Default: <label-state>
format = <label-state>

; Available tokens:
;   %name%
; Default: %name%
label-monitor = %name%

; Available tokens:
;   %name%
;   %icon%
;   %index%
; Default: %icon%  %name%
label-active = " %name% "
label-active-foreground = ${colors.foreground}
label-active-background = ${colors.darkgray}
;label-active-underline = 

; Available tokens:
;   %name%
;   %icon%
;   %index%
; Default: %icon%  %name%
label-occupied = " %name% "
label-occupied-foreground = ${colors.foreground}
label-occupied-background = ${colors.yellow}
;label-occupied-underline = #555555


; Available tokens:
;   %name%
;   %icon%
;   %index%
; Default: %icon%  %name%
label-urgent = " %name "
label-urgent-foreground = ${colors.foreground}
label-urgent-background = ${colors.urgent}
;label-urgent-underline = ${colors.urgent}

; Available tokens:
;   %name%
;   %icon%
;   %index%
; Default: %icon%  %name%
label-empty = " %name% "
label-empty-foreground = ${colors.dimgray}
label-empty-background = ${colors.background}

Never tried before, but it doesn’t work showing the occupied desktop.

3 Likes

Thanks! It actually looks like mine, I thought I was setting something wrong and couldnt see the occupied desktops. Thats not really a problem though, I’ll use it this way on yax

I checked some other window managers. Polybar was only showing occupied desktop for bspwm, so this appears to be a polybar issue, not yaxwm.

1 Like

yeah I just tried it on xmonad and qtile and the same thing happens. Must be a polybar problem indeed

My current polybar:

img-2020-04-21-072958

Literally just a system tray.

1 Like

ArchLabs_Bspwm_panel

5 Likes

Looks great @Beast

1 Like

@PackRat The module is just a script so I can tell the occupied and empty workspaces apart when I toggle the bar, not clickable and stuff. Actually I have two modules: one for showing the active ws and another one for showing occupied ws because when I put both together sometimes the active would appear on the right side and sometimes on the left and I don’t know how to prevent it lol

Modules:

[module/yaxact]
type = custom/script
exec = ~/.config/polybar/scripts/yaxactive
interval = 1
label = %output%
format-foreground = #5bb955
format-background = ${colors.background}

[module/yaxoccupied]
type = custom/script
exec = ~/.config/polybar/scripts/yaxoccu
interval = 1
label = %output%
label-padding =
format-foreground = #afafd7
format-background = ${colors.background}

Scripts:
yaxactive

#!/bin/sh
ws=$(wmctrl -d | grep ‘*’ | awk ‘{printf (sum $1+1)}’)
echo “$ws”

yaxoccupied

#!/bin/sh
ws=$(wmctrl -l | awk ‘!seen[$2]++ {printf " " (sum $2+1)" "}’ )
echo “$ws” | sed ‘s/0//g’

And the script I have in my notify-send for showing both infos together

#!/bin/sh
ws=$(wmctrl -d | grep ‘*’ | awk ‘{printf “[” (sum $1+1)"] "}’ & wmctrl -l | awk ‘!seen[$2]++ {printf (sum $2+1)" "}’)
echo “$ws” | sed ‘s/0//g’

There’s probably better ways to make them but I have near to 0 knowledge when it comes to anything scripting related lol

4 Likes

I’m glad you liked bro, this clean and minimal tint2 panel currently is everything i need to get stuff done.
BTW, i’m really enjoying ArchLabs project’s minimalistic philosophy and must say thank you guys for this amazing work! Obrigado!

2 Likes

Welcome to the community @Beast ! Nice to see a fellow Brazilian around here

1 Like

Obrigado man, nice to see a fellow brasuca too! :call_me_hand:

2 Likes

Like tint2 also on my end @Beast .

Keep it on.

1 Like

Here’s my new tint2 on bspwm… (also works on hlwm) both running AL.

1 Like

Omg @PackRat @natemaia I just saw this commit for polybar’s xworkspaces module. I applied this patch and recompiled from source and now it finally works! It fixes the problem with occupied workspaces and now polybar works perfectly with yaxwm workspaces. Thank god I don’t have to use lemonbar anymore lol

3 Likes

Thanks; removed the polybar package (Void linux) and compiled from source. Workspaces module working in any window manager. I didn’t have to apply any patch.

That commit is 6 months old so the Void package is behind a bit. I wonder if the AUR polybar-git package would include it? Something to check when I can get on the ArchLabs box.

1 Like