(Solved) Openbox rc.conf application specific mousebinds?

Hi everyone
I have been trying to figure out if there is any way to create an application specific mousebind. But I can't figure out how or even if it is possible. I have added an urxvt terminal to the background of my and I want openbox's root-menu to appear on a rightclick.
Thanks
Last edited by Wieke (2012-02-12 11:30:43)

I've kinda figured it out, by using the if action. First I changed the right-mousebutton keybinding in the "client" context in rc.conf to the following:
<mousebind button="Right" action="Press">
<action name="if">
<title>*background*</title>
<then>
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</then>
<else>
<action name="Focus"/>
<action name="Raise"/>
</else>
</action>
</mousebind>
The actions between the <else> tags are the default actions of the right mouse button in the client context.
Then I had to change the window title of the urxvt terminal to something including background. Which was a lot harder (didn't get all the .bashrc syntax) but I by accident stumbled on something resembling a solution. By running the urxvt terminal with "urxvt -name urxvt_background -tn urxvt" it's window title got set to "urxvt_background".
And now it works. (Still got to figure out if i want to do the same with the middle mouse button, the client-list-combined-menu is convenient, but so is using paste.)
Last edited by Wieke (2012-02-12 11:31:42)

Similar Messages

  • Openbox rc.conf applications section

    I'm having a little problem here, this is my applications section now:
    <applications>
    <application name="gkrellm">
    <layer>below</layer>
    <skip_pager>yes</skip_pager>
    <skip_taskbar>yes</skip_taskbar>
    </application>
    <application name="Eclipse">
    <decor>no</decor>
    </application>
    </applications>
    But it just doesn't work... The "name" tag used to be "class" and that worked in the previous version but it doesn't since the upgrade. Neither with "name" or "class".
    Do I have something wrong? I don't see it...

    Ramses de Norre wrote:
    George_K wrote:You can provide your rc.xml (for example via http://pastebin.archlinux.org/)
    Here it is, but I'm fairly sure all the rest is correct. (As in all the rest works)
    I only read the first few lines, but I can see you aren't using the latest rc.xml file that comes with the latest releases of openbox. Although it may take a bit of your time, you'll probably be better off copying the new rc file located at /etc/xdg/openbox/rc.xml to your ~/.config/openbox/ directory and editing it to suit your needs (backup your present one for comparison). It doesn't take very long, and you'll be completely up-to-date.

  • I have just downloaded OSX Mountain Lion. I have Canoscan LiDE 110. I am continuously getting an error message, "MP Navigator EX quit unexpectedly. Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException

    I have just downloaded OSX Mountain Lion 10.8.3 and installed it on my lap top. I have Canoscan LiDE 110. I am continuously getting an error message, "MP Navigator EX quit unexpectedly when ever I try to scan a document. Application Specific Information: *** Terminating app due to uncaught exception 'NS Invalid Argument Exception..."
    Please let me know how to solve this problem.

    LexSchellings wrote:
    According to www.roaringapps.com the MP Navigator EX does not run on Mountain Lion.
    There are different versions of MP Navigator available depending on the Canon device you have. And there are version of this app that do work on 10.8. So www.roaringapps.com would need to amend their statement.
    LexSchellings wrote:
    Instead I use Canon Solution Menu EX, which does even more for you than the MP Navigator. This Solution Menu runs perfectly on Mountain Lion.
    Solution Menu is just a front-end for other Canon applications. When you click on the Use Scanner menu and select Auto Scan, OCR or Attach To E-mail, MP Navigator will open.
    As for the OP, they can obtain the latest version of MP Navigator, which is 10.8 compatible, and the supporting scanner driver via this link.
    http://support-au.canon.com.au/P/search?model=CanoScan+LiDE+110&menu=download&fi lter=0&tagname=g_os&g_os=Mac%20OS%20X%20v10%2E8
    And you don't need to uninstall an older version. The new version will overwrite.

  • [solved] Openbox autostarting ncmpcpp in lxterminal on desktop2

    Hi!
    I wondered how to get this working...
    What I want: I want openbox to open an lxterminal with ncmpcpp running on desktop2
    What I tried so far:
    Editing .config/openbox/rc.xml
    <application name="ncmpcpp">
    <desktop>2</desktop>
    </application>
    and then I put lxterminal -e ncmpcpp & in my autostart.sh
    Clearly this did not work, since autostart starts lxterminal and not ncmpcpp.
    Ok, so I tried to see if the <application> settings in rc.xml can be fooled by:
    - ln -s lxterminal terminalncmpcpp
    <application name="terminalncmpcpp">
    <desktop>2</desktop>
    </application>
    and putting terminalncmpcpp -e ncmpcpp & in the autostart.sh
    Sadly this didn't work too.
    Is there a way to get this to work?
    Thanks,
    zip1100
    Last edited by zip1100 (2010-09-04 18:15:45)

    ctrl wrote: Maybe you can change the name of a specific lxterminal (i.e. with urxvt: "urxvt -name myterm").
    That did the trick for me. Unfortunately not with lxtermial (it looks like it has no -name parameter)  but with urxvt.
    Thanks!

  • [SOLVED] Openbox + fullscreen wine = focus problems

    Hi everyone,
    I've got this problem with Openbox: when i play a game via WINE (such as World of Warcraft or Guild Wars 2) in fullscreen, the screen become darker and unresponsive after a few mouse clicks. Then if I alt+tab twice, the wine screen become active again... until i decide to click again.
    If I play in non-fullscreen windowed mode, it somehow works (WoW and Hearthstone work but GW2 windows blinks dark for like 1 seconde everytime i click).
    If I use only the keyboard, everything's fine.
    If I set winecfg to create a virtual desktop, everything's fine too.
    If I use any other window managers (i tried with xfce, fluxbox, dwm...) i have no problem so i guess is something with the way Openbox and WINE interract.
    Any idea what this could be ?
    Last edited by Synchronyme (2014-05-31 07:18:34)

    Do you use a composition manager? Any application specific settings in rc.xml?
    Last edited by emeres (2014-05-30 17:54:40)

  • Application specific button on FPM toolbar to call action triggered in view

    Hello,
    In the content area of my FPM is an ALV with some buttons, e.g. clicking one of the button opens up certain ALV column for editing (for simplicity, I omit the details besides simply enable the columns).
    With FPM, I want the button to be placed in the toolbar as a application specific button. How do I achieve the same functionality e.g. from PROCESS_EVENT method calling an action (to open up certain ALV column for editing) via the application specific button placed on the toolbar communicating with the action/method found in the view controller ? Thank you.
    Regards
    Kir Chern

    Hi Arvind,
    I tried as follows :
    - Create an event in the component controller, say 'MA'
    - Within PROCESS_EVENT, raise the event as follows :
      data : lo_fpm type ref to if_fpm,
             lo_event type ref to cl_fpm_event.
      create object lo_event
         exporting
            iv_event_id = 'MA'.
       lo_fpm = cl_fpm_factory=>get_instance( ).
       lo_fpm->raise_event( io_event = lo_event ).
    - In the view controller, create an event handler which subscribe to the event, MA of the component controller.
    However, the code in the event handler is never executed despite the event being raised. Not sure how FPM event flow works here.
    Can anyone advise ? Thank you.
    Regards
    Kir Chern

  • How to create an application-specific policy file?

    Hi Everybody:
    I'm a .NET developer with C #. I have a few applications currently running on my computer using the ODP 10.1
    Two weeks ago I installed on my computer the ODP 10.2 Release & now my previous applications have stopped working: when I try to make the connection to the database gives me this exception:
    OraOLEDB (0x80004005)
    ORA-12154: TNS: could not resolve the connect identifier specified
    In FAQ section for ODP.NET I found the next:
    Q: I have two .NET applications on the same machine running two different versions of ODP.NET. How do I ensure both these applications use the correct ODP.NET version?
    A: Beginning with ODP.NET 10.1.0.3, the Oracle installer will register the following publisher policy DLLs in the Global Assembly Cache (GAC) that redirect 9.2, 10.1 and 10.2 ODP.NET applications to use the last installed version of ODP.NET: Policy.9.2.Oracle.DataAccess.dll and Policy.10.1.Oracle.DataAccess.dll.
    ODP.NET 9.2 includes just the first policy DLL above. These policy files ensure that all your ODP.NET applications use the most recently installed version of ODP.NET.
    You may undo the redirection manually. Policy DLLs can be de-installed through gacutil.exe using the /u option. Another approach is to navigate to the GAC directory (i.e. C:\WINNT\assembly) through the Windows Explorer and delete the policy folders. That will eliminate any policy enforcement for all your ODP.NET applications.
    If you have applications on the same machine using different ODP.NET versions, you should create an application-specific policy file.
    I'm trying to do that, but I don't know what is an application-specific policy file. Someone can give me an example of How can I create and application-specific policy file???
    Regards

    Hi,
    Binding redirection is a ".net thing" as opposed to a "odp.net thing", see if this helps:
    http://msdn.microsoft.com/en-us/library/7wd6ex19(VS.71).aspx
    Hope it helps,
    Greg

  • Application specific theme in CE7.1 web dynpro application

    Hi,
    where can I find documentation about setting up application specific themes for Java Web Dynpro applications running in Composition Environment 7.1? I've found documents that refer to the Visual Administrator but since it doesn't exist anymore in CE7.1 there must be a different way.
    Regards,

    Hi Kevin,
    Yes, charts are going to be supported in WD html in next versions of VC( Q3 2008).
    Regards,
    Kobi.

  • How to set up Application specific custom ogoff (sign-off) page.

    Hi,
    I'm using OracleAS 10.1.2.2
    Note 333638.1 shows us how do make a custom SSO login page to be application specific. This works.
    Now, I want to do a custom SSO logout (sign-out) page. Using the redirect method described does not seem to work. Please note that in our version 10.1.2.2, there is no default logout.jsp page in the /sso/jsp directory. To deploy a custom logout page, I would need to update the WWSS_LS_CONFIGURATION_INFO$ view.
    I was able to test a custom SSO logout.jsp page sucessfully. However, when I tried using a redirect_logout.jsp to make it application, it no longer works.
    Does anyone know or have any idea on how to deploy an application specific logout page? (i.e. only specific applications uses the custom logout page, otherwise go to the default one).
    Thanks.
    - Kevin

    Well,
    There are 5 choices to choose from on the page. In the description of the choices at the bottom of the page there are 7, and the two additional choices talk about having to first have registered the site with SSO. So...I'm interpreting that as meaning that other 2 possible choices would be displayed if the site is registered with SSO. That, plus the fact that the page which describes how to add the site to SSO seems to think that the SSO choices are displayed in the wizard.
    So, no, there's no "exact launguage" that says what the reason is for the choices not being displayed. Can you point me to some exact language that tells me how to get those choices displayed?

  • How do I use a MessageSelector with application-specific properties

    According to a couple of JMS references (Sun, Oreilly) and the oracle documentation (under the heading "Using Oracle Java Messaging Service (JMS) to Access AQ", page 102 of 1082 , Application Developers Guide - Advanced Queuing, Release 2 (8.1.6))
    Standard JMS Features
    "Message selection based on message header fields/properties"
    Is there a special syntax for using application-specific (user defined) JMS message properties as message selectors in Oracle 8.1.7?
    I've tried to create a message selector based on a custom property that I set, i.e. "username != 'William'". (example from O'Reilly JMS book, pg. 44)
    I always get a JMS-159: Invalid selector Selector Parse error unless the property is a JMS-Defined property. i.e., " JMSMessageID = 'ID:9789D65E215B3613E034080020B1456E' " works fine.
    From the docs and the oter examples, I figure application-specific (user-defined) properties are legal.
    Thans for any help in advance.

    Well I found an article in another forum that states in oracle 8i, message selectors are only supported on JMSCorrelationID and JMSMessageID
    (9i will have/has the full JMS spec support for message selectors , or so the response to the message says)
    Thanks anyway
    (Aricle Is In Products > Database > Oracle Advanced Queueing
    Title is JMS AQ: selector in createReceiver does not work)

  • How do I use a JMS MessageSelector with application-specific properties

    According to a couple of JMS references (Sun, Oreilly) and the oracle documentation (under the heading "Using Oracle Java Messaging Service (JMS) to Access AQ", page 102 of 1082 , Application Developers Guide - Advanced Queuing, Release 2 (8.1.6))
    Standard JMS Features
    "Message selection based on message header fields/properties"
    Is there a special syntax for using application-specific (user defined) JMS message properties as message selectors in Oracle 8.1.7?
    I've tried to create a message selector based on a custom property that I set, i.e. "username != 'William'". (example from O'Reilly JMS book, pg. 44)
    I always get a JMS-159: Invalid selector Selector Parse error unless the property is a JMS-Defined property. i.e., " JMSMessageID = 'ID:9789D65E215B3613E034080020B1456E' " works fine.
    From the docs and the oter examples, I figure application-specific (user-defined) properties are legal.
    Thans for any help in advance.

    Well I found an article in another forum that states in oracle 8i, message selectors are only supported on JMSCorrelationID and JMSMessageID
    (9i will have/has the full JMS spec support for message selectors , or so the response to the message says)
    Thanks anyway
    (Aricle Is In Products > Database > Oracle Advanced Queueing
    Title is JMS AQ: selector in createReceiver does not work)

  • Application Specific Popup in Web Dynpro - Issue

    Hi Gurus,
    I am trying application specific popup which is described in FPM cook book. I am deferring the current event and trying the following steps as described in the cook book.
    1) Created new WD ABAP view "POPUP_CARRIER"
    2) In the component controer created a new WD ABAP event. e.g: "REGISTER_POPUP". which does not have any parameters
    3) In the method PROCESS_EVENT of component controller raise the WD event "REGISTER_POPUP"
    4) In the view POPUP_CARRIER create a new method. e.g "REGISTER_POPUP of type event handler for the event "REGISTER_POPUP_EVNET"
    5) In the method REGISTER_POPUP use the ABAP window API inorder to create a POPup.
    My issue is the method which is dependent on event is not invoking. Any help would be appreciated
    Sincerely,
    GSM

    Hi,
    Does anybody know how to open view specific popups from Process event method. I have followed the similar steps as suggested in the FPM cookbook but I dont get any popup. When I debug I get following error.
    Class: CL_WDR_CLIENT_ABSTRACT_HTTP
    Method: HANDLE_REQUEST
    cl_wdr_client_ssr=>todo_cleanup( 'Evil hack because of missing support in RR_APPLICATION' )."#EC NOTEXT
    Thanks
    Abhay

  • Location of application-specific properties files

    I am using Tomcat 4.0.3 under WinXP Pro, and I am trying to get my
    application to "find" an application-specific properties file. I am having problems trying to determine which directory to put this file in.
    Here is the Java code I am using for this class:
    import java.util.Properties;
    import java.io.FileInputStream;
    public class ForumProperties extends Properties {
       private static final String DEFAULT_FILENAME = "/WEB-INF/classes/mystuff.properties";
       private static ForumProperties globalProps;
       private ForumProperties() {
       private ForumProperties(String fileName) throws Exception {
          this();
          load(new FileInputStream(fileName));
       public static ForumProperties getInstance() throws Exception {
          try {
             if (globalProps == null)
                globalProps = new ForumProperties(DEFAULT_FILENAME);
          } catch (Exception ex) {
             ex.printStackTrace(System.out);
             throw new Exception("Error loading properties file");
          return globalProps;
    }I have put the properties file in just about every directory I can think of to try and find out where it's supposed to be, but I can't get it to work. I can put the file into the "user.home" System property (which turns out to be C:\Documents and Settings\Administrator) and have it pick it up, but I would prefer to put the file into the path of the application.
    I have tried four different methods to load this file:
    1. load(new FileInputStream(fileName)); (same as above)
    2. load(Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName));
    3. load(this.getClassLoader().getResourceAsStream(fileName));
    4. load(getServletContext().getResourceAsStream(fileName));
    All of them fail for not finding the file except #4, but that's not the
    optimal solution as it requires a servlet context, which for "genericness of code reasons", I DON'T want to do.
    As an aside, I pulled the "java.class.path" from the System properties to see where it's pointing, and all it has in it is
    "<CATALINA_HOME>\bin\bootstrap.jar" with no other paths included.
    Is there an attribute or something in the server.xml or web.xml file I am forgetting to set, or another approach I should be taking?
    Bob

    See if this code fragment helps.
              String MAIN_FILE_PATH = "./BlueGnome/demos/Properties/DemoPropertiesFile.properties";
              java.net.URL url = ClassLoader.getSystemClassLoader().getResource(MAIN_FILE_PATH);
              System.out.println("PATH: resolved name = " + url);
              // Get the file.
              // We could just use FileInputStream here.  Then we would have
              // to provide a path that was meaningful to the system like
              //     c:\java\BlueGnome\demos\Properties\DemoPropertiesFile.properties
              // Doing it this way allows us to use generic directory
              // seperators and allows for it to search for the file using
              // the CLASSPATH.  That also allows for it to be in a jar file.
              java.io.InputStream is;
              is = ClassLoader.getSystemClassLoader().getResourceAsStream(MAIN_FILE_PATH);
              if (is == null)
                   throw new Exception("Resource File "
                        + MAIN_FILE_PATH + " not found.");
              aProperties.load(is);

  • Best practice for setting up directory for application specific entries

    In OID I want to add some information we need for our authorisation. The default authorisation isn't enough: users are allowed to access servlets if the data belongs to a group. And possibly they are allowed more then one roles for more then one data-groups. So for examle: datagroup1+role1+, datagroup1+role2 and datagroup2+role1.
    I want to define a application-specific tree for this data, something like:
    - Lariscontext (our application)
    ____|-Groups
    ______|--- group1 --- role1
    ______|_________|- role2
    ______|----group2 --- role1
    ________________|- role3
    And from the user-entry I want to refer to those entries, with constraints to check if they exist.
    - users
    ______|---- user1
    ____________attributs:cn=role1,cn=group1
    ____________________cn=role2,cn=group1
    ____________________cn=role1,cn=group2
    Are there any guidelines of how to do this, which object classes are usefull etc? Should I do this this way.
    regards,
    Eelco

    Did you ever come up with a way to set up the directory to handle the authorization details as you described. I have pretty much the same situation and I am looking for a starting point as to how best to setup the directory tree's users.

  • [SOLVED] Conditional xorg.conf, is possible?

    I'd like to export an nfs archlinux installation to a couple of machines that boots via PXE.
    Those machines have different graphic chips, and one of them needs some tweaks to the xorg.conf (s3) to play well.
    What i done was to create and populate /etc/X11/xorg.conf.d/10-openchrome.conf with specific device options.
    but having specified the driver to use in that file, now the other machines (with a mix of intel, nvidia and radeon) wont start Xorg anymore.
    What i am asking is if there is a "legacy" way to perform the task of assigning different xorg.conf configuration depending on the gpu used or if i need to hack my installation to switch xorg.conf at boot time depending on the installed gpu.
    Thanks for reading.
    Last edited by kokoko3k (2014-10-13 12:21:42)

    No problem - I immediately remembered the same question coming up recently, but even being an active contributor to the thread it took me a little while to track it down.  Be sure to see the revisions of the idea throughout that thread as different caveats were worked out.

Maybe you are looking for