Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 02-02-2002, 09:42 AM   #1
Member (8 bit)
 
Join Date: May 2000
Posts: 219
shell programming Q... based on windows

Does anyone know what the shell code using bash is to place windows using coordinates. I have my xmms load up straight away but I want to place it at the bottom of the screen so I need to know what the shell script is to do that.
copyright_1978 is offline   Reply With Quote
Old 02-02-2002, 10:08 AM   #2
Member (7 bit)
 
Join Date: Jul 2000
Location: Australia
Posts: 97
I'm assuming you are using a window manager. I don't think there is a text version of xmms.

You don't need a shell script to do this. You need to tell your window manager to place xmms in the location you wish it to be.

This depends on the window manager you are using, in gnome and kde, it just a matter of placing the xmms window in the desired location and saving the session when logging out.

Hope this helps.
earlboy is offline   Reply With Quote
Old 02-02-2002, 11:26 AM   #3
Member (8 bit)
 
Join Date: May 2000
Posts: 219
I'll explain what I'm trying to do thorougly... You see, when I log into my account (I'm running Linux Mandrake 7.2, with Gnome and Enlightenment as the WM) I usually go through the same old processes, load up GMC in my windows partition, load up the directory which contains the ML and the XMMS player, so I've created several shell scripts to do this. Now I understand that I can save each session as I want them placed on my Desktop, but I don't always want the xmms player nor the other applications to load, however when I am working I switch all the apps like xmms, gmc on, but they appear anywhere on the screen so I spend a little time tidying up, now it would be great if I could just start the shell script then all the windows would be placed where I specified them. Does anyone know how to do this in a shell script or using any other method? Knowing how to do it in a shell script would be an advantage because I can use the same code in several WM.

one other question how do I kill all PID's? is it kill ..something... I knew it but i used to just right click and destroy the PID.
copyright_1978 is offline   Reply With Quote
Old 02-06-2002, 02:54 AM   #4
Member (7 bit)
 
Join Date: Jul 2000
Location: Australia
Posts: 97
Red face

I not sure with other WM's but in sawfish there is an option for matched windows in the window manager configuration tool where window placement can be configured. I think other WM has similar capabilities.

Regarding the kill there is a command called killall, but I don't think it works on pid, it works on the process name.

Hope this helps.

Earlboy
earlboy is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:06 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2