Also looking at my old notes if the last window was maximized you have to remove the maximized state first or it won't resize.
I used to use wmctrl to do this.
Open atom and get a window list.
You should have a line similar to
Code:
0x06200001 0 atom.Atom Bionic Welcome Guide — ~ — Atom
Use the third column to define your window.
eg
Code:
#!/bin/bash
atom /home/furycd001/Sites/Lacey\ Laney/Markdown.md
sleep 4
## removes max states then resizes and positions
wmctrl -xa atom.Atom -b remove,maximized_vert,maximized_horz && wmctrl -xa atom.Atom -e 0,450,260,800,400
See HERE for info on the wmctrl -e 0,450,260,800,400 values
You could also bind a shortcut key to a script to resize and reposition the active window.
Code:
#!/bin/bash
wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,450,260,800,400
Bookmarks