Mapping win+n to Prior(PageUp) on X and/or i3Using Numpad with Modifier Keys exhibits curious behaviorcan you show me some example for the Keymap.js,(The Definitive Guide)?How do I keep a key pressed using CGEventPost in C++ on OSX?Simulating a key press event in Python 2.7What's the modern equivalent of GetKeys() in Cocoa?Detect key(s) held down in another processLosing key-up event on OS Xxdotool commands bound to key shortcuts doesnot workCannot read held state of key in WPF inside mouse event handler - Inconsistent behaviour in Windows guest on VMWare Fusion for MacHow do I send shift+down using winapi c++?

What Is the Meaning of "you has the wind of me"?

What is the spanish equivalent of "the boys are sitting"?

The 50,000 row query limit is not actually a "per APEX call" as widely believed

Bug in Lualatex: not printing characters from calculation

Are symplectomorphisms of Weil–Petersson symplectic form induced from surface diffeomorphisms?

Found more old paper shares from broken up companies

Historicity doubted by Romans

Is it possible to be an intellectual/do research without the internet?

Why did modems have speakers?

What the purpose of the fuel shutoff valve?

When were "acrobatics" introduced at weddings?

Other than a swing wing, what types of variable geometry have flown?

How to write a sincerely religious protagonist without preaching or affirming or judging their worldview?

What is an Eternal Word™?

Why are there not any MRI machines available in Interstellar?

What exactly makes a General Products hull nearly indestructible?

How can the artificial womb be made affordable for the common people?

Sci-fi short story: plants attracting spaceship and using them as a agents of pollination between two planets

Extrapolation v. Interpolation

Monty Hall Problem with a Fallible Monty

How can I make sure my players' decisions have consequences?

Character Frequency in a String

Is there a way to shorten this while condition?

How could an engineer advance human civilization by time traveling to the past?



Mapping win+n to Prior(PageUp) on X and/or i3


Using Numpad with Modifier Keys exhibits curious behaviorcan you show me some example for the Keymap.js,(The Definitive Guide)?How do I keep a key pressed using CGEventPost in C++ on OSX?Simulating a key press event in Python 2.7What's the modern equivalent of GetKeys() in Cocoa?Detect key(s) held down in another processLosing key-up event on OS Xxdotool commands bound to key shortcuts doesnot workCannot read held state of key in WPF inside mouse event handler - Inconsistent behaviour in Windows guest on VMWare Fusion for MacHow do I send shift+down using winapi c++?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I want to map a key combination Win+n (or Mod4+n) to a single key event "Prior" (also called PageUp) and that "Prior" is cleared of any modifiers.



I am already deep down in the rapidhole, so only an actual working solution is of any value to me.



It seems that I am not able to clear the modifier somehow. I added the following line to my .i3/config file.



bindsym $mod+n exec xdotool key --clearmodifiers Prior


But this won't emulate the "Prior" key event properly. Though, if i execute xdotool from a shell and test it with firefox, holding down the Windows key, it works. So my xdotool command only doesn't work in the context when called from i3.



sleep 3 && xdotool key --clearmodifiers Prior
# switch to Firefox window, hold down Windows -> page is scrolled up


I also tried xbindkeys,... I have the same issue there as well.










share|improve this question




























    0















    I want to map a key combination Win+n (or Mod4+n) to a single key event "Prior" (also called PageUp) and that "Prior" is cleared of any modifiers.



    I am already deep down in the rapidhole, so only an actual working solution is of any value to me.



    It seems that I am not able to clear the modifier somehow. I added the following line to my .i3/config file.



    bindsym $mod+n exec xdotool key --clearmodifiers Prior


    But this won't emulate the "Prior" key event properly. Though, if i execute xdotool from a shell and test it with firefox, holding down the Windows key, it works. So my xdotool command only doesn't work in the context when called from i3.



    sleep 3 && xdotool key --clearmodifiers Prior
    # switch to Firefox window, hold down Windows -> page is scrolled up


    I also tried xbindkeys,... I have the same issue there as well.










    share|improve this question
























      0












      0








      0


      1






      I want to map a key combination Win+n (or Mod4+n) to a single key event "Prior" (also called PageUp) and that "Prior" is cleared of any modifiers.



      I am already deep down in the rapidhole, so only an actual working solution is of any value to me.



      It seems that I am not able to clear the modifier somehow. I added the following line to my .i3/config file.



      bindsym $mod+n exec xdotool key --clearmodifiers Prior


      But this won't emulate the "Prior" key event properly. Though, if i execute xdotool from a shell and test it with firefox, holding down the Windows key, it works. So my xdotool command only doesn't work in the context when called from i3.



      sleep 3 && xdotool key --clearmodifiers Prior
      # switch to Firefox window, hold down Windows -> page is scrolled up


      I also tried xbindkeys,... I have the same issue there as well.










      share|improve this question














      I want to map a key combination Win+n (or Mod4+n) to a single key event "Prior" (also called PageUp) and that "Prior" is cleared of any modifiers.



      I am already deep down in the rapidhole, so only an actual working solution is of any value to me.



      It seems that I am not able to clear the modifier somehow. I added the following line to my .i3/config file.



      bindsym $mod+n exec xdotool key --clearmodifiers Prior


      But this won't emulate the "Prior" key event properly. Though, if i execute xdotool from a shell and test it with firefox, holding down the Windows key, it works. So my xdotool command only doesn't work in the context when called from i3.



      sleep 3 && xdotool key --clearmodifiers Prior
      # switch to Firefox window, hold down Windows -> page is scrolled up


      I also tried xbindkeys,... I have the same issue there as well.







      keyboard xorg keymapping xmodmap i3






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 15:18









      aurelaurel

      11 bronze badge




      11 bronze badge






















          1 Answer
          1






          active

          oldest

          votes


















          0














          bindsym $mod+n exec "xdotool keyup n; xdotool key --clearmodifiers Prior;"


          you also need to send keyup event for your keybinding and modifier. in this case we need keyup n and --clearmodifiers on the second command.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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%2fstackoverflow.com%2fquestions%2f55360641%2fmapping-winn-to-priorpageup-on-x-and-or-i3%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            bindsym $mod+n exec "xdotool keyup n; xdotool key --clearmodifiers Prior;"


            you also need to send keyup event for your keybinding and modifier. in this case we need keyup n and --clearmodifiers on the second command.






            share|improve this answer



























              0














              bindsym $mod+n exec "xdotool keyup n; xdotool key --clearmodifiers Prior;"


              you also need to send keyup event for your keybinding and modifier. in this case we need keyup n and --clearmodifiers on the second command.






              share|improve this answer

























                0












                0








                0







                bindsym $mod+n exec "xdotool keyup n; xdotool key --clearmodifiers Prior;"


                you also need to send keyup event for your keybinding and modifier. in this case we need keyup n and --clearmodifiers on the second command.






                share|improve this answer













                bindsym $mod+n exec "xdotool keyup n; xdotool key --clearmodifiers Prior;"


                you also need to send keyup event for your keybinding and modifier. in this case we need keyup n and --clearmodifiers on the second command.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 4 at 22:03









                George ShalvashviliGeorge Shalvashvili

                3282 silver badges12 bronze badges




                3282 silver badges12 bronze badges
















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f55360641%2fmapping-winn-to-priorpageup-on-x-and-or-i3%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

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript