DreymaR / BigBagKbdTrixXKB

"DreymaR's Big Bag of Keyboard Tricks" for *nix with XKB
MIT License
200 stars 39 forks source link

setxkb.sh disables most F1 - F12 keys in all apps, but any modifier(s) + (F1 - F12) keys are working fine #22

Open DadangSudadang opened 2 years ago

DadangSudadang commented 2 years ago

As the title says, setting setxkb,sh makes most F1 - F12 keys doesn't work (e.g. F5 to refresh), but any modifiers + (F1 - F12) key combos (e.g. Alt+F4) work fine everywhere.

I executed the script using setxkb,sh 4n us us, and using the command written automatically in the .bashrc: setxkbmap -model 'pc104' -layout 'us(cmk_ed_us)' -option 'misc:extend,lv5:caps_switch_lock,grp:shifts_toggle,compose:menu

Both always make this problem appear in both of my machines.

My machines are currently running:

Any suggestions on where to look for?

DreymaR commented 2 years ago

I don't know exactly why that happens to you, but if you wish you can comment out all the F# key lines in the symbols/extend file in the BigBag (the one that's installed, or you'll have to reinstall it) and restart the X server. Use the setxkb.sh script to ensure your server is refreshed if you don't know how to do it manually. Then you should have lost the Extend mappings for the multimedia keys, but regained your F key functionality.

DadangSudadang commented 2 years ago

That works. Unfortunately I'd love to have multimedia keys, but I can find another way to do so. Thanks!

DreymaR commented 2 years ago

I'll keep this in mind and see if I can figure it out eventually.