How to autostart a client in a specific tag in Awesome?

I know how to autostart something. From http://awesome.naquadah.org/wiki/Autost … ostart_way I'm using the advanced method of the simple way (that takes 4 parameters). It's working fine, but everything starts at the first tag. I tried to use the awful.client.movetotag() function, but with no luck.
How can I get this to work?
Thanks!
Last edited by VeXe (2013-02-16 22:17:24)

@frank604: Thanks again, it worked! BUT: when I passed a parameter to my terminal to run htop, it didn't work
{ rule = { instance = "gnome-terminal -e htop" },
properties = { }, callback = function (c)
if not skipMovingT then
awful.client.movetotag(tags[1][9], c)
skipMovingT = true
end
end },
Any ideas?
@doug piston: Thanks, but I have read that page. The rules are permenant that way, and I just want them at startup, not all the time (repeating my self here)

Similar Messages

  • How to create EJB client without WL specific classes ?

    Hi,
    I have stateful session EJB running in WebLogic 5.1.
    Is it necessary to client that will access that EJB to have WebLogic classes in classpath ?
    Is it possible to write client that doesn't have any classes specific to Weblogic ?
    Uix

    Sure, if it's acceptable for your application to classload from WebLogic.
    For example: helper class to start WebLogic client (server is running on
    localhost:7001 and client classes are in c:/weblogic/myserver/clientclasses/):
    c:\WebLogicClient>set CLASSPATH=.
    c:\WebLogicClient>java WebLogicClient examples.ejb.basic.statelessSession.Client
    import java.net.*;
    import java.lang.reflect.*;
    public class WebLogicClient {
    /* client classpath. Should NOT be in the java classpath! */
    public static final String CLIENT_CLASSES =
         "file://C:/weblogic/myserver/clientclasses/";
    /* WebLogic server to classload from */
    public static final String WL_CLASSES =
         "http://localhost:7001/classes/";
    public static void main(String[] args) {
    try {
    ClassLoader cl = new URLClassLoader(new URL[] {
    new URL(CLIENT_CLASSES),
    new URL(WL_CLASSES)
    Thread.currentThread().setContextClassLoader(cl);
    Class clientClass = cl.loadClass(args[0]);
    Method methodMain = clientClass.getMethod("main",
              new Class[] {Class.forName("[Ljava.lang.String;")});
    String[] clientArgs = new String[args.length - 1];
    System.arraycopy(args, 1, clientArgs, 0, clientArgs.length);
    methodMain.invoke(null, new Object[] {clientArgs});
    } catch(Throwable oops) {
    oops.printStackTrace();
    uix <[email protected]> wrote:
    Hi,
    I have stateful session EJB running in WebLogic 5.1.
    Is it necessary to client that will access that EJB to have WebLogic classes in classpath ?
    Is it possible to write client that doesn't have any classes specific to Weblogic ?
    Uix--
    Dimitri

  • [JS] XML : How to placeXML the content of a specific tag

    Hi, I'm new to scripting and I can't figure out how to do this :
    I need to find the first element with the tag "body" and make a placeXML on it.
    I make a function do find it, but I really don't know what to do after that.
    Here is my code :
    var tab= new Array();
    var body = findFirstElement(myDocument,"body", tab);
    function findFirstElement(elm, tag, tab)
        for (var i = 0; i < elm.xmlElements.length; i++)
            XMLelementName=elm.xmlElements[i].markupTag.name.toString();
            if(XMLelementName==tag)
                elm.xmlElements[i].select();
              tab.push(elm.xmlElements[i]);
            else {
            findFirstElement(elm.xmlElements[i], tag, tab);
       return tab;
    At this point, body is [object XMLElement]
    So now, I would like to modify the following code to place body. I think I don't understand very well the structure of the document, but once again, I'm totally new at it.
    myDocument.xmlElements.item(0).xmlElements.item(0).placeXML(myDocument.pages.item(0).textF rames.item(0));
    If someone can help me...

    Hi,
    I finally found out how to do it : it's easy with XML Rules.
    Here is my code if someone is interested :
    var myRuleSet = new Array (new ShowBody);
    with(myDocument){
    var elements = xmlElements;
    __processRuleSet(elements.item(0), myRuleSet);
    function ShowBody(){
    this.name = "ShowBody";
    //XPath will match on every XML element in the XML structure.
    this.xpath = "//body";
    // Define the apply function.
    this.apply = function(myElement, myRuleProcessor){
    with(myElement){
    myElement.placeXML(myDocument.pages.item(0).textFrames.item(0));
    return true;
    // Succeeded
    } //End of apply function

  • How to query in SCCM 2012 to know how many active and inactive clients in a specific time and date

    Dear Everyone,
    Good morning. I need to perform a query to know how many clients PCs are active or inactive during the a specific time and date (let say, today 9pm). In my query, I want to know:
    1. How many client PCs is active at that time and date?
    2. How many client PCs is not inactive at that time and date?
    Any assistance is greatly appreciated. Thanks.

    Thank you Gerry for pointing out that it doesn't show real time date. I do agree with that. However, I am look at the (at least in this) report which supposed to [description] shows a list of computers not reporting any power activity for a specified date
    and time. Since I can only key in date in my selection (time option not given), I am expecting the report to show me whether there any client PCs that doesn't any power activity for the specified date. A list was generated, and a number of them shows HardwareInventoryScan,
    LastHeartBeatScan and LastPolicyRequest on the same date itself. I would like to know why these appears, so that I can learn from it.
    Due to the selection option given, I can't expect my original goal, but at least (hopefully) I can get to know (past event) how many and which client PCs is not powered on a particular date based on the date and collection selected.
    At least by getting explainations, I hope to learn something from this (how to read this report). Thanks in advance.

  • How to create cross-client variant?

    Hi Experters:
    Can someone tell me how create cross-client variant in ECC6.0?
    in 4.6, we can define the client or define cross-client transaction variant,
    how to create cross-client variant in ECC6.0?
    Regareds,

    Hi,
    In se93 there is a check box cross-client .
    The Cross-client switch identifies which transaction variants are cross-client and which are client-specific. If the switch is set, the transaction variant is cross-client. If the switch is not set, the transaction variant is client-specific.
    A client-specific transaction variant can only exist in the client where it was created. The field contents of the transaction variant only have to be available in the particular client. A cross-client transaction variant is available in the system regardless of which client is currently active. The field contents of the transaction variant have to be available in all clients.
    http://****************/Tutorials/ABAP/TransactionVariant/Create.htm

  • How to configure MI client in NWDS

    How to configure MI client in NWDS
    MI home folder
    MI servername: xxxx
    MI webapps TCP  port:
    AWT Runtime
    MI home folder:

    You need not install Tomcat, You have to Install MI client specific to your release.
    <<DO I HAVE TO INSTALL THE MDK PLUGINS OR IT IS INSTALL BY DEFAULT ?>>
    If you have installed NWDS, then by default it consists of MDK also. You have to just configure the MDK Plugin's to work.
    <<where can i download the file that you mentioned in the diagram
    c:\share\MI\MIM2.5SP09JSP>>
    The above path mentioned is just an example, and it need not be same for all.
    Its usually the MI home folder path (You will get this folder once you install the MI client).
    To find the Setup.exe of MI client you can refer to this Link
    Re: need path to download mi client
    Best Regards,
    Lakshmi

  • How to load a client file in a clob using sqlcl

    How to load a client file in a clob using sqlcl

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • How can i start Terminal in a specific folder

    how can i start Terminal in a specific folder

    From the menu bar, select
     ▹ System Preferences... ▹ Keyboard ▹ Keyboard Shortcuts ▹ Services ▹ New Terminal at Folder: On
    Right-click or control-click a folder in the Finder and select that item from the contextual menu.

  • How do I get photos in a specific iPhoto Album into my Photo Stream?

    How do I get photos in a specific iPhoto album into My Photo Stream so that I can use my Apple TV to show them in a slideshow on my TV?

    That is not possible - PhotoStream has no organizational capability - no albums or other organization
    With the correct software versions You can import from PS into an iPhoto event on your Mac either automatically (by setting the iPhoto preference to do that) or manually and then you can add the photos ot an iPhoto album and sync to Apple TV
    what version of iPhoto do you have? Is OS X 10.7.5 correct for your OS?
    LN

  • How to comapare two clients in sap scripts

    hi,
               how to comapare two clients in sap scripts

    Hi Anil,
    Go to Tcode 'SE71' then choose menu Utilities->Compare Clients, then mention the Form name which u wish to compare, and give target client name and source client name, then execute.
    Regards
    Haritha

  • How to get column names for a specific view in the scheme?

    how to get column names for a specific view in the scheme?
    TIA
    Don't have DD on the wall anymore....

    or this?
    SQL> select text from ALL_VIEWS
      2  where VIEW_NAME
      3  ='EMP_VIEW';
    TEXT
    SELECT empno,ename FROM EMP
    WHERE empno=10

  • How to cast an Object into a specific type (Integer/String) at runtime

    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    Example:
    public class TestCode {
         public static Object func1()
    Integer i = new Integer(10); //or String str = new String("abc");
    Object temp= i; //or Object temp= str;
    return temp;
         public static void func2(Integer param1)
              //Performing some stuff
         public static void main(String args[])
         Object obj = func1();
    //cast obj into Integer at run time
         func2(Integer);
    Description:
    In example, func1() will be called first which will return an object. Returned object refer to an Integer object or an String object. Now at run time, I want to cast this object to the class its referring to (Integer or String).
    For e.g., if returned object is referring to Integer then cast that object into Integer and call func2() by passing Integer object.

    GDS123 wrote:
    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    There is only one way to have an object of an unknown type at compile time. That is to create the object's class at runtime using a classloader. Typically a URLClassloader.
    Look into
    Class.ForName(String)

  • How to Run a Request Set on specific days and at specific hours

    Hi community,
    The question is simple, how to rin a Request Set on Specific Days and at Specific hours?
    Let me explain the scenario.
    E-Business Suite, Release 11.5.9.
    We have a request set under Sysadmin user. This Request set is running 24x7, during all year, and we want to restrict the execution from Monday to Friday since 08:00 a.m. to 20:00 p.m. in order to increase the productivity of our system and more over, to avoid the size increase of a table (OE_EXPOSURE_INTERFACE)
    The Request Set includes 5 Requests:
    10. Workflow Background Process.
    20. GUZMAN: Cálculo metodo pago en pedidos.
    30. GUZMAN: Exposición de crédito externo.
    40. Credit Exposure Import.
    50 Initialize Credit Summaries Table.
    As you can see three of them are standar Oracle Order Management Processes and two of them are custom Oracle Order Management Processes; and the requests must be executed in that order.
    We have just thinking about to create a Custom Manager with a workshift from Monday to Friday since 08:00 a.m. to 20:00 p.m., and include the requests as specialization rules or assigning those request to a Request Type and then include that Request Type as specializated rule, but this does not assure us that the request will be executed in that order.
    Any suggestion?
    Thanks a lot for your answer in advice.
    Luis.

    Hi Anchorage,
    It could be a solution, but not the exact solution that we want. Let me say why.
    With the Request set we have the security that each concurrent request is executed when the prior one finishes; is that to say 20, does not begin till 10 finishes, and 30 does not begin till 20 finishes and so on. The most critical concurrent requests are 40 and 50, cause those are the ones that import an external credit exposure in the OE_EXPORURE_INTERFACE table (40) and are the ones that delete those external credit exposures imported (50). The problem is (and we do not know why) that these actions makes grow the size of the table and each time the 40 and 50 processes takes more minutes to finish. That's why we need to truncate the table in order to avoid the excesive grow of itself.
    Making each process independent, with a begining time and hoping and expecting that the following one does not begin till the prior one ends is not an admisible or realizable solution due to the problem with the 40 and 50 processes.
    So at the end, we need a request set in order to know that each one began when the prior one ends.
    And Due to in order to truncate the table, as I said before, the processes that have a relationship whit it, must be stopped (just the 40 and 50 processes) prior to the truncation.
    So as you see, it is difficult, very difficult.
    Regards.

  • XML Parsing, how to get a specific tag?

    Hello,
    I'm new to Flex, am trying to load some data from xml file using httpservice. all is right, but i dont know how to access to a specific tag.
    the xml mapping is showed in the  picture :
    i try to access Device1,  dataService.Lastresult.trames.tramdevices[???] somthing like that. sombody knows how to do? thanks a lot. I used xml with java but in flex is a little bit different. thank you for all.

    Hi neoto,
    Have you tried dataService.Lastresult.trames.tramdevices.Device1 ..??
    Thanks,
    Bhasker

  • HT4969 How do I pull up only one specific calendar at a time (i.e. 'home calendar')?

    How do I pull up only one specific calendar at a time on my iPhone (i.e. 'home calendar')?
    Thanks!

    In the calendar app, press the button in the upper left, "Calendars" and turn off/on the ones you want/don't want.

Maybe you are looking for

  • ITunes on XP 64 bit ... Can I Run a 32-bit Version?

    I understand that there is no supported version of iTunes that will run on XP 64-bit, but I followed a hack that I found and got it running on my XP 64-bit machine at work. The problem is that I am now getting an error message that says something abo

  • I am getting and error with a panel in CS6 with configurator

    I get the zxp file to load into CS6 but I keep getting this error when I try to use anything IOError, "File or folder does not exist" I have built tons of panels in the other versions of configurator, but I am inporting one I did in version two and c

  • How can I get read out loud to work on MAC for adobe reader?

    Having trouble getting the read out loud function to work on MAC.  It keeps says "BLANK" or "Warning Page Empty".  How can i get this resolved my the read out loud function to work properly?

  • Well, I'm new to this, so help me out? maybe?

    I've recently discovered that life can be a bit more difficult with poor credit and have decided to try to make it better. I've taken some steps towards rebuilding, but I'm not sure if I made it worse or not since I havnt seen much improvement lately

  • Problems printing to shared Epson AL-1100 Laser

    I have an Epson Laser shared from an OSX server running 10.4.10. When sharing a printer in this way the print dialogue at the Tiger client does not include any of the 'Printer Settings' options. To give users the advanced settings they need for featu