Skip to main content

Timeline for How to detect global key presses

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Mar 1, 2023 at 2:52 comment added Garen what if the scancode is empty? showkey --scancodes is empty for some of the new X1 thinkpad multimedia keys
Jun 14, 2018 at 6:07 comment added Post Self Wow, the power button has its own key code! (XF86PowerOff)
Mar 21, 2014 at 12:38 vote accept Ionică Bizău
Mar 21, 2014 at 5:22 comment added slm @IonicăBizău - see updates.
Mar 21, 2014 at 5:22 history edited slm CC BY-SA 3.0
added 392 characters in body
Mar 21, 2014 at 4:49 comment added Ionică Bizău @slm I used Ubuntu built-in key shortcut settings and added a shortcut to my button. Can you add please this information in your answer?
Mar 19, 2014 at 4:58 comment added slm @IonicăBizău - killall kills the xbindkeys process. After killing it you're restarting xbindkeys.
Mar 19, 2014 at 4:40 comment added Ionică Bizău @slm :-) Ok, and why aren't my key presses detected globally by killall?
Mar 18, 2014 at 23:23 comment added slm @IonicăBizău - no my username on my laptop is saml. My name is sam and I always suffix user accounts with an l to denote that it's local to the system. My username on SE sites is slm. These are my initials, which was traditionally what one would use to create user accounts on Unix. Or they'd use the first 2 letter from your 1st and middle names followed by 6 letters from your last name.
Mar 18, 2014 at 23:17 comment added Gilles 'SO- stop being evil' In some cases (but not here it turns out), the key's scan code needs to be declared to the kernel. I thought we had a question about that but I can't find it now.
Mar 18, 2014 at 19:41 comment added Ionică Bizău Is saml a typo (your username is sml)? :-) Also, I guess you mean xbindkeys --defaults > ~/.xbindkeysrc. Right? For the special button xev outputs 248 NoSymbol. I tried to set a nautilus start when NoSymbol is pressed but nothing is happening. I restarted xbindkeys process.
Mar 18, 2014 at 15:51 comment added slm Probably. xev is just to detect what the key's scan code is. xbindkeys will catch this key when pressed globally and do something when this happens.
Mar 18, 2014 at 14:39 comment added Ionică Bizău Very useful. Is it possible to create a little C++ application do detect these key presses, like xev does? But it seems that xev doesn't detect my key presses globally. It only prints in console when the opened window is focused.
Mar 18, 2014 at 12:18 history answered slm CC BY-SA 3.0