I stole a very good idea from this thread about using the numpad to move windows to either the left/right, top/bottom, or the four corners of the screen.
Here is what I added to my ~/.fluxbox/keys file:
### TILING WINDOWS ###
#1920 / 2 = 960
#1080 / 2 = 540
Control KP_0 :Minimize
Control KP_1 :MacroCmd {ResizeTo 958 540} {MoveTo 00 00 LowerLeft}
Control KP_2 :MacroCmd {ResizeTo 1920 540} {MoveTo 00 00 LowerLeft}
Control KP_3 :MacroCmd {ResizeTo 958 540} {MoveTo 00 00 LowerRight}
Control KP_4 :MacroCmd {ResizeTo 958 1060} {MoveTo 00 00 UpperLeft}
Control KP_5 :Maximize
Control KP_6 :MacroCmd {ResizeTo 958 1060} {MoveTo 00 00 UpperRight}
Control KP_7 :MacroCmd {ResizeTo 958 540} {MoveTo 00 00 UpperLeft}
Control KP_8 :MacroCmd {ResizeTo 1920 540} {MoveTo 00 00 UpperLeft}
Control KP_9 :MacroCmd {ResizeTo 958 540} {MoveTo 00 00 UpperRight}
Note the subtraction of 2 pixels from the left/right measurements to account for window borders. Also, note the subtraction of 20 pixels from the full height measurement to account for my taskbar. Finally, note that the title bar will be overlapped when stacked vertically.
Here is a sample after using Ctrl+7, Ctrl+1, Ctrl+6:
very nice just what I was looking for. thank you
ReplyDeleteGreat shortcuts... thanks a lot!
ReplyDeleteI was looking for something like windows key + left arrow, but your own shortcuts are 1000* better! This is awesome!
ReplyDeleteI have been using fluxbox since well before this was posted in 2014, it only took me 10 years to find it, thanks for the tip
ReplyDelete