Numpad hotkeys on linux: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Making numpad hotkeys on linux is a bit more tricky than it is on windows due to the critical lack of autohotkey ;-;
Making numpad hotkeys on linux is a bit more tricky than it is on windows due to the critical lack of autohotkey
<hr>
<hr>


You'll need xmodmap, I created a file like this:


~/.Xmodmap:


<code>keycode 90 = Hyper_R</code>
You'll need xmodmap, you can use it like this:


<code>xmodmap -e 'keycode 90 = Hyper_R'</code>


You can use XCape to allow the modifier keys to send actions on their own.
sudo apt install xcape
xcape -e 'Hyper_R=0'
keyd is an excellent way to make hotkeys as well.
I've started work on porting my numpad hotkey script to python so it can work on linux: [[clipboardbuffers.py]]
<hr>
Resources
<hr>
https://wiki.archlinux.org/title/Xmodmap#Installation
https://github.com/alols/xcape
https://github.com/alols/xcape
https://github.com/rvaiya/keyd
https://lars.ingebrigtsen.no/2024/04/28/the-simplest-thing-in-the-world-modifing-keymaps-in-wayland/

Latest revision as of 06:01, 4 January 2025

Making numpad hotkeys on linux is a bit more tricky than it is on windows due to the critical lack of autohotkey



You'll need xmodmap, you can use it like this:

xmodmap -e 'keycode 90 = Hyper_R'

You can use XCape to allow the modifier keys to send actions on their own.

sudo apt install xcape
xcape -e 'Hyper_R=0'

keyd is an excellent way to make hotkeys as well.


I've started work on porting my numpad hotkey script to python so it can work on linux: clipboardbuffers.py



Resources


https://wiki.archlinux.org/title/Xmodmap#Installation https://github.com/alols/xcape https://github.com/rvaiya/keyd https://lars.ingebrigtsen.no/2024/04/28/the-simplest-thing-in-the-world-modifing-keymaps-in-wayland/