|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#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.
|
|
|
|
|
|
#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. |
|
|
|
|
|
#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. |
|
|
|
|
|
#4 |
|
Member (7 bit)
Join Date: Jul 2000
Location: Australia
Posts: 97
|
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 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|