LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2012, 07:44 AM   #1
VirtualDuck
LQ Newbie
 
Registered: Jun 2012
Distribution: ArchLinux 3.3.7
Posts: 1

Rep: Reputation: Disabled
[awesome] Running xterm on specific tags on startup only


Hi

I have little problem: I want to run on startup (and only on startup) few xterms (ie with 'cd /tmp', 'ls' etc commands) and each of them in different tag. Because after startup I want to run xterm in current tag, resolving this problem with awful.rules.rules table isn't a good way (or easy).
I try sth like this in the end of my rc.lua:
Code:
awful.tag.viewonly(tags[1][1])
awful.util.spawn_with_shell("xterm -e cmatrix")
os.execute("sleep 2")
awful.tag.viewonly(tags[1][2])
awful.util.spawn_with_shell("xterm -e 'cd /tmp && /bin/bash'")
But both xterms run in second tag. I put sleep because I thought that tags are changing so fast that "xterm -e cmatrix" is finish executing after change to second tag. But after restart awesome its only hang for 2 sec and run both xterms in second tag.
awful.util.spawn_with_shell() function has second argument to determine on which screen run command, but not on which tag.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm to start app with a specific size varunrai Linux - Newbie 2 04-20-2009 03:52 AM
replace distro-specific forums with distro thread tags kittehz LQ Suggestions & Feedback 1 02-01-2009 11:04 PM
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 8 02-26-2008 03:18 PM
script to grab html content from between specific tags sonicthehedgehog Programming 6 01-30-2007 01:14 PM
Running an application at startup for a specific user wittyguysuku Linux - General 4 09-21-2006 03:44 AM


All times are GMT -5. The time now is 11:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration