mihirlad55 / polybar-dwm-module

A dwm module for polybar
MIT License
116 stars 15 forks source link

Symbol for Monocle layout displayed improperly #16

Closed rensenware closed 4 years ago

rensenware commented 4 years ago

Describe the issue

On the dwm module in polybar, rather than the symbol being displayed for the monocle layout being the symbol being set in dwm's config.h, it displays what seems to be the number of containers open in the current tag.

Was it working before? I did not have the layout displayed in the dwm module previously, I only noticed it when I enabled that.

To Reproduce

A minimal but complete config with which the problem occurs:

[module/dwm]
type = internal/dwm
format = <label-tags> <label-layout>

enable-tags-click = true
enable-layout-click = false
enable-layout-scroll = false
layout-scroll-wrap = false
layout-scroll-reverse = false

secondary-layout-symbol = [M]

; Symbol of current layout
; Available tokens:
;   %symbol%
label-layout = "%{T3}%symbol%"
label-layout-padding = 0
label-layout-foreground = ${colors.fg1}
label-layout-background = ${colors.bg1}

; Text to show when currently focused window is floating
label-floating = F

; States: focused, unfocused, visible, urgent, empty
; Available tokens:
;   %name%

; focused = Selected tag on focused monitor
label-focused = "%{T2}  %{T9}%name%%{T2}  "
label-focused-background = ${colors.bg2}
label-focused-padding = 0

; unfocused = Unselected tag on unselected monitor
label-unfocused = "%{T2}  %{T9}%name%%{T2}  "
label-unfocused-background = ${colors.bg1} 
label-unfocused-padding = 0

; visible = Unselected tag, but occupied tag on any monitor
label-visible = "%{T2}  %{T9}%name%%{T2}  "
;label-visible-background = #443333
label-visible-foreground = #be6f91
label-visible-padding = 0

; urgent = Unselected tag with window that has urgency hint set
label-urgent = "%{T2}  %{T9}%name%%{T2}  "
label-urgent-background = #be6f91
label-urgent-padding = 0

; empty = Unselected and unoccupied tag
; This can be set to an empty string to hide empty tags
label-empty = "%{T2}  %{T9}%name%%{T2}  "
label-empty-background = ${colors.bg1}
label-empty-foreground = #666666
label-empty-padding = 0

Screenshots

If applicable, add screenshots to help explain your problem. polybar-expected polybar-unexpected

Environment:

Features: +alsa +curl +dwm +i3 +mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) +composite +xkb +xrm +xcursor

Build type: Release Compiler: /usr/bin/c++ Compiler flags: -D_FORTIFY_SOURCE=2 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

rensenware commented 4 years ago

nvm i'm dumb this is useful and not problematic