dylanaraps / sowm

An itsy bitsy floating window manager (220~ sloc!).
MIT License
906 stars 70 forks source link

Have status bars span across all workspaces #25

Closed manfromth3m0oN closed 4 years ago

manfromth3m0oN commented 4 years ago

Is there some way to have a statusbar (e.g. polybar) span across all workspaces like the way it works in i3. If this is not currently implemented could someone please give me some pointer for making a patch to allow this. Thanks ~ M

ghost commented 4 years ago

Hi dylan, not sure if this will be of any help but when i use lemonbar with below config in sowm it spans accross all workspaces only if set with -d and -p flags i think.

conky | lemonbar -g x22 -B "#1F1F1F" -F "#00FF00"  -f "-xos4-terminus-bold-*-normal-*-12-120-72-72-*-60-iso8859-16" -d -p  &
-d  Force docking without asking the window manager. This is needed if the
           window manager isn't EWMH compliant.

-p  Make the bar permanent, don't exit after the standard input is closed.

edited:

the conky config if you need it to test.

conky.config = {
        out_to_x = false,
    out_to_console = true,
    update_interval = 1,
}

conky.text = [[
  Linux: ${kernel} | Mem: ${mem} / ${memmax} | Cpu:${cpu cpu0}% | Root: ${fs_used /} / ${fs_size /} | \
Net: ${gw_iface} | %{r}${time %d/%m/%y %R}

]]

sorry i edited this again, i had -pb flag with another -p flag.

Leon-Plickat commented 4 years ago

I think this issue can be closed.

Bars and other desktop widgets will never behave perfectly, because they expect the WM to implement (and respect) EWMH. As proudly proclaimed in the README, EWMH not being implemented is a feature of this WM.

As a workaround, windows with redirect-override should be completly ignored by the WM and therefore appear on every workspace. AFAIK lemonbar, polybar and conky support redirect-override for their windows, so you can use those as a bar.