|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
StickyKeys -esque functionality in CLI?
In X, there's xkbset, which you can use to turn on StickyKeys. StickyKeys, for those unfamiliar, allows the modifier keys (Shift and Ctrl) to 'stick' until the next key press. It's handy for those with accessibility issues, and in my case, for a PC that has a thumb-board as the default text input.
Is there any way to have this same StickyKeys behavior in the terminal? From what I've read, you can change the keymaps with wsconsctl, but it looks like /usr/include/dev/wscons/wsksymdef.h doesn't have a keycode for sticky modifiers, so even if I change the keymap, it may not help. Also, is there a way to see the key event codes as keys are pressed? I would like to make a shortcut key for terminal switching, as the current stroke is a 4 key monstrosity (FN+CTRL+ALT+[1-5]. Thanks in advance~ Last edited by tehsean; 3rd February 2013 at 04:33 AM. Reason: durr- wrong program name |
|
||||
Quote:
In any event, in this thread I reported a way to switch wsconsoles with two keys, as in Alt-F[1-5]. Hopefully it still works in OpenBSD, I haven't tried it lately. Sorry I don't have answers for the other keyboard issues you raised. |
|
|||
Quote:
Thanks for the tip, I'll try this out and see where it gets me. The thumb board on this computer only has one (left) shift key. If I can remap one of the other keys on the right side to shift, that might work as well as sticky keys. On a totally random note, does this board support 'Thanks' points? I see that some people have been thanked, but I don't see a way to mark a thread as 'Thanks'ed. Last edited by tehsean; 3rd February 2013 at 04:32 PM. |
|
|||
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
Sorry to bring this back from the grave, but I wanted to thank IdOp for the great response.
I also wanted to add a bit of information that I found that helped me out. I have successfully changed the Menu key to Shift_R on the Sony Vaio UX with the following: Code:
wsconsctl keyboard.map+="keysym Menu = Shift_R" I originally tried to add the keycode manually. In my case, the thumb board transmits a keycode of 117 for the Menu key (reported by xev). This DID NOT WORK: Code:
wsconsctl keyboard.map+="keycode 117 = Shift_R" The other thing left is to reassign the Delete key to Control_R. From what I've read, this may be harder due to the way that the terminal handles Delete and BackSpace. So far any mappings I have attempted have only managed to break the backspace key in the console. For additional reference, if you DO wind up messing up your keylayout, you can clear the configuration pretty quickly by reassigning the keyboard encoding. In my case, this is US: Code:
wsconsctl keyboard.encoding=us |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Debian checkinstall style functionality for pkg_create command? | sysfu | OpenBSD Packages and Ports | 3 | 29th October 2008 11:06 AM |