Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 [3] 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Using .xinitrc to launch programs at startup, Handling windows through cli maybe?< Next Oldest | Next Newest >
kerry Offline





Group: Members
Posts: 706
Joined: April 2006
Posted: June 13 2006,15:05 QUOTE

mikshaw, I was just going off what was posted, i just copied and pasted what was there. I left the (&) out on purpose so the slide show could load with out the window in the front. Do you know what the command would be to minimize gqview main window so it's not in front of the slide show on start up?

arkroan, i'll keep looking and trying in qemu. I'm sure the solution is right there but i'm missing it.
Back to top
Profile PM 
kerry Offline





Group: Members
Posts: 706
Joined: April 2006
Posted: June 13 2006,17:38 QUOTE

I'm thinking  just go with this " gqview -s -f && ". You can always just exit gqview to modify.
example: gqview -s -f /home/dsl/pics &&
Back to top
Profile PM 
arkroan Offline





Group: Members
Posts: 10
Joined: June 2006
Posted: June 13 2006,19:03 QUOTE

mikshaw: The case command was already there when i installed dsl, i cannot understand the use of it though. I have also noticed the
case statements that are not needed, but because i do not know the spelling i could not understand which characters are required and which
are not in a statement. (end of statement is ";;" or " *)" ) ???
What is the use of jmw?? (ends a statement?).
Is there any possibility to execute the program outside the case statement (after the case is executed)?

kerry: I was thinking of that too.. Having an instruction through the command line to minimize the window would be handy..

I want to thank you for your replies kerry & mikshaw. it is so good to see people willing to help.  
:)
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 13 2006,19:34 QUOTE

kerry: Please be careful about typos =o)
The line gqview -s -f /home/dsl/pics && will likely cause trouble (or at least it serves no purpose) because "&&" means "If the prior command is successful, then run the following command".  There is nothing following "&&", so no command will run.  I can't say if it will cause an error or if it will just do nothing, waiting for input.

arkroan: Case is a fairly commonly used command that performs different actions depending on the content of whatever immediately follows the word "case".  It's the equivalent of "if something; do this; elif something else; do that; else do the other thing; fi", but it's just easier and cleaner than a pile of elifs.

In the default .xinitrc case, the $DESKTOP variable is checked to see what is listed in $HOME/.desktop, and is compared to each section of the case block, starting from the top and continuing until it finds a match.  Each section of a case block starts with an expression followed by ")", then the commands to run if the expression matches $DESKTOP, and ends with ";;".
Case often contains a "*" as the last expression, which is a wildcard that matches anything, including a nil value.  This is useful if you need to run a command if there is no match.
The "jwm" string is one of those expressions.  If "jwm" is listed after "wm: " in /home/dsl/.desktop, those commands following it will be run and jwm will be started as the window manager.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
kerry Offline





Group: Members
Posts: 706
Joined: April 2006
Posted: June 13 2006,21:51 QUOTE

The line gqview -s -f /home/dsl/pics &&

It's not a typo, i tested on qemu first. It(&&) serves the same purpose as not having nothing there but is not suppose to hault the start up. Can also use \ instead, but that didn't seem to work as well. I found the use of (&&) through lots of reading.

Milkshaw, were almost there, but i need a command to minimize the window that can be used in /.xinitrc or with /.torsmorc's exec feature. I've been looking at torsmo to run the command instead as it can run as if it were in terminal(shell command). I can't seem to find the command to minimize windows(gqview main window). Any ideas?
Back to top
Profile PM 
23 replies since June 12 2006,15:06 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 [3] 4 5 >/
reply to topic new topic new poll
Quick Reply: Using .xinitrc to launch programs at startup

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code