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 a way to unset workspace rules #5691

Open
diniamo opened this issue Apr 22, 2024 · 4 comments
Open

Add a way to unset workspace rules #5691

diniamo opened this issue Apr 22, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@diniamo
Copy link

diniamo commented Apr 22, 2024

Description

With 10caa03 merged, it is no longer possible to unset workspace rules, which I would have previously done by not passing the key to the workspace keyword.

Maybe allow the use of STRVAL_EMPTY (=[[EMPTY]]) as a possible value for workspace rules?

@diniamo diniamo added the enhancement New feature or request label Apr 22, 2024
@vaxerski
Copy link
Member

elaborate on how you'd want to do it?

@diniamo
Copy link
Author

diniamo commented Apr 22, 2024

Well I don't make the design choices for Hyprland, but I imagined something like

hyprctl keyword workspace 'gapsin:[[EMPTY]],gapsout:[[EMPTY]]'

which would turn

{
    "workspaceString": "1",
    "gapsIn": [0, 0, 0, 0],
    "gapsOut": [0, 0, 0, 0]
}

into

{
    "workspaceString": "1"
}

(as per the output of hyprctl -j workspacerules)

Of course, [[EMPTY]] can be replaced with anything as long as it's documented.


On an unrelated note, why are gaps returned as arrays?

@vaxerski
Copy link
Member

you're missing a workspace tho

you mean like:

workspace = 1, gapsin:unset

?

@diniamo
Copy link
Author

diniamo commented Apr 23, 2024

Whoops, that's right, I missed the 1, at the start

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