Miscellaneous > Programming & Networking
Simple bash script & how to change window manager in GNOME 2 or KDE 3 ???
Calum:
i can't figure out how to change the window manager in GNOME 2 or KDE 3. can anybody tell me some ways to do this? i'd like to change the default, but i can't even change it for the current session right now. How can this be done?
also, take a look at this:
--- Code: ---
--- End code ---
now i have never done any bash scripts, or read about them, i just thought this should work.
What it does is, opens kppp, then plonks mozilla on top of it immediately afterwards. what i want is for mozilla to open up, then kppp to open up in the foreground, in front of it. Either that or (and this would be better) i'd like to have kppp run, then once it has connected, it should minimise and mozilla should then start.
Any hints?
thanks as usual...
ravuya:
Well, if kppp gives off some kind of status condition when it finishes connection, you could base the script off that.
In pseudocode, it'd go something like this:
kppp
if(kppp_connected_status)
mozilla &
end
or whatever.
flap:
well the script to open kppp and then open mozilla immediately would simply be
#!/bin/bash
kppp &
mozilla &
I've never used kppp before, but does it exit upon successful connection? if so you can take out the ampersand from after kppp and then mozilla won't start until kppp has closed.
voidmain:
Or if you set up diald all you have to do is open mozilla and it will automatically make a PPP connection. I used to use this, way back in the stone ages when I had dialup.
Calum:
diald, eh? righto, got it.
strangely, make exited with 'Error: 1' whatever that is, when i tried to install from source. Anybody know where a list of make's errors can be found? i couldn't see it on the make man page and i have got this error more than once.
I will check out diald today, thanks void main,
as for kppp, as far as i can see it does not exit upon connection, but sits around and waits until you physically exit it, which will close the connection (or you can set it to close itself when the connection is closed).
As for the " &" in the script, i kept getting errors when i put a space in there, which is why i put brackets round the one with a space in it, which seemed to work. is this right or am i missing something?
as for gnome, i think i found a page telling me how to do the window manager thing, so that will be tried by me today too.
thanks guys!
Navigation
[0] Message Index
[#] Next page
Go to full version