Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1386  / 1 Year ago, wed, february 8, 2023, 4:04:14

Is it possible to open a browser window at a given size/location on screen via a shell script ?



I've seen examples of launching Firefox, setting the window size via command line. I've also seen it written up as non working as a Firefox bug. Are there any alternative browsers that will do this that run on 10.04?


More From » 10.04

 Answers
2

Yes, this is possible with devilspie (As I am using this myself now). Except, this program runs as daemon and do not require shell script.



It handles application windows' border decoration, behaviour (sticky, always on top), window geometry, position and states (maximize, fullscreen) based on matched traits. It can control not only Firefox, but almost any graphical applications at launch.



To use this, you will have to create the configuration files for each application you want to control. You can find practical examples in this fullest documentation.



If you need GUI to write the configuration files, there's gDevilspie. Newer releases of Ubuntu includes this in Software Center, but you can download directly from its project page.



On second thought, perhaps you are actually looking into "tiling window manager"--which is another different approach.


[#41678] Thursday, February 9, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionavocad

Total Points: 189
Total Questions: 101
Total Answers: 118

Location: Liechtenstein
Member since Wed, Dec 8, 2021
2 Years ago
tionavocad questions
Tue, May 23, 23, 00:07, 1 Year ago
Tue, Jan 17, 23, 20:38, 1 Year ago
Sun, Oct 10, 21, 04:50, 3 Years ago
Tue, Jun 7, 22, 08:50, 2 Years ago
;