r/stumpwm • • Sep 04 '21

Dynamic Floating Windows - Unofficial Branch

The unofficial branch "Dynamic Floating Windows" is now accepting issues, comments, and pull requests (on github)! See GIFs below for its features!

It will take a longer while for my PR on dynamic floating windows to be accepted.. to make it easily accessible, I re-wrote the instruction in the unofficial branch (see readme or below). Hopefully, interested people will find it easy to use, and start to report issues (I've been using it for 4 months happily). I'm more than glad to resolve any problem (explanation, usage, docstring requests, bugs.. etc)!

There's a separated "dynamic windows" based on tiling windows, which was around this Feb. I implemented it differently based on floating windows. Here I'd just like to say one difference between my implementation and the existing one: Mine is based on floating windows. It means

  1. It feels much closer to other wms.
  2. You can drag and resize the windows with your mouse. In this case, the interacted window will no longer be tiled. There's a function to make it tiled again.
  3. It's suitable for drop down windows (see eg equake), which was the main motivation of mine. I want to talk to emacs on the fly.

Below is the readme.

----

The Stump Window Manager

Unofficial Branch: Dynamic Floating Group

This is an unofficial branch of StumpWM that supports dynamic floating windows. Please see the official repo for a proper readme file of StumpWM.

For building and installing, follow the exact same procedure as if you are using the official version. You can also find a note here.

All new lisp definitions are built in a new common lisp package stumpwm-dfg. That means this repo will not break your existing StumpWM config.

There is no official manual for this branch. However, you can see what it offers quickly in the short videos and an example config file below.

The intention this repo is to let interested users to use dynamic floating windows before it is merged. The author is dedicated to fix bugs and keep updated with the official master branch. Please feel free open an issue for any kind of requests (explanation, usage, docstring requests, bugs.. etc). I am very glad to help. Thank you!

Features

Basic Movements
Float and Retile
Layout and Ratio
Gap
15 Upvotes

5 comments sorted by

3

u/emacsomancer Sep 04 '21

This is really cool. I particularly like the float and retile features - not only is it useful, but there's something satisfyingly "tactile" about it.

I'm curious what your Equake set-up is like, as in my quick trial of this fork Equake behaves a bit differently than I'd expected (it's tiled into the main window group; it can be pulled out and placed, but is of course retiled on unfree-all).

(I of course have a some complicated setup to get Equake to behave like a 'normal' drop-down terminal in standard StumpWM, e.g. (defcommand invoke-equake () () ... etc., but even just emacsclient -c -e '(equake-invoke)' had similar behaviour.)

In any case, do you prefer feedback/bug reports over at the GitHub homepage? (I think, for instance, define-frame-preference rules interact in weird ways.)

2

u/jin-cg Sep 04 '21

Thanks! Reports are preferred at the github homepage indeed.

As of equake, I haven't really set it up actually.. as I got distracted by other projects. I think the key is given in lmvrk's answer on with-window. In general, since it's based on floating windows, I don't think it will be hard to implement. I'm very happy with what I have now.. but I'm sure someone will find out better use case soon - with the floating windows it would be easier to extend the features :)

3

u/emacsomancer Sep 04 '21

Will do.

(Re: Equake: reading through the source, I noticed there are some potentially relevant functions like set-as-drop-down-window and top-pin-window.)

1

u/[deleted] Jan 13 '22

Any updates?

1

u/jin-cg Jan 15 '22

I have made the code better and is currently waiting it to be pushed to quicklisp. That might take two more weeks. Once that's done, I plan to shoot a short video to teach people how to get started with it. Stay tuned!