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 ppt support to move position (similar to resize) #3519

Open
shazow opened this Issue Nov 10, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@shazow

shazow commented Nov 10, 2018

I'm submitting a…

[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

Right now, the move syntax only supports px:

move <left|right|down|up> [<px> px]
move position <pos_x> [px] <pos_y> [px]

Desired Behavior

resize learned to use ppt to support percentage values here: #3023

It would be useful (and also more consistent) to support ppt (percentage-based) measures for move.

Example use case: I'm trying to top-middle align a window to take up 80% of the screen width.

resize set 80 ppt 40 ppt works great, but would be nice if move absolute position 10 ppt 0 ppt also worked (move 10% from the left).

Environment

Output of i3 --moreversion 2>&-:

i3 version: 4.16 (2018-11-04) 
- Linux Distribution & Version: Arch Linux
- Are you using a compositor (e.g., xcompmgr or compton): No.

@i3bot i3bot added the enhancement label Nov 10, 2018

@Airblader Airblader added the 4.16 label Nov 10, 2018

@Airblader

This comment has been minimized.

Member

Airblader commented Nov 10, 2018

Off the top of my head I don't see a good reason not to support this.

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