LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2007, 10:35 AM   #1
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Rep: Reputation: 30
How do I position a program on the screen?


Hello, i want to open a program and do two things with it...

1. Keep it on top of all other programs even when you open another program

2. Position where is appears, for example, in the center of the screen.

Anyone know how to do this?

-Thanks
 
Old 01-11-2007, 10:39 AM   #2
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
It depends on the window manager you are using. Are you using Gnome, KDE, fluxbox, XFCE or something else?
 
Old 01-11-2007, 11:15 AM   #3
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
Sorry, I'm using Fluxbox
 
Old 01-11-2007, 12:14 PM   #4
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Recent Fluxboxes have the cool remember feature. Essentially, open the program once, put it where you want it to open, and click the box in the up left of every window. Then select Remember -> Position. I'm not sure, but I think that there's a similar "keep on top option".
 
Old 01-11-2007, 12:16 PM   #5
asommer
Member
 
Registered: Mar 2003
Location: North Carolina
Distribution: Gentoo
Posts: 168

Rep: Reputation: 30
Yep...it should be on the top left I think. Something like "sticky" I believe.
 
Old 01-11-2007, 12:26 PM   #6
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
Hello, maybe i was not clear enough. I want to do this when i open a program from the command line if possible.
 
Old 01-11-2007, 03:16 PM   #7
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
Ah, you mean like, are there command line args to pass to specify geometry, etc? I don't know, but I'll research and get back to you.
 
Old 01-11-2007, 03:28 PM   #8
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
that is exactly what i mean. I want to do something like this: "xmms -geom 300x200" from the command line and have it open xmms 300 pixels from the left and 200 from the top.
 
Old 01-11-2007, 03:51 PM   #9
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
There is a fluxbox command "MoveTo x y" where x and y are in pixels, but I'm not sure how you would implement that automatically. It operates on the currently focused window, so maybe you would write a wrapper script that would run that immediately after starting the program so that it will be focused.
 
Old 01-11-2007, 11:58 PM   #10
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
For some reason in dsl linux, that command didn't work. Any other ideas?
 
Old 01-12-2007, 07:42 AM   #11
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
how are you entering it? It is a fluxbox command, not a CLI program.
 
Old 01-15-2007, 11:35 AM   #12
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
I entered it from bash, how else can i enter it?
 
Old 01-15-2007, 11:57 AM   #13
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
In the fluxbox menu portion of your right click menu there's a Fluxbox Command entry that gives you something that looks like fbrun. I think there's a cli way, but I don't know it.
 
  


Reply



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
Desktop Position on screen. LastChip SUSE / openSUSE 1 01-10-2005 06:05 PM
Screen position. TuxToaster Debian 6 07-21-2004 02:06 PM
Screen position differences Ice Dragon Linux - Newbie 6 03-27-2004 11:17 PM
Change screen position through Linux theteenager Linux - Hardware 5 07-03-2003 10:52 AM
saving screen position? bn3wz Linux - General 1 11-12-2001 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:51 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