Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Mint Debian with a Logitech wireless keyboard, it got volume control hot keys and worked on both windows and Linux. I understand the hotkeys are simply keys combinations I should be able to simulate on any keyboard. I tried few combinations I found on the internet but none worked, wonder if anyone knows how to go that, or if it is possible.
You need to be a bit clearer. Are you saying that the keyboard actually has dedicated keys for volume which worked in one distro and don't work in Debian? If so, Debian has forgotten to set the shortcuts (they forget a lot of things!) and you need to do it yourself. If you are using the Gnome desktop, here are the instructions: https://help.gnome.org/users/gnome-h...ts-set.html.en
You need to be a bit clearer. Are you saying that the keyboard actually has dedicated keys for volume which worked in one distro and don't work in Debian? If so, Debian has forgotten to set the shortcuts (they forget a lot of things!) and you need to do it yourself. If you are using the Gnome desktop, here are the instructions: https://help.gnome.org/users/gnome-h...ts-set.html.en
No, I mean hotkeys are actually keys combination should be able to produce on any keyboard, unless there are codes not included on a standard keyboard. The keyboard I am using is a Logitech K400+, it got hotkeys for volume control and worked on both windows and Debian, so that if I know the keys combination I should be able to do the same thing on any keyboard, may be I need a s/w to read the hotkey codes on the Logitech.
I'm sorry, but I'm still sure I understand you! Are you asking how to get the equivalent of volume keys on a keyboard that doesn't have them? In that case, you would select suitable combinations (perhaps Super - and Super +) and use the keyboard shortcut editor to attach them to the commands
I'm sorry, but I'm still sure I understand you! Are you asking how to get the equivalent of volume keys on a keyboard that doesn't have them? In that case, you would select suitable combinations (perhaps Super - and Super +) and use the keyboard shortcut editor to attach them to the commands
Code:
amixer set Master 10%+
amixer set Master 10%-
Sorry can't get it, could you give more detail, I suppose no extra code needed if we know the right combinations, as the same volume control hotkeys are supported on both Windows and most Linux distro, just need the right combinations to trigger that, tnx !
I'm sorry, but I'm still sure I understand you! Are you asking how to get the equivalent of volume keys on a keyboard that doesn't have them? In that case, you would select suitable combinations (perhaps Super - and Super +) and use the keyboard shortcut editor to attach them to the commands
Code:
amixer set Master 10%+
amixer set Master 10%-
I found an app "key-mon" that can display the key press, but only the actual key press not the hex code of it, so that if I press volume up it shows "Vol+" that's not what I wanted, still trying to find one that will show the codes. I know I can customize Linux to use any keys combination for volume control, but it is best if I know the codes to the hotkeys so that I can do it with any keyboard on any supported distro, or the hotkeys are not available in combinations but a unique code to use.
I found the answer ! there's a built in app "showkey" to display the "scancode" of a standard keyboard in hex mode, simply issue the command "showkey -a" on terminal and press some keys to see the codes, nothing shown when press the hotkeys, so we can't emulate the hotkeys with a standard keyboard they are not standard codes, full stop !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.