You are not logged in.

#1 2012-03-12 16:45:48

mynameisneo
Member
Registered: 2011-11-25
Posts: 45

XStringtoKeySym() in Skippy-xd

Skippy-xd allows  one to set the keysym to "expose" windows with anything that XStringtoKeySym() can handle. Single key keysyms such as "F11" work as they are mapped in /usr/include/X11/keysymdef.h. However, I would l like to create a key combo such as Alt+grave or Alt+Tab as my skippy-xd keysym, but I'm not sure how to do this.

Offline

#2 2012-03-14 03:28:37

mynameisneo
Member
Registered: 2011-11-25
Posts: 45

Re: XStringtoKeySym() in Skippy-xd

Any ideas?

Offline

#3 2013-10-26 23:51:51

Ikem
Member
Registered: 2012-08-10
Posts: 10
Website

Re: XStringtoKeySym() in Skippy-xd

I made a feature request here.

Last edited by Ikem (2013-10-27 00:00:16)

Offline

#4 2013-10-27 00:34:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: XStringtoKeySym() in Skippy-xd

I'm not familiar with Skippy-xd.  I may take a look in a moment to see if I find the relevant lines to patch so a patch can be submitted with the request.

But I can say that there isn't anything that can be passed to XStringToKeysym to represent a modifier key and key combination*.  Modifier key masks are independent of keysyms.  When programs allow for binding of modifiers and keys, such as in "bind alt F11   somefunction", only the "F11" string is passed through the XStringToKeysym function, the "alt" must be processed separately when parsing the key-binding string.  This is not at all hard to do, and I'd be surprised if it isn't alreayd built in somehow - but it just won't be via that XStringToKeysym function.

* note, one exception would be if you did some global remapping of keys so Alt-Tab actually sent a different key code - but this does not seem practical nor relevant to the topic at hand.

EDIT: having only briefly looked at the code, the relevant line to patch would be line 358 of skippy.c.  To make this easily configurable by the user, it would take a few extra lines, but if you want to "hardcode" it to use Alt+key combinations, just use whatever mechanism you already know to set it to use "Tab" (which will go through the XStringToKeysym function) and modify line 358 to change "AnyModifier" to "Mod1Mask".

Last edited by Trilby (2013-10-27 00:40:28)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-11-14 10:16:08

icarito
Member
Registered: 2013-02-15
Posts: 2

Re: XStringtoKeySym() in Skippy-xd

This is properly fixed in git: https://github.com/richardgv/skippy-xd

There is a package in AUR, skippy-xd-git. This was driving me crazy as I couldn't find any available hotkey.

Now I'm happy using alt-esc.

Regards,
Sebastian

Offline

Board footer

Powered by FluxBB