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;
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
add a comment |
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
add a comment |
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
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
keyboard xorg keymapping xmodmap i3
asked Mar 26 at 15:18
aurelaurel
11 bronze badge
11 bronze badge
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Apr 4 at 22:03
George ShalvashviliGeorge Shalvashvili
3282 silver badges12 bronze badges
3282 silver badges12 bronze badges
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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