Window size keyboard shortcuts in Fluxbox ========================================= [Published 2022-12-10] Here is a trick I just discovered that you can use to change the size and position of the currently focused window in Fluxbox using a keyboard shortcut. Example; add this line to your .fluxbox/keys file: Mod4 e :MacroCmd {resizeto 704 1051} {moveto 500 0} Now (after a Fluxbox restart) you can press Super+e to set the window size to 704x1051 pixels and position to 500x0. In this example you get a tall and narrow window that can be used to read text and it is positioned close to the center of a 1920x1080 screen. Imagine all the things you can do with this. Put your windows in your favourite locations by just pressing two keys. No need to carefully aim with the mouse anymore and no restrictions like only being able to fill half or a quarter of the screen with the window. I discovered this by wanting to do exactly this, so since I use Fluxbox, I thought, let's modify Fluxbox to make it possible to do this. So I downloaded the source code using the `apt source fluxbox` command on Debian. Before I made any changes I tried to see if it was already possible to do it using the existing code. I searched for things like "resize" and "move" in the code base and found the implementations of these two commands. Happy window resizing!