I also did set up a keymapping file to clear up some confusion the machine had over the Fn key (sometimes keymapping got messed up between, say, solely pressing “F10” and pressing “Fn+F10”). It seems I just needed to install a couple of alsa packages to be able to use the amixer program in the script (initially I was worried that this might mess up the pulseaudio setup, but everything seems well – I just installed alsa-utils). I did finally figure out how to get audio control bound to the keys (specifically to F10, F11, and F12). If I set up XFCE4 I’ll be sure to include the xfce4-panel-plugin-pulseaudio package. Mapping keycodes using xmodmap should be IMHO the next steps to do. Have you done what is suggested in etc/icewm/keys? # "Multimedia key" bindings for XFree86. Key "XF86Calculator" /bin/sh -c "gnome-calculator || xcalc || ( type bc >/dev/null 2>&1 & xterm -e bc -l)"Ĭustom keybindings can be set per user on $HOME/.icewm/keys Key "XF86AudioRaiseVolume" amixer sset PCM 5%+ Key "XF86AudioLowerVolume" amixer sset PCM 5%. # pressing those keys and map those symbols by using xmodmap. # advanced function keys by watching the output of the xev command whilest Key "Super+KP_Subtract" amixer sset PCM 5%. Valid modifiers are Alt, Ctrl, Shift, Meta, Super and Hyper. # You'll have to omit XK_ prefixs and to replace XF86XK_ prefixes by # /usr/include/X11/keysym.h, keysymdefs.h, XF86keysym.h. # A list of all valid keyboard symbols can be found in # since modifications to this file will be discarded when you # Place your variants in or in $HOME/.icewm # This is an example for IceWM's hotkey definition file. How did you set iceWM keys configuration? Briefly looked at iceWM’s documentation, there’s /etc/icewm/keys which configure globally some keybindings for that WM: cat /etc/icewm/keys I’m afraid I’m of no help there as I don’t use iceWM but a DE (xfce 4.14) on which all of the multimedia keys are working right out of the box. It’s odd that it briefly worked yesterday. That suggests that in my key binding code, I could use “F10” (or “0xffc7”) and then get the mute result via pressing fn+F10, yet this does not work. State 0x0, keycode 76 (keysym 0xffc7, F10), same_screen YES, Now, when I press fn+F10, I get the following: I’m not sure why, but at that point it was working, and pressing these keys actually did change the volume. That was happening for a time yesterday too, but then suddenly it started giving results similar to F1 and the other function keys. KeymapNotify event, serial 41, synthetic NO, window 0x0, But, F10, F11, and F12 give the following result:įocusOut event, serial 41, synthetic NO, window 0x3200001,įocusIn event, serial 41, synthetic NO, window 0x3200001, The function keys from F2 to F9 are similar. State 0x0, keycode 232 (keysym 0x1008ff03, XF86MonBrightnessDown), same_screen YES, KeyPress event, serial 41, synthetic NO, window 0x3200001, I get the following when I run xev (I’ll first show an example for F1): Yet, the volume keys that I set up yesterday do not work. In doing the checks which you outlined, I do get the localectl status Yesterday I did get the F10, F11, and F12 keys to mute, decrease volume, and increase volume respectively. Sudo localectl set-x11-keymap -no-convert apple mac If your keyboard has a different mapping than french, you can choose something else with the help of localectl(1).įor the console and the display manager: localectl list-keymaps Use localectl(1) toĬall to dracut(8) is important as this make those settings permanent across reboots by regenerating the initramfs with new keyboard layout. # probably wise not to edit this file manually. # Written by systemd-localed(8), read by systemd-localed and Xorg. This sets for the console and LightDM: localectl statusĪnd for X sessions: cat /etc/X11//nf Localectl set-x11-keymap -no-convert fr apple mac As YaST keyboard utility doesn’t correctly set layout and for those who still struggle by setting keyboard layout on both console, display manager and X on Apple’s MacBook Pro (may works on regulars MacBook too but not tested) and make it permanent, make the following steps (this is for TW and Leap 15.2 with LightDM as the display manager): sudo -s
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |