You are not logged in.

#1 2022-12-08 22:49:18

prayner96
Member
Registered: 2022-03-06
Posts: 68

Only multimedia keys won't change using .Xmodmap

Laptop: Lenovo ideapad Slim 7i Pro
Dual booting w/ W11.=
WM: Qtile
No KDE installed.
Using X11

I created a .Xmodmap file for some keys that don't work on my laptop's built-in keyboard. I used `xev` to get the keycodes:

keycode 199 = Down
keycode	233 = XF86MonBrightnessUp
keycode 232 = XF86MonBrightnessDown
keycode 122 = XF86AudioLowerVolume
keycode 123 = XF86AudioRaiseVolume
keycode 121 = XF86AudioMute
keycode 220 = Delete
keycode 133 = Print

Only  the Down and Delete keys worked successfully after implementing this config file, though it was only after executing:

xmodmap ~/.Xmodmap

I want to get the remaining keys to work.
`xmodmap -pke` shows no difference for the Down and Delete keycodes, I assume that partly shows that the changes are not permanent.

On my external keyboard (ergodox ez), the down and delete keys work, but the brightness and sound keys do not affect the system. Perhaps this means that I need to explicitly call a command when the XF86 keysyms are pressed, maybe using sxhkd. 

Additional information:
I have the following line in my .bashrc

setxkbmap "us,us" -variant "intl,colemak_dh" -option grp:lctrl_lwin_toggle

Resources:
https://wiki.archlinux.org/title/Xmodmap_

Last edited by prayner96 (2022-12-08 22:50:01)

Offline

#2 2022-12-09 08:38:31

seth
Member
Registered: 2012-09-03
Posts: 51,071

Re: Only multimedia keys won't change using .Xmodmap

this means that I need to explicitly call a command when the XF86 keysyms are pressed, maybe using sxhkd

https://wiki.archlinux.org/title/Qtile#Keys

Offline

Board footer

Powered by FluxBB