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

Automatically set the property for window classes/application the user manually attached or detached to scratch layer #927

Open
oatmealm opened this issue Aug 8, 2024 · 3 comments
Labels
enhancement Adds a new feature or extends scope

Comments

@oatmealm
Copy link

oatmealm commented Aug 8, 2024

Is your feature request related to a problem? Please describe.

It could be an improvement of the current workflow.
Right now the user needs to manually identify and add the wm_class.

Describe the solution you'd like

If the user has manually attached a window to the scratch layer it should be automatically marked to open there next time launched. If manually detached, should be marked accordingly. This will save the need to add and remove manually.

@oatmealm oatmealm added the enhancement Adds a new feature or extends scope label Aug 8, 2024
@Lythenas
Copy link
Collaborator

Lythenas commented Aug 8, 2024

I also thought figuring out the wm_class is a bit annoying.

However, I don't know if we should always just add a rule automatically. I think that might be unexpected behavior. Maybe with a setting.

I think we could e.g. show some suggestions in the settings for currently open windows to make creating rules a bit easier.

@jtaala
Copy link
Collaborator

jtaala commented Aug 8, 2024

I think we could e.g. show some suggestions in the settings for currently open windows to make creating rules a bit easier.

Or we could add a window option (e.g. like when we right-click a window title, or hit alt+space) that has an option like add/remove scratch rule - that will automatically add or remove the rule.

E.g. like the Scratch option that is there (add other options to add/remove window by class etc.):

Screencast.from.2024-08-09.08-16-21.webm

@jtaala
Copy link
Collaborator

jtaala commented Aug 8, 2024

Or even make it more generic... like add PaperWM rule which will open PaperWM winprop settings and add (or open) a rule with the wm_class populated.

Could have options like:

  • add PaperWM wm_class rule
  • add PaperWM title rule

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds a new feature or extends scope
Projects
None yet
Development

No branches or pull requests

3 participants