[SOLVED] Awesome WM autostart questions/how to find program "class"

Hi there,
Right so I'm using Awesome WM and want to auto start programs into specific tags.
This is the code I have, and everything is working as expected:
--Autostart Programs
awful.util.spawn_with_shell("chromium")
awful.util.spawn_with_shell("skype")
awful.util.spawn_with_shell("spotify")
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "Chromium" },
properties = { tag = tags[1][6] } },
{ rule = { class = "Skype" },
properties = { tag = [1][3]} },
{ rule = { class = "Spotify" },
properties = { tag = [1][4] } },
So what I'm wondering is how do I find out what the class of programs for this section: "{ rule = { class = "  " },"?
I installed Arch on my chromebook and I've been using a lot of the programs such as Evernote and Trello. I have the chrome app drawer (http://www.omgchrome.com/enable-chrome- … her-linux/).
I created a shortcut and can auto launch programs such as evernote using the chrome app drawer using the command we can see from the desktop entry:
awful.util.spawn_with_shell("/usr/bin/chromium --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol")
However, the issue is that it always opens on whatever tab I'm using. I cannot find the class to add to the rules.
None of these work:
{ rule = { class = "chrome-lbfehkoinhhcknnbdgnnmjhiladcgbol-Default.desktop" },
properties = { tag = tags[1][6] } },
{ rule = { class = "Evernote Web" },
properties = { tag = tags[1][6] } },
{ rule = { class = "/usr/bin/chromium --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol" },
properties = { tag = tags[1][6] } },
Any suggestions on what I can do to find the "class"?
Last edited by Gwynplaine (2014-11-14 00:24:01)

run 'xprop' in a terminal and your cursor will change to a cross.  Click anywhere on the app you want to identify and the class will be sent to the screen (along with a ton of other stuff)
It's in the xorg-xprop pkg
Last edited by oliver (2014-11-14 00:16:08)

Similar Messages

  • HT204266 I forget the answer to the security question, how to find the answer?

    Dear all, I forget the answer to the security question, how to find the answer? Thanks

    1. See my User Tip for some help: Some Solutions for Resetting
        Forgotten Security Questions: Apple Support Communities.
    2. Here are two different but direct methods:
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contacting Apple for
            support and service.
    3. For other queries about Apple ID see Frequently asked questions about Apple ID.
    4. Rescue email address and how to reset Apple ID security questions
    5. For online assistance use Apple - Support - Express Lane

  • Anyone know how to find available classes in a package?

    Anyone know how to find available classes in a package?
    Given a String like "java.io" I would like to write a method to extract the available classes in this package. I can't seem to find a method for this anywhere in the docs. The package class does not seem to have a method like this.

    Here is some code I tried.
    I'm not very familiar with manipulating JARs The code below is what I tried, but how do I access the packages like "java.io" in the JarFile? and then get the available classes?
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    class Tester
         public static void main(String args[])
              try {
                   JarFile jf = new JarFile("c:/jdk1.3/lib/dt.jar");/* usually rt.jar (and 1.4)*/
                   Enumeration e = jf.entries();
                        while (e.hasMoreElements())
                             Object current = e.nextElement();
                             System.out.println(current.toString() + "class:"+current.getClass());
                             try {
                                  Thread.sleep(300);
                             } catch (InterruptedException ie) {}
              } catch (IOException ioe) {System.out.println(ioe.toString());}
                   /*also tried      ClassLoader cl = ClassLoader.getSystemClassLoader();
              try {
                   Enumeration e = cl.getResources("c:/jdk1.3/lib/dt.jar");
                   System.out.println(e.nextElement());
                   while (e.hasMoreElements())
                   System.out.println(e.nextElement());
              } catch (IOException ioe) {System.out.println(ioe.toString());}

  • How 2 find program for smartform

    how 2 find program for smartform

    Hi,
    go to TNAPR table and find the driver program for the layout.
    give the layout name, if you know the output type also give it.
    OR
    go to se71 and go to the layout , check the text elements syntax then it will show the possible driver programs in the window to choose.
    that way you can find..
    Or else...
    Go to the Tcode -> NACE
    OR
    Go to the T-code 'SMARTFORMs'
    Give your form name
    go to the general attributes.
    Check the Package name.
    then go to T-Code-> SE80
    there check the program name for a package wise
    Regards,
    KK
    Message was edited by:
            Kishore Kumar Karnati

  • How to find Program Name by Recording name

    Hi,
    How o find program name ? for example i have recording(SHDB) name is:ZVA01REC.
    i want to find the respective porgram for that recoring?
    Thanks and Regards,
    Anu.

    Hi Anitha,
    "No it's showing standard program name like:SAPMM06E
    but actual program name is:ZBDCME22."
    SAPMM06E is the program the recording runs
    ZBDCME22 must be an additional program that someone must have created for running the recording.
    There is no way for u to find a program for a given recording (this is only a one way trafic; recording -> program create; not visa versa)
    your best bet would be that search in se38 for programs starting with ZBDC* and then check the short text. may be the person who made it was kind enough to update the short text with teh recording name.
    Hope this was of some help.
    Regards,
    Sagar.
    Edited by: Sagar Mehta on Nov 12, 2008 10:00 AM

  • Newbie Question: How to find Forms/Reports Server Version

    Hello,
    Is there a way to easily find out what is the patchset installed for the Forms and Reports Server. I know that presently using AS 9i rel1 and Forms 6i, but how do you find out more information on the installed patches on Windows? thanks

    Please see these threads.
    how to find the developer version
    Re: how to find the developer version
    Report Builder version
    Re: Report Builder version
    Form patch set level
    Re: Form patch set level.
    Always search the forum before posting similar questions.
    Thanks,
    Hussein

  • How to find the class name of the  BO

    HI
      How to find out a class for a business object.
    For example for the Business Object FORMABSENC i want to find out the class name.
    iam not able to find out from se24 or swo1.
    Or please suggest me how can i use the method createbapistructure of this businessobject.
    Regards
    vijaya

    Hello Vijay
    When you double-click on "method" AbsenceForm.CreateBapiStructure (transaction SWO1) and switch to tab ABAP you see (on ERP 6.0) that the field Name is empty meaning this BO "method" has not yet been implemented.
    Other methods are implemented by modules of function group SWXA. Checking package SWX you will see that there are no suitable classes around for this object.
    Final remark: Methods of business objects has just a semantic meaning and has nothing to do with object orientation (i.e. classes).
    Regards
      Uwe

  • How to Find Controller class of  BSP application for particular Iview

    Hi  All,
    Any one please  help me  to find a Controlller class of BSP for an  I view.
    http://Host Name :Port No/sap/bc/gui/sap/its/wosm-cr-->this is for sap retail,
    My requirement  is to change some source code in that particular iview.
    i goine with SE80 Tcode
    with package called WOSM>ITS service>Topic 90-->which contain Mime Objects,Html Templates.
    but i dint find any
    Point will be given!!!

    Hi All,
    My question is where should i find Controller class ?
    i gone with Tcode  SE80>packages>WOST>ITS service>WOSM>Topic90>which contain Mime Objects,HTML Templates.
    i dint find any controller class.
    regards
    Naresh

  • How to find Program or transaction is already running

    Hi ,
    How to find one program or transaction already running in background or foreground ( any user).
    this is very useful to me , to avoid double time running the same program or transaction.
    Thanks in advance
    regards,
    Moon
    Moderator message: FAQ, please search for previous discussions of this topic.
    Edited by: Thomas Zloch on Apr 21, 2011 10:15 PM

    Hi Goldmoon,
    Please search before posting. There are many threads available regarding this.
    Kesav

  • How to find missing classes for an applet ?

    I'm trying to run a swing JApplet but I get a ClassNotFoundException - how can I find what class is missing ? IE6.
    Craig

    may you need the JavaPlugin for JApplet
    and which class is not found?

  • How to find the Class Type of a Class ?

    Hi,
    Can anyone tell how can I find a Class Type of a Class?
    e.g. I know the Class name as "Z_ABC" but do not know its Class Type, therefore, not able to display it in CL01.
    Regards,
    Lucky

    Hi,
    Just by entering the Class name in CL02 does not display the data because system asks to enter the Class Type as well.
    Rammohan - Thanks for thissolution however, when I executed after entering the Class Name, table displyed no entries found..... message but this class is being used in the PO Release Strategy. May be the data is being saved in some other table. Is there any other way to find this?
    Regards.

  • How to find program which created the session

    Hi friends,
    can anybody tell me, how to find out the program name that as generated   perticular batch session in SM35.
    I have session name and i want to find out the program which created the session.
    Thanks in advance.
    Saya

    Hi Saya,
    Check table <b>TBTCO</b> and<b> TBTCP</b> to know about the program created by a session.
    Give Job name to TBTCP-JOBNAME and get report name in the field TBTCP-PROGNAME.
    Thanks,
    Vinay

  • How to find a classes attributes at runtime?

    Hi,
    I need to write a program that inspects a class and finds out what attributes it has and then converts them to an XML string. Any idea how to get the classes attributes at runtime? I want this to work with 3rd party API's hence the reason I don't just either code a toXML function in each class or have a method to return the attribute names.
    Thanks
    Andre

    Hi,
    I need to write a program that inspects a class and
    finds out what attributes it has and then converts
    them to an XML string. Any idea how to get the classes
    attributes at runtime? I want this to work with 3rd
    party API's hence the reason I don't just either code
    a toXML function in each class or have a method to
    return the attribute names.
    Thanks
    AndreYou might want to take a look at Java's reflection mechanism:
    http://java.sun.com/docs/books/tutorial/reflect/index.html

  • How to find batch class based on material number

    Hi experts,
    Can any one say how to get Batch class number by giving material number as input
    regards
    subbu

    Hi ,
    check in MCH1 table.....
    or  try this way..
    By using this function module you can get the batch class related to material..
    * Retrieve Material Batch Classes
      CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
        EXPORTING
          classtype          = zc7b1_batch_class_type
          features           = 'X'
          language           = 'E'
          object             = w_object             "Pass material Number with leading zeros
          objecttable        = 'MCH1'              "Pass table MCH1
          initial_charact    = 'X'
        TABLES
          t_class            = t_lclass             " check here what are all the classes related to material
          t_objectdata       = t_objectdata
        EXCEPTIONS
          no_classification  = 1
          no_classtypes      = 2
          invalid_class_type = 3
          OTHERS             = 4.
    Prabhudas

  • MS/UNIX/DB question - How to find MS characters in Unix scripts.

    Hi. I apologise if this is a bit off-topic.
    We have been developing sql scripts on PC's but need to run them from UNIX. We are find Microsoft characters like double spaces followed by a dash convert into little squares and upside down question marks. etc.
    I can find them in the database using:
    SELECT description_text, dump(description_text)
       FROM descriptions
      WHERE regexp_like( description_text, '[^[:print:][:space:]]');And get things like "Adjustment � Service".
    In unix that might appear as "\266" in the middle of a text string. We find them in the db, fix them, and re-deploy.. but this is getting tiresome.
    I want to be able to repeatedly scan all sql scripts in Unix, including files in subdirectories. (there are literally hundreds..)
    We're running SunOS 5.10. I have tried "grep -r {266}" but the -r option isn't valid with my version of grep... :(
    Any suggestions about the easiest/most pragmatic way of doing this?
    Thanks in advance. :)
    Pete
    Edited by: peetmoore on 11-Aug-2009 19:51

    I couldn't get the shell script to work, so just kept playing with command line.
    The closest I have is:   find . -name "*.sql"  | xargs  grep 'xyz' Or using od: find . -name "*" | xargs | od -c | grep 'xyz' But i'm struggling a bit to identify and filter the specifc characters i'm looking for. They appear differently depending on how they're being viewed. (or not at all.) in some cases 2 spaces following by a dash " -" appeared as an update down question mark in Sql and "\266" in the unix script when viewed in vi. I don't have any current examples so it's hard to see what it looks like in od.

Maybe you are looking for

  • My wireless internet is working with all of my other devices but my imac will not connect to the network?

    Can anyone help?  My wireless connection is working on both my iphone4S and my ipad2, but my Imac will not connect to the network.

  • Deploying the fop.war file for PDF printing

    I suppose this should maybe be in the App server thread but im following instructions from here to enable PDF printing in APEX http://www.oracle.com/technetwork/developer-tools/apex/application-express/configure-printing-093060.html#05 The instructio

  • Information on built-in packages of HTMLDB

    Hi All, I have recently started working on HTMLDB. Can anybody tell me where from can i get information abt the built-in packages of HTMLDB. I have came across many like WWV_ . But, i dont know where from can i get detailed info abt them. Thanks in a

  • IPad won't accept passcode after iOS5 update?

    Just updated my iPad 2 to iOS5.  Turned it on and the passcode prompt has changed, no longer just asking for 4 digit passcode.  Oooookay, I entered my old 4-digit passcode and it didn't work.  Tried my Apple ID passcode, no luck.  Tried the password

  • Runtime exec opens new window

    Hi, I am using Runtime.exec to run an external application in Windows2000. � can read its output and i can destroy it without any problems. But when i run my java application with javaw , the external application i run with rt.exec opens new window(w