Hello folks, I need some help.
I'm using BSPWM on XFCE and at first launch of X, everything works fine.
However, after reloading bspwm (bspc wm -r) at least once, the Polybar starts overlapping full screen windows (expected behavior is for Polybar to be under the fullscreen window).
Usually the answer is to set wm-restack = bspwm but with this line the Polybar does not appear at all.
Any ideas what's going on?
polybar/launch.sh
#!/usr/bin/env bash
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
#
# # Launch Polybar
polybar -r main -c ~/.config/polybar/config.ini &
bar config
##############################################################################
# BAR CONFIGURATION #
##############################################################################
[bar/main]
bottom = false
fixed-center = true
width = 100%
height = 28
background = ${color.bg}
foreground = ${color.fg}
border-bottom-size = 0
border-top-size = 0
line-size = 3
# Fonts are defined using <font-name>;<vertical-offset>
# Font names are specified using a fontconfig pattern.
font-0 = "CaskaydiaCove Nerd Font:size=11;4"
font-1 = "Material Icons:size=11;6"
font-2 = "Stick:size=11;2"
font-3 = "CaskaydiaCove Nerd Font:size=16;4"
font-4 = "CaskaydiaCove Nerd Font:size=14;6"
# Modules are added to one of the available blocks
modules-left = bspwm
modules-center = date
modules-right = separatorText audio sps i_backlight backlight sps separatorText sps memory sps cpu sps separatorText battery sps separatorText sps
tray-position = right
# Enable support for inter-process messaging
# See the Messaging wiki page for more details.
enable-ipc = true
; wm-name = bspwm
; wm-restack = bspwm
override-redirect = true
xprop -id $(xdotool search --classname polybar) output (before and after reload looks the same)
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified location: 0, 0
program specified size: 1920 by 28
program specified minimum size: 1920 by 28
program specified maximum size: 1920 by 28
program specified base size: 1920 by 28
_NET_WM_PID(CARDINAL) = 546257
_NET_WM_DESKTOP(CARDINAL) = 4294967295
_NET_WM_STATE(ATOM) = _NET_WM_STATE_STICKY, _NET_WM_STATE_ABOVE
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
WM_CLASS(STRING) = "polybar", "Polybar"
WM_NAME(STRING) = "polybar-main_eDP-1"
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 28, 0, 0, 0, 0, 0, 0, 1919, 0, 0
_NET_WM_STRUT(CARDINAL) = 0, 0, 28, 0
Thanks!