wow, embarassing. i need to slow down.

both worked, thank you very much!

when i run the script that changes the background 
(it's just feh --bg-tile /bla/bal.jpg)
i get the wristwatch mouse pointer for 15 sec or so.
seems weird.

are these commands executed in another shell instance?
if so, is there a way to see that shell's activity and error messages (if any)?

thanks for the help


________________________________
 From: Rena <[email protected]>
To: Scott Kinney <[email protected]> 
Sent: Friday, June 7, 2013 9:53 AM
Subject: Re: run a command from menu item
 


On Fri, Jun 7, 2013 at 12:51 PM, Scott Kinney <[email protected]> wrote:

i want to assign terminal commands to menu items but i'm not getting it.
>
>
>i assign commands to variable like...
>local commands = {}
>commands.mail = "chromium http://gmail.com";
>
>commands.suspend = "systemclt suspend"
>commands.background = "~/bin/add.sh"
>
>
>then put it in the menu like...
>
>
>    { "background", commands.background },
>
>
>
>mail works but suspend and the bash script do not
>
>
>or does 
>
>
>commands. background = "feh --bg-tile ~/background.png"
>
>
>what am i missing?
>
>
>also, if they commands dont run how do i see the error they produce?
>
>

I suspect suspend doesn't work because you've misspelled it (clt => ctl), and 
background doesn't work because tilde expansion doesn't work outside of an 
actual shell; you need to write out the full path to the script (and make sure 
it's marked executable).


-- 
Sent from my Game Boy. 

Reply via email to