tudurom / windowchef

Window Chef is a stacking window manager that cooks windows with orders from the Waitron
https://tudorr.ro/software/windowchef/
ISC License
204 stars 14 forks source link

[Feature] - Implement grid-based movment and resizing commands #56

Closed mtreca closed 5 years ago

mtreca commented 6 years ago

I've been using windowchef for a couple days and I really like the grid feature. However, I don't think there is an easy way to bind grid control commands in sxhdkd since they all require 6 parameters.

I wrote a small POC bash script that implements grid-based movement and resizing commands by using pfw from wmutils and xprop.

Do you think these features could be implemented in windowchef's core? I have no knowledge of C at all so I doubt I would be able to do this myself, but I might give it a shot.

The script is here Bonus screencast here

I use the following sxhkd config in the screencast:

super + g
    gridder -i
super + {h,j,k,l}
    gridder -m {-1 0, 0 1, 0 -1, 1 0}
super + shift + {h,j,k,l}
    gridder -r {-1 0, 0 1, 0 -1, 1 0}
mtreca commented 5 years ago

Closing the issue since it can be implemented outside of windowchef (see #57).