Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 3411  / 2 Years ago, sun, may 1, 2022, 3:08:51

Let's say I usually have three windowed apps running at the same time:




  1. Chrome

  2. Emacs

  3. Terminal



I like for them to be arranged the same way. I want this to happen on all of my desktops (or whatever the heck they are officially known as). How can I open these apps so that they appear in the same location?


More From » window

 Answers
4

Once upon a time, you could use a command line parameter like -geometry wxh+x+y. It looks like this is still possible, but some programs (like gnome-terminal) require --geometry instead.



Note that gnome-terminal uses units of characters; other programs generally use units of pixels.



So all you need to do is write a script that starts each program in the background with your desired geometry settings. Something like this:



#!/bin/sh

gnome-terminal --geometry 80x24+0+0 &
gnome-terminal --geometry 80x24+82+0&
google-chrome --geometry ... &
# etc.


(I'm not sure if Chrome supports this - you'll need to check)



Finally, set your script to run automatically on startup.


[#30773] Monday, May 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wenceslockro

Total Points: 494
Total Questions: 127
Total Answers: 97

Location: Chad
Member since Mon, Dec 5, 2022
1 Year ago
;