Xdo_lang
When finishing my xdotool wrapper class.. I used it for a silly little idea I had:
The Xdo Language.. xdl
xdl wezterm:m=N:m=W # m is move, N,S,E,W is edges of the screen.
xdl brave:m=E@wezterm # E@wezterm is wezterms East side
more examples Link to heading
h|w@window_name # gets the height or width of the window
xdl sto name expression1 expression2 # this stores the
# expressions under 'name' in yaml-file.
xdl rec name # this runs the stored expressions
xdl brave:m=E@wezterm:h=1:w=E
# h=1 is full height.. 1/2 is half height and so on.
# w=E sets width to whats available East until edge.
- Tile two terminals side by side:
xdl alacritty:w=1/2:m=W
xdl urxvt:w=E:m=E@alacritty
- Move a window to the top-right and give it 1/3 width:
xdl chrome:w=1/3:m=N:m=E
- Match another window’s height and snap below it:
xdl terminal:h=h@editor:m=S@editor