I would like to resize the window to the left half of the screen.
A solution to achieve that would be to use wmctrl and keybind the right command to a keyboard shortcut.
But the manpage only shows how to resize to a certain height and width, for example:
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,0,0,800,1040
that moves the window to the upper left corner and resizes to 800x1040 px.
But strangely only the first time. If you execute the same command again, in moves to the very top right of the screen, ignoring the top-toolbar.
Also it would be nice, to have that comand with height 100% and width 50% instead the absolute values.