Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keyboard shortcuts to temporarily float a window or add it to filter processes #183

Open
Grafcube opened this issue Jun 24, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Grafcube
Copy link

Is your feature request related to a problem? Please describe.
Sometimes when an app spawns a temporary window it causes the entire layout to jump around unnecessarily. For example, it's a hassle to have to check the window class and then add it to the exceptions and then reload the script.

Describe the solution you'd like
A keyboard shortcut to make the focused window float without persistence and another to add the current window to the list of exceptions.

Describe alternatives you've considered
I can't think of any.

Additional context
I cloned the repo and attempted to add the feature myself but I'm not too familiar with typescript or how the KDE apis work so I couldn't figure it out.

Thanks for the great extension. My system is literally unusable without it 👍

@Grafcube Grafcube added the enhancement New feature or request label Jun 24, 2024
@Raven-002
Copy link

A keyboard shortcut to make the focused window float without persistence

Isn't that the behavior of retile window? (A misleading name, I know)

@Grafcube
Copy link
Author

Unless I'm using it wrong, no that doesn't seem to be the case. All it seems to do is tile a window that isn't already tiled.

@Raven-002
Copy link

It should also untile a tiled window

    retileWindow(): void {
        const window = this.ctrl.workspace.activeWindow;
        if (window == null || !this.ctrl.windowExtensions.has(window)) {
            return;
        }
        if (this.ctrl.windowExtensions.get(window)!.isTiled) {
            this.ctrl.driverManager.untileWindow(window);
        } else {
            this.ctrl.driverManager.addWindow(window);
        }
        this.ctrl.driverManager.rebuildLayout();
    }

This is the code of the shortcut

@Grafcube
Copy link
Author

Yeah sorry that's my mistake. I just didn't notice the window get untiled. It does seem a little bit inconsistent with maximized windows but that's not really a big deal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants