ssokolow / quicktile

Adds window-tiling hotkeys to any X11 desktop. (An analogue to WinSplit Revolution for people who don't want to use Compiz Grid)
https://ssokolow.com/quicktile/
GNU General Public License v2.0
869 stars 78 forks source link

Generalize move-to-center command for other positions on the screen #77

Closed ghost closed 7 years ago

ghost commented 7 years ago

New commands

$ ./quicktile.py 
Known Commands       
--------------------------------------------------------------------
...
Move window to a position on the screen, preserving its dimensions
 move-to-bottom       
 move-to-bottom-left  
 move-to-bottom-right 
 move-to-center       
 move-to-left         
 move-to-right        
 move-to-top          
 move-to-top-left     
 move-to-top-right    
...

Example behavior

./quicktile.py move-to-right:

move-to-right

./quicktile.py move-to-top:

move-to-top

./quicktile.py move-to-bottom-left:

move-to-bottom-left

ssokolow commented 7 years ago

Nice! I'd actually been wanting to have this functionality myself, but I was always reminded that I lacked it at times when I was too busy to do anything about it.

I'll try to test your patch out and get it merged later today.

Also, I like your illustrations. Simple, yet easy on the eyes. If I were to start putting together a command reference page for the QuickTile site, how many more (if any) would would you have time to make?

(It wouldn't be difficult for me to replicate the style... I just don't have the time right now.)

ghost commented 7 years ago

Here are some more illustrations: https://github.com/stygstra/quicktile-diagrams. I'll probably make more later.

ssokolow commented 7 years ago

Merged. Sorry for the delay. Some unexpected stuff came up.

ssokolow commented 7 years ago

OK, sorry for taking so long (stuff is still happening), but I put together a basic command reference:

http://ssokolow.com/quicktile/commands.html

When I have more time, I'll improve it but, for now, it has all of the commands listed and I've credited you in the page footer for the diagrams. If you look at the git history, you'll see that I actually merged the history from your quicktile-diagrams repository in as a subfolder.

I also had to rework your Makefile a bit. I switched to using Inkscape to render the PNGs (because ImageMagick didn't look as nice), added OptiPNG and AdvanceCOMP stages (which shave off over 40% of the size of each PNG file), and un-ignored the PNGs so they could be committed to the gh-pages branch for use in the site.

(I'd actually have used the raw SVGs in the site, given browser support for them these days, but I didn't have time to fix the font rendering.)

ghost commented 7 years ago

Nice! Don't worry about the delays, it's no big deal.