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

Key bindings to resize a window from all sides/corners. #409

Closed
Obarun opened this issue Aug 29, 2017 · 6 comments
Closed

Key bindings to resize a window from all sides/corners. #409

Obarun opened this issue Aug 29, 2017 · 6 comments

Comments

@Obarun
Copy link

Obarun commented Aug 29, 2017

maybe i do something wrong with the configuration file but resizing window with ALT+Left mouse button only pick the bottom right corner of the windows. It's impossible to resize by e.g the top left corner of the windows. This is a normal behaviour?
Passing through the menu when i click with the left button on the task list and picking the resize option give me the same behaviour.
If this behaviour is not expected , can you enlight me what i need to do?
If this behaviour is normal, can you please add the possibility to resize window whatever the corner picked?

Edit : i use the last release available 2.3.7

@ghost
Copy link

ghost commented Aug 30, 2017

Hi @Obarun In the most recent git version (2.4.0 version) the ability to configure the resize option is very configurable. The mouse context can be changed for MANY actions.
For a list man jwm in the latest version
Example:

	<Mouse context="title" button="1">move</Mouse>
	<Mouse context="title" button="2">move</Mouse>
	<Mouse context="title" button="3">window</Mouse>
	<Mouse context="title" button="4">shade</Mouse>
	<Mouse context="title" button="5">shade</Mouse>
	<Mouse context="title" button="11">maximize</Mouse>
	<Mouse context="icon" button="1">window</Mouse>
	<Mouse context="icon" button="2">move</Mouse>
	<Mouse context="icon" button="3">window</Mouse>
	<Mouse context="icon" button="4">shade</Mouse>
	<Mouse context="icon" button="5">shade</Mouse>
	<Mouse context="border" button="1">resize</Mouse>
	<Mouse context="border" button="2">move</Mouse>
	<Mouse context="border" button="3">window</Mouse>
	<Mouse context="close" button="-1">close</Mouse>
	<Mouse context="close" button="2">move</Mouse>
	<Mouse context="close" button="-3">close</Mouse>
	<Mouse context="maximize" button="-1">maximize</Mouse>
	<Mouse context="maximize" button="-2">maxv</Mouse>
	<Mouse context="maximize" button="-3">maxh</Mouse>
	<Mouse context="minimize" button="-1">minimize</Mouse>
	<Mouse context="minimize" button="2">move</Mouse>
	<Mouse context="minimize" button="-3">shade</Mouse>

It seems as though I have always been able to resize the window irregardless of which corner I chose, but honestly I have been using the keyboard to resize windows for quite some time, which is easier and faster for me and might be something you want to use.
Example:

	<Key mask="C4" key="Up">maxtop</Key>
	<Key mask="C4" key="Left">maxleft</Key>
	<Key mask="C4" key="Right">maxright</Key>
	<Key mask="C4" key="Down">maxbottom</Key>

@Obarun
Copy link
Author

Obarun commented Sep 3, 2017

@israel, i didn't found the last release 2.4.0 at http://joewing.net/projects/jwm/releases/, maybe i don't use the good URL.
By the way, thanks for the tricks about mouse configuration. I use already keyboard to have "tiling", but sometime is good to be able to rezise the windows with the mouse.

@joewing
Copy link
Owner

joewing commented Sep 3, 2017

The key binding to resize a window only does the bottom right corner. Currently there's no key binding to select a different corner, though that is something that could be added. Of course, it's possible to combine resize/move, but I could see someone who is trying to avoid using the mouse want a more key bindings. This is something that would be fairly easy to add.

Unfortunately, the mouse bindings won't help with this, there would need to be additional key bindings introduced.

Version 2.4 isn't released yet (it's the version number selected for the next version). The mouse bindings will only work with 2.4, not 2.3.7.

@joewing joewing changed the title Rezise window Key bindings to resize a window from all sides/corners. Sep 3, 2017
@joewing
Copy link
Owner

joewing commented Sep 3, 2017

I forgot to mention previously, but the reason key bindings matter here is because in 2.4, key bindings and mouse bindings are shared to a certain degree. So adding a "key" binding would make that action available to for mouse bindings as well.

@Obarun
Copy link
Author

Obarun commented Sep 3, 2017

@joewing , thanks for your answer, i will wait for this new feature :)

@joewing
Copy link
Owner

joewing commented Sep 30, 2017

As of snapshot 1651, it's possible to explicitly set which border you want to resize in a binding by suffixing with the side (resize:ne to resize the north-east corner, for example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants