enabling sticky keys under xorg (awesome desktop manager)How do I use the awesome window manager?“Sticky...

Linear regression when Y is bounded and discrete

How do I construct an nxn matrix?

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

How to approximate rolls for potions of healing using only d6's?

What's the purpose of these copper coils with resistors inside them in A Yamaha RX-V396RDS amplifier?

Avoiding unpacking an array when altering its dimension

What type of postprocessing gives the effect of people standing out

A "strange" unit radio astronomy

I can't die. Who am I?

What is the difference between throw e and throw new Exception(e)?

Is divide-by-zero a security vulnerability?

Difference between 小吃 and 零食

Hacker Rank: Array left rotation

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

"Murder!" The knight said

What to do when being responsible for data protection in your lab, yet advice is ignored?

Replacement ford fiesta radiator has extra hose

If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?

Equivalent to "source" in OpenBSD?

Must a tritone substitution use a dominant seventh chord?

What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?

How to count occurrences of Friday 13th

Use comma instead of & in table

Are small insurances worth it



enabling sticky keys under xorg (awesome desktop manager)


How do I use the awesome window manager?“Sticky button” configuration under X11/Ubuntu?netbeans (java) shows empty window in tiling window manager (awesome wm)How do I change the default ignore_modifiers in AwesomeWM?Control awesome window manager from consoledefining a key function in awesome window managerAdding windows to stacking area and not main window with awesome window managerAwesome Window Manager: Force firefox to initialy open on a specific screen (3 head)Awesome WM : How can I write a rule to make a window appear floating under the mouse?x2go connect to Manjaro VM with awesome window manager













10















I would like to enable "sticky modifier keys" under archlinux + awesome, and I haven't found the correct info.










share|improve this question

























  • What is "sticky keys"?

    – Daniel Andersson
    Apr 10 '12 at 7:31











  • right, I meant "sticky modifier keys", it means that pressing a modifier key acts as a toggle and usually the toggle is released on the next key press, so keys don't have to be pressed simultaneously but can be pressed in sequence. This is an accesibility for disabled users feature on OS-X, Gnome and probably Windows, and I find it more confortable and less hand straining with the feature on.

    – Macario
    Apr 10 '12 at 7:43
















10















I would like to enable "sticky modifier keys" under archlinux + awesome, and I haven't found the correct info.










share|improve this question

























  • What is "sticky keys"?

    – Daniel Andersson
    Apr 10 '12 at 7:31











  • right, I meant "sticky modifier keys", it means that pressing a modifier key acts as a toggle and usually the toggle is released on the next key press, so keys don't have to be pressed simultaneously but can be pressed in sequence. This is an accesibility for disabled users feature on OS-X, Gnome and probably Windows, and I find it more confortable and less hand straining with the feature on.

    – Macario
    Apr 10 '12 at 7:43














10












10








10


9






I would like to enable "sticky modifier keys" under archlinux + awesome, and I haven't found the correct info.










share|improve this question
















I would like to enable "sticky modifier keys" under archlinux + awesome, and I haven't found the correct info.







linux xorg awesome-wm






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 11 '12 at 23:34







Macario

















asked Apr 10 '12 at 7:28









MacarioMacario

270214




270214













  • What is "sticky keys"?

    – Daniel Andersson
    Apr 10 '12 at 7:31











  • right, I meant "sticky modifier keys", it means that pressing a modifier key acts as a toggle and usually the toggle is released on the next key press, so keys don't have to be pressed simultaneously but can be pressed in sequence. This is an accesibility for disabled users feature on OS-X, Gnome and probably Windows, and I find it more confortable and less hand straining with the feature on.

    – Macario
    Apr 10 '12 at 7:43



















  • What is "sticky keys"?

    – Daniel Andersson
    Apr 10 '12 at 7:31











  • right, I meant "sticky modifier keys", it means that pressing a modifier key acts as a toggle and usually the toggle is released on the next key press, so keys don't have to be pressed simultaneously but can be pressed in sequence. This is an accesibility for disabled users feature on OS-X, Gnome and probably Windows, and I find it more confortable and less hand straining with the feature on.

    – Macario
    Apr 10 '12 at 7:43

















What is "sticky keys"?

– Daniel Andersson
Apr 10 '12 at 7:31





What is "sticky keys"?

– Daniel Andersson
Apr 10 '12 at 7:31













right, I meant "sticky modifier keys", it means that pressing a modifier key acts as a toggle and usually the toggle is released on the next key press, so keys don't have to be pressed simultaneously but can be pressed in sequence. This is an accesibility for disabled users feature on OS-X, Gnome and probably Windows, and I find it more confortable and less hand straining with the feature on.

– Macario
Apr 10 '12 at 7:43





right, I meant "sticky modifier keys", it means that pressing a modifier key acts as a toggle and usually the toggle is released on the next key press, so keys don't have to be pressed simultaneously but can be pressed in sequence. This is an accesibility for disabled users feature on OS-X, Gnome and probably Windows, and I find it more confortable and less hand straining with the feature on.

– Macario
Apr 10 '12 at 7:43










4 Answers
4






active

oldest

votes


















17














I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.



From xkbset manual ($ xkbset man):



To switch sticky keys on or off, and optionally set or reset:
() two keys pressed at the same time stops sticky keys;
() a modifier pressed twice will be locked:

[-]{sticky|st} [[-]twokey|[-]latchlock]...


I ran this:



$ xkbset sticky -twokey -latchlock


That command can go in .xinitrc



# turn on stickykeys. don't let two keys pressed at the same time disable it.
# don't turn on "latch lock", ie pressing a modifier key twice "locks" it on.
xkbset accessx sticky -twokey -latchlock

# don't expire these settings. (run xkbset q exp for details.)
xkbset exp 1 =accessx =sticky =twokey =latchlock


 






share|improve this answer


























  • Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

    – Smith John
    Apr 4 '13 at 23:11











  • This is available in debian in the package xkbset.

    – Jesse Hallett
    Jun 1 '14 at 8:40






  • 2





    This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

    – Jesse Hallett
    Jun 1 '14 at 22:34



















5





+50









You can use Xmodmap to set a key lock for the Scroll, Kana, Num, Caps, and Shift keys. Also some ISO groupings keys can be remapped this way. For example, on my keyboard, to set Left Shift as a toggle, use this:



xmodmap -e "keycode 50 = Shift_Lock"



use "xev" to get the correct keycode.



Just add the command inside the quotes to a file named .Xmodmap and restart X to have the changes permanent.



Unfortunately, I don't think there is a keycode to Lock the Control, Alt, or Meta keys. If you post a more specific question and add a decent bounty, I may be able to work out a shell script and/or xorg change to make this possible.






share|improve this answer
























  • Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

    – Macario
    Apr 19 '12 at 21:37











  • XKB is a better way to do this. Check Arch wiki

    – phil pirozhkov
    Jun 1 '14 at 23:17



















0














One way to enable sticky keys is to press the StickyKeys_Enable key. If you don’t have it mapped to your keyboard you can simulate the keypress with e.g. Xdotool:



> xdotool key StickyKeys_Enable





share|improve this answer































    -1














    As far as I know, Xorg doesn't support this. It's not inconceivable for a custom keyboard driver to implement this, but I have never come across such a thing.






    share|improve this answer
























    • Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

      – Macario
      Apr 16 '12 at 5:22













    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f410657%2fenabling-sticky-keys-under-xorg-awesome-desktop-manager%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    17














    I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.



    From xkbset manual ($ xkbset man):



    To switch sticky keys on or off, and optionally set or reset:
    () two keys pressed at the same time stops sticky keys;
    () a modifier pressed twice will be locked:

    [-]{sticky|st} [[-]twokey|[-]latchlock]...


    I ran this:



    $ xkbset sticky -twokey -latchlock


    That command can go in .xinitrc



    # turn on stickykeys. don't let two keys pressed at the same time disable it.
    # don't turn on "latch lock", ie pressing a modifier key twice "locks" it on.
    xkbset accessx sticky -twokey -latchlock

    # don't expire these settings. (run xkbset q exp for details.)
    xkbset exp 1 =accessx =sticky =twokey =latchlock


     






    share|improve this answer


























    • Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

      – Smith John
      Apr 4 '13 at 23:11











    • This is available in debian in the package xkbset.

      – Jesse Hallett
      Jun 1 '14 at 8:40






    • 2





      This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

      – Jesse Hallett
      Jun 1 '14 at 22:34
















    17














    I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.



    From xkbset manual ($ xkbset man):



    To switch sticky keys on or off, and optionally set or reset:
    () two keys pressed at the same time stops sticky keys;
    () a modifier pressed twice will be locked:

    [-]{sticky|st} [[-]twokey|[-]latchlock]...


    I ran this:



    $ xkbset sticky -twokey -latchlock


    That command can go in .xinitrc



    # turn on stickykeys. don't let two keys pressed at the same time disable it.
    # don't turn on "latch lock", ie pressing a modifier key twice "locks" it on.
    xkbset accessx sticky -twokey -latchlock

    # don't expire these settings. (run xkbset q exp for details.)
    xkbset exp 1 =accessx =sticky =twokey =latchlock


     






    share|improve this answer


























    • Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

      – Smith John
      Apr 4 '13 at 23:11











    • This is available in debian in the package xkbset.

      – Jesse Hallett
      Jun 1 '14 at 8:40






    • 2





      This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

      – Jesse Hallett
      Jun 1 '14 at 22:34














    17












    17








    17







    I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.



    From xkbset manual ($ xkbset man):



    To switch sticky keys on or off, and optionally set or reset:
    () two keys pressed at the same time stops sticky keys;
    () a modifier pressed twice will be locked:

    [-]{sticky|st} [[-]twokey|[-]latchlock]...


    I ran this:



    $ xkbset sticky -twokey -latchlock


    That command can go in .xinitrc



    # turn on stickykeys. don't let two keys pressed at the same time disable it.
    # don't turn on "latch lock", ie pressing a modifier key twice "locks" it on.
    xkbset accessx sticky -twokey -latchlock

    # don't expire these settings. (run xkbset q exp for details.)
    xkbset exp 1 =accessx =sticky =twokey =latchlock


     






    share|improve this answer















    I've got it. There is a utility called xbkeys for setting accessibiltiy options for xorg.



    From xkbset manual ($ xkbset man):



    To switch sticky keys on or off, and optionally set or reset:
    () two keys pressed at the same time stops sticky keys;
    () a modifier pressed twice will be locked:

    [-]{sticky|st} [[-]twokey|[-]latchlock]...


    I ran this:



    $ xkbset sticky -twokey -latchlock


    That command can go in .xinitrc



    # turn on stickykeys. don't let two keys pressed at the same time disable it.
    # don't turn on "latch lock", ie pressing a modifier key twice "locks" it on.
    xkbset accessx sticky -twokey -latchlock

    # don't expire these settings. (run xkbset q exp for details.)
    xkbset exp 1 =accessx =sticky =twokey =latchlock


     







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jun 19 '17 at 12:24









    U Aberg

    32




    32










    answered Apr 19 '12 at 22:09









    MacarioMacario

    270214




    270214













    • Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

      – Smith John
      Apr 4 '13 at 23:11











    • This is available in debian in the package xkbset.

      – Jesse Hallett
      Jun 1 '14 at 8:40






    • 2





      This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

      – Jesse Hallett
      Jun 1 '14 at 22:34



















    • Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

      – Smith John
      Apr 4 '13 at 23:11











    • This is available in debian in the package xkbset.

      – Jesse Hallett
      Jun 1 '14 at 8:40






    • 2





      This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

      – Jesse Hallett
      Jun 1 '14 at 22:34

















    Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

    – Smith John
    Apr 4 '13 at 23:11





    Here is a link to xkbset: math.missouri.edu/~stephen/software/#xkbset

    – Smith John
    Apr 4 '13 at 23:11













    This is available in debian in the package xkbset.

    – Jesse Hallett
    Jun 1 '14 at 8:40





    This is available in debian in the package xkbset.

    – Jesse Hallett
    Jun 1 '14 at 8:40




    2




    2





    This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

    – Jesse Hallett
    Jun 1 '14 at 22:34





    This answer is very helpful! Now I just want to find a way to limit the sticky behavior to the Shift keys.

    – Jesse Hallett
    Jun 1 '14 at 22:34













    5





    +50









    You can use Xmodmap to set a key lock for the Scroll, Kana, Num, Caps, and Shift keys. Also some ISO groupings keys can be remapped this way. For example, on my keyboard, to set Left Shift as a toggle, use this:



    xmodmap -e "keycode 50 = Shift_Lock"



    use "xev" to get the correct keycode.



    Just add the command inside the quotes to a file named .Xmodmap and restart X to have the changes permanent.



    Unfortunately, I don't think there is a keycode to Lock the Control, Alt, or Meta keys. If you post a more specific question and add a decent bounty, I may be able to work out a shell script and/or xorg change to make this possible.






    share|improve this answer
























    • Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

      – Macario
      Apr 19 '12 at 21:37











    • XKB is a better way to do this. Check Arch wiki

      – phil pirozhkov
      Jun 1 '14 at 23:17
















    5





    +50









    You can use Xmodmap to set a key lock for the Scroll, Kana, Num, Caps, and Shift keys. Also some ISO groupings keys can be remapped this way. For example, on my keyboard, to set Left Shift as a toggle, use this:



    xmodmap -e "keycode 50 = Shift_Lock"



    use "xev" to get the correct keycode.



    Just add the command inside the quotes to a file named .Xmodmap and restart X to have the changes permanent.



    Unfortunately, I don't think there is a keycode to Lock the Control, Alt, or Meta keys. If you post a more specific question and add a decent bounty, I may be able to work out a shell script and/or xorg change to make this possible.






    share|improve this answer
























    • Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

      – Macario
      Apr 19 '12 at 21:37











    • XKB is a better way to do this. Check Arch wiki

      – phil pirozhkov
      Jun 1 '14 at 23:17














    5





    +50







    5





    +50



    5




    +50





    You can use Xmodmap to set a key lock for the Scroll, Kana, Num, Caps, and Shift keys. Also some ISO groupings keys can be remapped this way. For example, on my keyboard, to set Left Shift as a toggle, use this:



    xmodmap -e "keycode 50 = Shift_Lock"



    use "xev" to get the correct keycode.



    Just add the command inside the quotes to a file named .Xmodmap and restart X to have the changes permanent.



    Unfortunately, I don't think there is a keycode to Lock the Control, Alt, or Meta keys. If you post a more specific question and add a decent bounty, I may be able to work out a shell script and/or xorg change to make this possible.






    share|improve this answer













    You can use Xmodmap to set a key lock for the Scroll, Kana, Num, Caps, and Shift keys. Also some ISO groupings keys can be remapped this way. For example, on my keyboard, to set Left Shift as a toggle, use this:



    xmodmap -e "keycode 50 = Shift_Lock"



    use "xev" to get the correct keycode.



    Just add the command inside the quotes to a file named .Xmodmap and restart X to have the changes permanent.



    Unfortunately, I don't think there is a keycode to Lock the Control, Alt, or Meta keys. If you post a more specific question and add a decent bounty, I may be able to work out a shell script and/or xorg change to make this possible.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Apr 18 '12 at 19:42









    gogatorsgogators

    1,113612




    1,113612













    • Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

      – Macario
      Apr 19 '12 at 21:37











    • XKB is a better way to do this. Check Arch wiki

      – phil pirozhkov
      Jun 1 '14 at 23:17



















    • Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

      – Macario
      Apr 19 '12 at 21:37











    • XKB is a better way to do this. Check Arch wiki

      – phil pirozhkov
      Jun 1 '14 at 23:17

















    Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

    – Macario
    Apr 19 '12 at 21:37





    Unfortunatelly I haven't got any more points to offer, I really am missing sticky modifiers as in cntrl, window, alt, meta...

    – Macario
    Apr 19 '12 at 21:37













    XKB is a better way to do this. Check Arch wiki

    – phil pirozhkov
    Jun 1 '14 at 23:17





    XKB is a better way to do this. Check Arch wiki

    – phil pirozhkov
    Jun 1 '14 at 23:17











    0














    One way to enable sticky keys is to press the StickyKeys_Enable key. If you don’t have it mapped to your keyboard you can simulate the keypress with e.g. Xdotool:



    > xdotool key StickyKeys_Enable





    share|improve this answer




























      0














      One way to enable sticky keys is to press the StickyKeys_Enable key. If you don’t have it mapped to your keyboard you can simulate the keypress with e.g. Xdotool:



      > xdotool key StickyKeys_Enable





      share|improve this answer


























        0












        0








        0







        One way to enable sticky keys is to press the StickyKeys_Enable key. If you don’t have it mapped to your keyboard you can simulate the keypress with e.g. Xdotool:



        > xdotool key StickyKeys_Enable





        share|improve this answer













        One way to enable sticky keys is to press the StickyKeys_Enable key. If you don’t have it mapped to your keyboard you can simulate the keypress with e.g. Xdotool:



        > xdotool key StickyKeys_Enable






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 11 hours ago









        GuildensternGuildenstern

        1053




        1053























            -1














            As far as I know, Xorg doesn't support this. It's not inconceivable for a custom keyboard driver to implement this, but I have never come across such a thing.






            share|improve this answer
























            • Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

              – Macario
              Apr 16 '12 at 5:22


















            -1














            As far as I know, Xorg doesn't support this. It's not inconceivable for a custom keyboard driver to implement this, but I have never come across such a thing.






            share|improve this answer
























            • Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

              – Macario
              Apr 16 '12 at 5:22
















            -1












            -1








            -1







            As far as I know, Xorg doesn't support this. It's not inconceivable for a custom keyboard driver to implement this, but I have never come across such a thing.






            share|improve this answer













            As far as I know, Xorg doesn't support this. It's not inconceivable for a custom keyboard driver to implement this, but I have never come across such a thing.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Apr 15 '12 at 21:58









            mkaitomkaito

            1,2661915




            1,2661915













            • Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

              – Macario
              Apr 16 '12 at 5:22





















            • Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

              – Macario
              Apr 16 '12 at 5:22



















            Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

            – Macario
            Apr 16 '12 at 5:22







            Mmm... I would really like to have this without having to resort to Gnome or XFCE... bummer!

            – Macario
            Apr 16 '12 at 5:22




















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f410657%2fenabling-sticky-keys-under-xorg-awesome-desktop-manager%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...