jbuchermn / newm

Wayland compositor
MIT License
960 stars 30 forks source link

Feat: Diagonal displacement #124

Closed CRAG666 closed 2 years ago

CRAG666 commented 2 years ago

The idea arises because I regularly have the windows organized in pairs then many times I need to scroll to a window diagonally, what I always do is to do it with two movements mod + k and mod + l which is impractical when doing it constantly, Then it occurred to me to have the feature of diagonal movements, so far I try to create a function with the move methods but so far I have failed.So I would like to have this feature to be able to assign a shorcut. Here is an example of displacement.

screen-1656684584

CRAG666 commented 2 years ago

@jbuchermn Thank you very much in advance

jbuchermn commented 2 years ago

Yeah this shouldn't be too much work - probably just needs some fixing in Layout.move to allow for layout.move(1, 1)

CRAG666 commented 2 years ago

@jbuchermn Great this is incredible.Already with this are added 4 more movements, diagonal up left and right, and diagonal down up left and right.Thank you very much for taking this idea into account

jbuchermn commented 2 years ago

I just pushed to master - can you try? I didn't really test much, so please do check.

CRAG666 commented 2 years ago

right now check, Thanks

CRAG666 commented 2 years ago

You are the best, this works super well feels very fluid many thanks, I have another idea to further improve the experience in newm but I will create another issue with an animation because it is necessary, I close the issue for the moment