How to get a complete list of grabbed keys on Ubuntu 18.04?

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
Context
Modern desktop environment include features to adjust sound volume, interact with media players, and so on.
Here is an incomplete list:
- XF86AudioLowerVolume
- XF86AudioRaiseVolume
- XF86Battery
- XF86Calculator
- XF86Display
- XF86Explorer
- XF86HomePage
- XF86KbdBrightnessDown
- XF86KbdBrightnessUp
- XF86Mail
- XF86Messenger
- XF86MonBrightnessDown
- XF86MonBrightnessUp
- XF86PowerOff
- XF86Sleep
- XF86Suspend
- XF86TouchpadToggle
Need
Sometimes a program already grabs some keys, which prevents proper operation of another. To fix this situation, one has to know which program already grabs the key, and adjust or disable them.
Each desktop environment provides a way to handle key shortcuts, but only theirs, not all keys that are grabbed by any random program connected to the X session.
How can I get a complete list of those grabbed keys on Ubuntu 18.04?
Search before ask
These pages provide hints:
- x11 - Find X.org pointer grab owner - Unix & Linux Stack Exchange
- keyboard - Manipulating X key and pointer grabs on the command line - Unix & Linux Stack Exchange
The problem is: xdotool key XF86LogGrabInfo does not list all keys.
For example, I was in an instance where xfce pulseaudio-plugin grabbed at least 4 media keys, but on XF86LogGrabInfo, Xorg log would only list 3 (example log, does not show XF86AudioPlay, XF86AudioRaiseVolume, XF86AudioLowerVolume,).
xorg shortcut-keys
add a comment |Â
up vote
1
down vote
favorite
Context
Modern desktop environment include features to adjust sound volume, interact with media players, and so on.
Here is an incomplete list:
- XF86AudioLowerVolume
- XF86AudioRaiseVolume
- XF86Battery
- XF86Calculator
- XF86Display
- XF86Explorer
- XF86HomePage
- XF86KbdBrightnessDown
- XF86KbdBrightnessUp
- XF86Mail
- XF86Messenger
- XF86MonBrightnessDown
- XF86MonBrightnessUp
- XF86PowerOff
- XF86Sleep
- XF86Suspend
- XF86TouchpadToggle
Need
Sometimes a program already grabs some keys, which prevents proper operation of another. To fix this situation, one has to know which program already grabs the key, and adjust or disable them.
Each desktop environment provides a way to handle key shortcuts, but only theirs, not all keys that are grabbed by any random program connected to the X session.
How can I get a complete list of those grabbed keys on Ubuntu 18.04?
Search before ask
These pages provide hints:
- x11 - Find X.org pointer grab owner - Unix & Linux Stack Exchange
- keyboard - Manipulating X key and pointer grabs on the command line - Unix & Linux Stack Exchange
The problem is: xdotool key XF86LogGrabInfo does not list all keys.
For example, I was in an instance where xfce pulseaudio-plugin grabbed at least 4 media keys, but on XF86LogGrabInfo, Xorg log would only list 3 (example log, does not show XF86AudioPlay, XF86AudioRaiseVolume, XF86AudioLowerVolume,).
xorg shortcut-keys
Also, the links date back to 2013, and Xorg log is different from described: not "Printing all currently active device grabs:" but "Printing all registered grabs". Also, the trick in the other link withsleep 1does not change output at all. So, information on these links seems outdated, confirming need for some fresher information.
â Stéphane Gourichon
May 29 at 17:26
Other people having similar problems: gnome - Unable to set a shortcut to grab screenshot area - Ask Ubuntu, xorg - Keyboard shortcuts stop working intermittently - Ask Ubuntu
â Stéphane Gourichon
May 29 at 17:40
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Context
Modern desktop environment include features to adjust sound volume, interact with media players, and so on.
Here is an incomplete list:
- XF86AudioLowerVolume
- XF86AudioRaiseVolume
- XF86Battery
- XF86Calculator
- XF86Display
- XF86Explorer
- XF86HomePage
- XF86KbdBrightnessDown
- XF86KbdBrightnessUp
- XF86Mail
- XF86Messenger
- XF86MonBrightnessDown
- XF86MonBrightnessUp
- XF86PowerOff
- XF86Sleep
- XF86Suspend
- XF86TouchpadToggle
Need
Sometimes a program already grabs some keys, which prevents proper operation of another. To fix this situation, one has to know which program already grabs the key, and adjust or disable them.
Each desktop environment provides a way to handle key shortcuts, but only theirs, not all keys that are grabbed by any random program connected to the X session.
How can I get a complete list of those grabbed keys on Ubuntu 18.04?
Search before ask
These pages provide hints:
- x11 - Find X.org pointer grab owner - Unix & Linux Stack Exchange
- keyboard - Manipulating X key and pointer grabs on the command line - Unix & Linux Stack Exchange
The problem is: xdotool key XF86LogGrabInfo does not list all keys.
For example, I was in an instance where xfce pulseaudio-plugin grabbed at least 4 media keys, but on XF86LogGrabInfo, Xorg log would only list 3 (example log, does not show XF86AudioPlay, XF86AudioRaiseVolume, XF86AudioLowerVolume,).
xorg shortcut-keys
Context
Modern desktop environment include features to adjust sound volume, interact with media players, and so on.
Here is an incomplete list:
- XF86AudioLowerVolume
- XF86AudioRaiseVolume
- XF86Battery
- XF86Calculator
- XF86Display
- XF86Explorer
- XF86HomePage
- XF86KbdBrightnessDown
- XF86KbdBrightnessUp
- XF86Mail
- XF86Messenger
- XF86MonBrightnessDown
- XF86MonBrightnessUp
- XF86PowerOff
- XF86Sleep
- XF86Suspend
- XF86TouchpadToggle
Need
Sometimes a program already grabs some keys, which prevents proper operation of another. To fix this situation, one has to know which program already grabs the key, and adjust or disable them.
Each desktop environment provides a way to handle key shortcuts, but only theirs, not all keys that are grabbed by any random program connected to the X session.
How can I get a complete list of those grabbed keys on Ubuntu 18.04?
Search before ask
These pages provide hints:
- x11 - Find X.org pointer grab owner - Unix & Linux Stack Exchange
- keyboard - Manipulating X key and pointer grabs on the command line - Unix & Linux Stack Exchange
The problem is: xdotool key XF86LogGrabInfo does not list all keys.
For example, I was in an instance where xfce pulseaudio-plugin grabbed at least 4 media keys, but on XF86LogGrabInfo, Xorg log would only list 3 (example log, does not show XF86AudioPlay, XF86AudioRaiseVolume, XF86AudioLowerVolume,).
xorg shortcut-keys
asked May 29 at 16:59
Stéphane Gourichon
1,2951427
1,2951427
Also, the links date back to 2013, and Xorg log is different from described: not "Printing all currently active device grabs:" but "Printing all registered grabs". Also, the trick in the other link withsleep 1does not change output at all. So, information on these links seems outdated, confirming need for some fresher information.
â Stéphane Gourichon
May 29 at 17:26
Other people having similar problems: gnome - Unable to set a shortcut to grab screenshot area - Ask Ubuntu, xorg - Keyboard shortcuts stop working intermittently - Ask Ubuntu
â Stéphane Gourichon
May 29 at 17:40
add a comment |Â
Also, the links date back to 2013, and Xorg log is different from described: not "Printing all currently active device grabs:" but "Printing all registered grabs". Also, the trick in the other link withsleep 1does not change output at all. So, information on these links seems outdated, confirming need for some fresher information.
â Stéphane Gourichon
May 29 at 17:26
Other people having similar problems: gnome - Unable to set a shortcut to grab screenshot area - Ask Ubuntu, xorg - Keyboard shortcuts stop working intermittently - Ask Ubuntu
â Stéphane Gourichon
May 29 at 17:40
Also, the links date back to 2013, and Xorg log is different from described: not "Printing all currently active device grabs:" but "Printing all registered grabs". Also, the trick in the other link with
sleep 1 does not change output at all. So, information on these links seems outdated, confirming need for some fresher information.â Stéphane Gourichon
May 29 at 17:26
Also, the links date back to 2013, and Xorg log is different from described: not "Printing all currently active device grabs:" but "Printing all registered grabs". Also, the trick in the other link with
sleep 1 does not change output at all. So, information on these links seems outdated, confirming need for some fresher information.â Stéphane Gourichon
May 29 at 17:26
Other people having similar problems: gnome - Unable to set a shortcut to grab screenshot area - Ask Ubuntu, xorg - Keyboard shortcuts stop working intermittently - Ask Ubuntu
â Stéphane Gourichon
May 29 at 17:40
Other people having similar problems: gnome - Unable to set a shortcut to grab screenshot area - Ask Ubuntu, xorg - Keyboard shortcuts stop working intermittently - Ask Ubuntu
â Stéphane Gourichon
May 29 at 17:40
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1041648%2fhow-to-get-a-complete-list-of-grabbed-keys-on-ubuntu-18-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
Also, the links date back to 2013, and Xorg log is different from described: not "Printing all currently active device grabs:" but "Printing all registered grabs". Also, the trick in the other link with
sleep 1does not change output at all. So, information on these links seems outdated, confirming need for some fresher information.â Stéphane Gourichon
May 29 at 17:26
Other people having similar problems: gnome - Unable to set a shortcut to grab screenshot area - Ask Ubuntu, xorg - Keyboard shortcuts stop working intermittently - Ask Ubuntu
â Stéphane Gourichon
May 29 at 17:40