You are not logged in.

#1 2010-12-28 15:45:59

corbintechboy
Member
Registered: 2010-04-25
Posts: 11

(SOLVED)autostart.sh sleep issue

Hello all,

I have my laptop in a state I am pretty happy with.

When I boot I backgrounded all my daemons so I would get a fast boot (about 12 seconds). When conky starts I have it getting my external ip as well as my wireless ip. To try and solve the 2 being blank I tried adding a sleep state in autostart.sh which does not work and leaves me with no mouse. Then I wrote a shell script to accomplish this and added it to autostart.sh and it worked fine with the pause and all, but again no mouse.

Is there any fix for this?

Last edited by corbintechboy (2010-12-28 17:01:07)

Offline

#2 2010-12-28 16:11:43

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: (SOLVED)autostart.sh sleep issue

Might help if you post your script and contents of autostart.sh


Mr Green

Offline

#3 2010-12-28 16:17:30

corbintechboy
Member
Registered: 2010-04-25
Posts: 11

Re: (SOLVED)autostart.sh sleep issue

autostart.sh

#Restore wallpaper

nitrogen --restore &

#Taskbar

tint2 &

#Thunars file manager

thunar --daemon &

#Call conky script

conky -q &

conky script

#!/bin/bash

sleep 30

conky -q

exit

In the autostart when it happens I add "sleep 30" before conky and end up without mouse and it don't sleep. If I link to the script I still get no mouse but it does sleep.

Last edited by corbintechboy (2010-12-28 16:18:39)

Offline

#4 2010-12-28 16:23:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: (SOLVED)autostart.sh sleep issue

Try renaming conky script to conky_script change it in autostart.sh as well and try again


Mr Green

Offline

#5 2010-12-28 16:45:16

corbintechboy
Member
Registered: 2010-04-25
Posts: 11

Re: (SOLVED)autostart.sh sleep issue

I figured it out.

Even renaming the script gave same issue. So I tried adding this:

(sleep 30 && conky -q) &

That worked without issue.

I thank you for the help.

Offline

#6 2010-12-28 16:48:08

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: (SOLVED)autostart.sh sleep issue

Please mark thread as solved


Mr Green

Offline

Board footer

Powered by FluxBB