Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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


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:
awful.util.spawn_with_shell("xterm -e cmatrix")
os.execute("sleep 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.


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 - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 PM.

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