LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-17-2018, 04:13 AM   #1
mz721
LQ Newbie
 
Registered: Feb 2018
Location: The southern hemisphere.
Distribution: Debian Stable, OpenBSD and Slackware.
Posts: 11
Blog Entries: 1

Rep: Reputation: Disabled
Choosing position of new windows


Is it possible to make an arbitrary application window open wherever you like on the screen? I know some (like most terminals, and gnumeric) have a geometry flag, but this is not true of every application.

Could it be done using xdotool to grab and resize and move a window after it's been opened? Seems clunky.

I'm using MATE on Debian. Happy with an X or MATE solution.
 
Old 02-17-2018, 04:35 PM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Anything and everything is possible.

The last place I would look is @ linuxquestions.org, the first place I would look for this information is with X and/or Mate documentation or help contact, it is open source therefore that information should not be unavailable. Although, I can see how looking for a quick/easy answer is more appealing, kind of hard to actually learn much though.

Quote:
I know some (like most terminals, and gnumeric) have a geometry flag, but this is not true of every application
Not exactly a newbie are you?
 
Old 02-17-2018, 11:14 PM   #3
mz721
LQ Newbie
 
Registered: Feb 2018
Location: The southern hemisphere.
Distribution: Debian Stable, OpenBSD and Slackware.
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
I've looked in MATE and X documentation. Maybe I am too dumb to understand the answer, but I didn't see anything that looked like an answer and I thought I would try a forum. I am not a newbie but I am not a coder. I use a Linux desktop as a productivity environment. It's not my hobby or my job to be a Linux expert. I was just hoping for a pointer to a useful tool or something. I'm quite prepared to learn a few things to help me do what I want but I am having trouble figuring out where to start. Thank you for your response.
 
Old 02-17-2018, 11:33 PM   #4
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
I understand, and all I'm saying is that developers likely don't hang out here and thus your more likely to be sent on a wild goose chase here. If it were simple enough for wannabe geeks to do, it would be well documented all over blogger's web sites and a simply google search would land tons of hits. Which is why I recommend digging into X code and Mate code and consult software developers. And since you already know about "geometry flag", you likely know more than anybody here.
The title of these forums is linuxquestions, not open source software development questions.
 
Old 02-18-2018, 08:55 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
In KDE 4, you can right-click on a window titlebar, select "More Actions," then select "Special Window Settings" or "Special Application Settings," and have access to many settings, including size and position. I suspect you can do the same in Plasma, but my Plasma machine is in another room. Trinity Desktop (which I am playing with in the hopes of podcasting about it) has similar settings. I have never used those settings.

In MATE (which is on that computer over there --->), I can't seem to find any such settings. If they are there, they are buried, like Prospero's staff, many fathoms deep.

I've found that, in window managers such as Fluxbox, "Remember" settings for size, position, and the like tend to more easily accessed.

Last edited by frankbell; 02-18-2018 at 08:57 PM.
 
Old 02-18-2018, 11:13 PM   #6
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Quote:
Originally Posted by frankbell View Post
In MATE (which is on that computer over there --->), I can't seem to find any such settings.
There's lots of features I like in Plasma that are missing in Mate, I have Debian testing with Mate in a VM and don't spend much time with it because I have tons of power and memory therefore prefer spending my time in a big bowl of candy.

But if Mate had all the features of the heavy weight desktop environments, that would classify it as a heavy weight desktop environment also. It's basically Gnome 2 +, if you want the features of Gnome 3, install Gnome 3, etc.
 
Old 02-19-2018, 04:12 PM   #7
mz721
LQ Newbie
 
Registered: Feb 2018
Location: The southern hemisphere.
Distribution: Debian Stable, OpenBSD and Slackware.
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Many thanks for all that

I guess I misjudged the complexity of the question. I thought I had missed something fairly straightforward, but it turns out to be much trickier than I expected. I guess I don't know enough to know what's hard and what's easy.

Thanks for the advice received. Will think about it some more.
 
Old 02-20-2018, 09:16 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Where and how large the application window is when it is opened is mostly a function of the program itself. Sometimes there is a file that records the last know configuration, so the window will open where and what size it was before the program was last closed. So, you could try that. Just open the program, make the window the way you want, close the program, open it again, and see it it kept its last position.
 
Old 02-20-2018, 09:36 PM   #9
mz721
LQ Newbie
 
Registered: Feb 2018
Location: The southern hemisphere.
Distribution: Debian Stable, OpenBSD and Slackware.
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks, I'll try that.

I'm looking at

https://linux.die.net/man/1/devilspie

and

https://linux.die.net/man/1/wmctrl

which I managed to not find until just now, despite searching around.
 
Old 03-02-2018, 08:42 PM   #10
mz721
LQ Newbie
 
Registered: Feb 2018
Location: The southern hemisphere.
Distribution: Debian Stable, OpenBSD and Slackware.
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Solved

https://linux.die.net/man/1/wmctrl

wmcrtrl is a solution. It can query window positions and then move and resize them, so I can make a little script that starts a program, then picks it up and puts it where I want it.
 
1 members found this post helpful.
Old 01-17-2020, 08:09 PM   #11
thimasmimi
LQ Newbie
 
Registered: Jan 2020
Posts: 1

Rep: Reputation: Disabled
Thank you, this is very helpful for me!
 
Old 01-17-2020, 10:31 PM   #12
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,725

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by ploist125 View Post
Thank u for the advice I guess I don't know enough to know what's hard and what's easy...
Spam. Reported
 
Old 01-18-2020, 12:58 AM   #13
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196
Here's a tool to get rectangular regions, btw.

slop


It might be in your distros repository.
Note: It also delivers "geometry" by default.
 
Old 02-09-2020, 01:42 PM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Spammer reported (definitely. I tried the link in Tor Browser).

edit: Geist is not the spammer. The spammer's post has been deleted apparently.

Last edited by ondoho; 02-16-2020 at 11:38 AM.
 
Old 02-15-2020, 08:32 AM   #15
djk44883
Member
 
Registered: Aug 2008
Location: Ohio
Distribution: debian
Posts: 141

Rep: Reputation: 29
I too chose mate-desktop for it's simplistic and lightweight aspect. (I also realize it has somewhat dated look and feel).

I believe it's window manager macro is mostly responsible for, well window placement/management. There's a minimal bit at

~/.config/marco/sessions

Mate based applications generally have some gtk/geometry options. Others save their own info or have it "hard coded" for an initial window.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show position of windows on remote monitors that can't be seen andrewgpc Linux - Desktop 1 04-06-2017 01:19 AM
How to make Xdialog windows to appear at a given position on the screen kkpal Programming 1 05-23-2009 12:49 AM
Saving windows position/content galapogos Mandriva 10 02-26-2009 09:41 PM
ARRgh Windows wont remember position... Mystical Itachi SUSE / openSUSE 4 02-26-2007 03:18 AM
gnome - windows position zulik Linux - Newbie 2 03-20-2004 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration