jzbor / marswm

A modern window manager featuring dynamic tiling (rusty successor to moonwm).
https://jzbor.de/marswm/
MIT License
47 stars 3 forks source link

Allow specific floating clients #4

Closed 0323pin closed 1 year ago

0323pin commented 1 year ago

Hi,

Is it possible to implement client/window rules that don't follow the specified layout?

I only use tiling layouts and generally never use floating clients. There's one exception, though. A tiled calculator looks awful 😄

On LeftWM, I have this section in the config file,

window_rules: [
        (window_class: "Galculator", spawn_floating: true),
    ]

Is it possible to spawn a single floating client on marswm while having everything else tiled?

Feel free to close this if you do not intend to implement such feature.

Regards

jzbor commented 1 year ago

Hi, marswm already supports window rules (docs, but there is currently no "floating" attribute. This is something I already noticed on several occasions myself and I definitely plan to implement it, when I find some time.

0323pin commented 1 year ago

Thanks!

I've been using marswm for over a month now and this is a minor issue.

marswm already supports window rules

yes, I was aware of this but, as you pointed out, there's no layout attribute.

jzbor commented 1 year ago

Sorry, I misread your initial comment. I am currently a bit busy, but this should not be to big of a hassle to implement. Until then you could try using a window rule the toggle-floating action as a workaround...

jzbor commented 1 year ago

Hi, this should be implemented with the most recent commit. Looking forward on feedback on whether it works as expected...

0323pin commented 1 year ago

Thank you!

Looking forward on feedback on whether it works as expected...

Yes, it does. Adding the following rule

- identifiers:
    application: 'jolly'
  floating: true

yields the expected result :)

2023-05-09-110823_1366x768_scrot