Dwm - how to assign a second Meta key

I'm using dwm and I'm trying to figure out how can I assign the Microsoft Menu key (or context menu key) as a second Meta key?
I usually use ALT as the meta key. #define MODKEY Mod1Mask, however, I'm not sure if I can use as well the MS key. Thanks

Head_on_a_Stick, that'd be for the "Windows" key, not the menu key.
The menu key does not function as a modifier so it cannot be simply configured in dwm's config.h.  When a key is pressed dwm checks the key symbol sent from the x server, and the modifier mask of what modifiers were held while the key was pressed.  The menu key will never be included in the modifier mask, it will only be treated as a key in the eky symbol varaible for the event.  That is unless you make the X server treat is as a modifier with Xmodmap.
You could map the menu key to one of the 'normal' mod keys, but others are are available that are generally not used (I'd suggest Mod5Mask).  Once mapped, you can just change your modkey in dwm's config.g to match.
EDIT: I just reread you initial post - you say you want to use the menu key "as well".  Do you mean you'd like to switch between them, or have them both do the same thing?  If you want to switch, use Mod5 as suggested above.  If you want them to do the same thing, simply use Xmodmap to make the menu key a Mod1 key, then don't do anything to your config.h.
Last edited by Trilby (2014-11-18 12:31:06)

Similar Messages

  • How to assigne multiple value in key of read table

    Hi gurus,
    I want read table xxxx with key field1 = ' xxx' or field1 = 'yyy'.
    how to assign multiple value as key for the same field while reading internal table.
    Regards
    sagar

    Hi ,
    You can loop the internal table like
    loop at  <table xxxx> where field1 = ' xxx' or field1 = 'yyy'
    or you can write two read statements to read the internal table in wrk area.
    read table   <table xxxx> with key field1 = ' xxx'.
    if sy-subrc <>0
    read table   <table xxxx> with key field1 = 'yyy'.
    if sy-subrc = 0
    endif.
    else.
    do your data processing.
    endif.
    Thans.

  • KDE4 Meta Key

    Hey
    I've been wondering for a while what is the Meta Key in KDE 4 by default. For instance, I'm trying to activate a Track Mouse desktop effect found under System Settings->Desktop Effects->All Effects. The settings window for this effect says: Hold Ctrl+Meta keys to see where the mouse cursor is.
    Many desktop effects require a Meta Key but what it is bind to?

    Skripka wrote:
    xCrucialDudex wrote:Can another key be assigned the role of meta key for KDE keyboard shortcuts?
    Yep.
    System Settings>Country/Regional&Language>Keyboard Layout>Advanced Tab
    It's beyond me. I've tried but I don't really what I could possibly use instead of an already taken Left Win key. Could anyone please break it down like for a toddler how to assign a new meta key?

  • How to assign a Customer exit variable to Key figure

    Hi,
    I have created a Customer Exit variable to findout no. of days in the month. 
    But I dont know how to assign that variable to a Keyfigure value.  Can you please let me know how to assign it.
    Regards
    Sankar

    Hi Sankar,
    From what I could understand, you want to display the output of that key figure for some no. of days of a month (calculated in your customer exit variable)...right ???
    If that is the case then you can create a structure in columns. Create a new selection...include your key figure and that customer exit variable in it.
    That shall serve the purpose.
    Regards
    Shalabh Jain
    Edited by: Shalabh Jain on Dec 15, 2008 1:46 PM

  • How to assign Function key in Module Pool Program

    Dear all,
             I have created the program in MPP.  I have to assign function key for this program.  How to assign it?
    With Regards,
    Baskaran

    HI
    Double Click on your Screen and then Elements Tab, give OK_CODE of OK_CODE.
    Now in Click on Flow Logic Tab , uncomment MODULE STATUS_YOUR_SCREEN_NUMBER. Create this.
    Here you find SET PF_STATUS Just Double click on this this will enable you to Assign Function Keys.
    If you want to Assign Function Key to the Push Buttons that you created Double Click on the Push Button then on the Attributes Screen you can enter the Funciton Code for this Push Button,
    Hope this is Very Clear to you.
    Cheers
    Ram

  • How to creating a role configuration key, nd how to assigning it to our bus

    how to creating a role configuration key, nd how to assigning it to our business role?
    advance thanks..

    Hello Suri,
    To create the Role Key
    In the SPRO CRM - UI Framework - Technical Role Definition - Define Role Configuration Key
    Then to assign the Business Role in the
    In the SPRO CRM - UI Framework - Business Roles - Define Business Role
    The field  for the Role Key is Config Key
    Regards.

  • How to assign the two values for constant (same key)

    How to assign the two values for constant (same key)
    CONSTANTS: c_pstkey TYPE  bschl VALUE '09',
               c_splgl  TYPE  umskz VALUE 'I',
               c_buzei  TYPE  buzei VALUE '001'.
    using BSCH1 again i have two asign vaue
    can you just let me know
    Edited by: sravya_se38 on Nov 23, 2010 12:14 AM

    You can create a structure for that constant .
    You can define in this way
    CONSTANTS : BEGIN OF c_pstkey,
                             01 TYPE bschl VALUE '01',
                             02 TYPE bschl VALUE '02',
                          END OF c_pstkey.
    and can access using...
    c_pstkey-01, c_pstkey-02 ........

  • Adobe Captivate 8 - How to Assign Custom Shortcut Key

    I want to switch between the Film Strip view and the Master Slide view quickly. To show/hide the Film Strip there is a default shortcut key CTRL+ALT+B. For the Master Slide there is none.
    Is there a way to assign a custom shortcut key to toggle Master Slide view?

    I wonder why the lack of support for custom shortcuts keys does NOT surprise me. In overall, shortcut keys are typical and always required in expert applications.
    Anyway, thanks for the tip. I noticed that keeping a number of panels ON slows down the performance so toggling between them ad-hoc might mitigate users frustration.
    Again...fruit for thought.

  • Vim issues...meta keys and colorscheme not working correctly

    The first issue isn't really a vim problem, but it's related.  When running Vim in a terminal, my meta key bindings don't work.  I've tracked it down to a problem with Xfce's Terminal as noted here: http://vimdoc.sourceforge.net/htmldoc/m … p-alt-keys
    ...but I'm not sure exactly how to fix it.  I suppose I could always switch to another terminal, but I'd like to stick with Xfce's version if possible.
    The second issue is that my color scheme isn't being set when I first load up gVim.  As soon as I open a file, it properly displays, but the "splash" page doesn't show it.  I'm using desert (who doesn't) and this is what it looks like when I first load up gVim:
    I did stop using a separate <code>.gvimrc</code> in favor of putting everything in my <code>.vimrc</code> file under a conditional, and all the other settings work just fine.  Here's what that conditional looks like:
    if has( "gui_running" )
    set columns=84 " Set the window's width
    set lines=43 " Set the window's height
    set guioptions-=T " Remove the toolbar from the window
    set guifont=Terminus 12 " Use a clean monospaced font
    colorscheme desert
    else
    set background=dark
    colorscheme desert
    endif
    In case you're curious, here's my entire <code>.vimrc</code> file.

    phrakture wrote:IIRC this happens for because gvim does not find a ~/.gvimrc and reads /etc/gvimrc after ~/.vimrc (I think).
    Try symlinking ~/.vimrc to ~/.gvimrc
    That solved the problem for me. Thanks 

  • Making "apple" key the meta-key in terminal

    howdy,
    does anyone know how to assign "meta" functionality to the the "apple" button in the terminal?
    cocoa emacs does it by default and i know there's a preference pane to set the option key to meta ...
    i'd be much obliged if anyone could offer a solution.
    cheers!
    -ld

    Ah you mean the ESC key posting? That's what I've been using all these years as a workaround, but that is not a real solution.
    The ESC solution is different and more awkward to type than a real meta key. For one it is in an inconvenient location, and more importantly it's not used like a modifier key because you have to press and release it before typing the combination character. So instead of pressing and holding Meta, then typing the dot key, then releasing both (to get the last argument of the previous command line in bash for example), I have to press ESC, then release ESC and then type the dot. If I don’t do that, and hold the ESC key down, the repetition kicks in and that breaks key sequences.
    But I really want to press and hold meta, press the dot, and then release them both at once. Exactly like the combinations that you use with the Ctrl key, or the Mac keyboard commands you use with the Command key. I want to use the meta key like the Ctrl key, which is the natural way to use it. The ESC fallback is a less convenient substitute which we’re forced to use, unfortunately... But I hate it.
    So, if you know of a way to assign the meta role to some key other than the Option key in a way that allows me to use it like a real modifier key that can be held pressed without going into repetition, then that would be the solution I am looking for. And I guess the “other key” can pretty much only be Caps Lock or Fn.

  • How to assign a task to Reuestor in OIM 11g

    How to assign a task to a requestor (who has raised a request for other user).
    I created a Task assignment adapter and mapped variable in Process definition as
    Map To: Request Info
    Qualifier: Requester User Login
    Still it returns null and default task is assigning to System adminstrator. I am pasting the Task Assignment code here. User key value coming as Null.
    Do you have any idea what is the exact mapping required in Process definition.?? Pls note: I am using OIM version 11.1.1.5.0
    public class TaskAssignmentToUserAdapter {
         Logger logger = Logger.getLogger("COM.IDM.PROV.COMMON.ADAPTERS");
         public String getTargetType(String targetType){
              return targetType;
         public String assignTaskToUser(String userKey,tcDataProvider dataProvider ){
              System.out.println("The user key value:" +userKey);
              return userKey;
         }

    Not sure what sample code I can give you, but you need to do a query in your adapter like:
    select REQUEST_KEY from OIU where ORC_KEY='?'
    Here ORC_KEY should be mapped to the process instance key.
    Once you have the Request key, you can use RequestServcie APIs to get the requester information. http://docs.oracle.com/cd/E14571_01/apirefs.1111/e17334/oracle/iam/request/api/RequestService.html#getBasicRequestData_java_lang_String_
    Or if you don't care then get the requester key from the request table. Thus you can have the final query as:
    select USR_LOGIN from USR where USR_KEY=(select REQUESTER_KEY from REQUEST where REQUEST_KEY = (select REQUEST_KEY from OIU where ORC_KEY='?'))
    HTH,
    BB

  • Assigning a new tax key for V0 and VAT not possible

    Hi Experts,
    Invoice is been created successfully in SUS , XML transfered to XI which in turn created the IDOC in ECC.
    I get the below error while transferring theinvoice IDOC from XI to ECC.
    Assigning a new tax key for V0 and VAT not possible
    Message no. FD008
    Diagnosis
    In Financial Accounting customizing, the tax ID transferred in the invoice is missing so that the system cannot determine a tax code. The system could not determine an entry with the value V0 nor with the value VAT .
    Procedure
    In Financial Accounting customizing, include the external tax ID and a corresponding internal tax code for the present partner.
    Please let me know if I am missing any setup in ECC as I have already maintained the setup in OBCA, OBCD and OMRY.
    Thanks,
    -Devi Swain

    Hi Devi,
    Can you please tell me ,how you resolved this issie,I am getting same error.I I have already maintained the setup in OBCA, OBCD and OMRY.
    Thanks,
    -Sunil

  • Acct determination for Account-assigned purchase order with keys not define

    Hi,
    I'm trying to post an IDOC of type BBPIV through XI to an R/3 system.
    The posted idoc in R/3 is in status 51 (Application document not posted) with the error message "Acct determination for Account-assigned purchase order with keys not defined in chart of acts WP2P"
    As per my understanding this is something related to FI.
    Long text of the error is "The system cannot generate an automatic posting because there is no account determination defined for Account-assigned purchase order with keys   in chart of accounts WP2P.
    Correct the account determination for Account-assigned purchase order"
    Please help me how to solve this.
    Regards,
    Rashmi

    Hiya,
    This looks like its a MM posting / transaction.
    You need to go to OBYC and maintain the account assignment. If you provide the business scenario (GR into Stock, Subcontracting, etc.) for the process, I may be able to help.
    VKOA is for SD account assignment and I don't believe you can use that here.
    Cheers.

  • How to write conversion routine for key figure?

    Our customer has this requirment:
    we need to know the last time of some TV program in BEx report, If a TV program last 500 seconds, we need show the key figure like this:  00:08:20, If a TV program last 100000 seconds, we need show the key figure like 27:46:40 (27 hours and 46 minitues and 27 seconds), If we define a key figure as time,  BW system will report a error that say it is not acceptable time.  If we want to define a integer, but we need display it like hhmmss format.  We know we can write conversion routine for char.  but I don't how to write conversion routine for key figure.   Please give me any hint if any other solutions?
    Edited by: SY DONG on Dec 2, 2010 3:36 AM

    If you want to do in Transformation Layer :
    You can use routine ...break up the seconds into minute hour and seconds
    you will have to handle few cases in this:
    let say your variable lv_seconds holds the number of seconds you want to convert to hour min and seconds
    DATA: lv_seconds type i,
               lv_hrs  type  i,
              lv_sec type i,
              lv_min type i.
    lv_hrs = lv_seconds / 3600
    if lv_hrs >= 1.
    lv_min = (lv_hrs - trunc(lv_hrs))*60
    here again handle seconds if min >60.
    else.
    lv_hrs = '00'.
    lv_min = lv_hrs*60
    It is just hint ..how you can manipulate the seconds to get it...you will have to think about the complete algorithm
    Regards,
    RK

  • Problem with meta key option in Terminal app!

    I used Terminal for awhile now with and without meta-key option but I like the meta-key to be turned on cause im familair with tabbing that way. But one thing I can't do in like irssi, is to make symbols with altkey1234567890.. I can do that without the meya-key option.. Anyone know how to solve this problem?

    This seems a [long-standing|http://www.entropy.ch/blog/MacOSX/2009/01/27/Mac-OS-X-Problem-Unsolved-for-Years-Terminal-Meta-Key-and-Internati onal-Keyboards.html|Mac OS X Problem Unsolved for Years: Terminal Meta Key and International Keyboards] issue.
    A possible solution could be to find how to specify an arbitrary alternate key as the META key, for example the Caps Lock or Fn key.
    Another solution could be to tweak the shell to print the requested characters, even with the "use Option as the META key" option enabled. For what I understand, this route for the Bash shell is explained [here|http://anders.janmyr.com/2009/01/making-mac-os-x-terminal-hum.html|Making the Mac OS X Terminal Hum]. However, I don't know enough of *nix and shells to really understand what's written in that article… moreover, I use the tcsh shell and those instructions seems to me very shell-specific.
    Any idea of what needs to be tweaked in a tcsh shell environment?

Maybe you are looking for

  • Remote works for a while, then fails to connect

    I upgraded my first-gen iPhone to software v2.0, and installed the Remote app. It connects to iTunes on my Mac and it works fine, for a while. Then an hour or so later, when I launch the Remote app again, it gives me the "Could not find library" erro

  • Help setting up windows auth for lighttpd/ldap etc

    I'm running a server on my office that I only have accessible to people in our workgroup. I'd like to set it up to authenticate into our windows domain for ease of password management. I havent been able to get ldap working..and was wondering if anyo

  • Remeber login data doesn't work

    Video of this problem: http://www.youtube.com/watch?v=xRjQ4KdxM1w Problem as following: when I start Ovi Suite it ask for my Ovi account (with I have) so I login using my login data and select remeber. I quit Ovi Suite and start it again: first this

  • Blog - "Quotation Marks"

    I wonder if you can help. On some blogs (Wordpress, TypePad) there is a facility to include quotations, which appear in a highlighted box with giant-sized quotation marks in front of the highlighted text. Is there anything similar in iWeb?

  • Total Training for Flash CS4 ProIT,

    hello, im somewhat new to flash but i want to be good at it. im not really sure where to post this also but im looking for opinion and advise. im wondering about the package total training for adobe cs4 professional if it will good for my training an