alols
d5b4bbdee0
Merge pull request #23 from davidshepherd7/master
...
Improve instructions for emulating space2ctrl in readme
2013-11-25 23:52:32 -08:00
David Shepherd
a58beb5569
Improve instructions for emulating space2ctrl in readme
...
In my old approach I bound space to a brand new keysym. This works well for
most programs but not for emacs! The problem is that emacs tries to warn
you when you press unbound keys, which causes slowdowns and odd behaviour.
The solution is to instead bind space to some unused modifier key that will
be recognised and ignored by emacs. I've found that "Hyper_L" works nicely.
2013-11-09 22:51:28 +00:00
alols
82014c8436
Merge pull request #22 from davidshepherd7/master
...
Additions to readme and debugging output during keymap creation
2013-09-26 11:42:40 -07:00
David Shepherd
51840b931e
Add example: make space generate ctrl if held
2013-09-25 23:17:13 +01:00
David Shepherd
efb3292a58
Revert "Change to using KeySyms rather than keycodes to store to-keys"
...
This reverts commit b1f0a0601b .
2013-09-25 23:00:51 +01:00
David Shepherd
08992b45d6
Modify readme to explain how to generate button presses with shift
2013-09-25 22:57:13 +01:00
David Shepherd
7ec9ffd5fa
Convert numbered lists in readme to proper markdown lists
2013-09-25 22:06:05 +01:00
David Shepherd
b1f0a0601b
Change to using KeySyms rather than keycodes to store to-keys
...
Modify all code to store and manipulate KeySyms instead of KeyCodes for
output key data.
Incomplete in two places (both also noted by comments in the code):
* When creating the additional key press events I have not yet implemented
the switch to using `XSendEvent` rather than `XTestFakeKeyEvent`. Instead
I just convert back to a keycode assuming zero shift level and
group. This gives the same behaviour as before.
* When checking that an event is not one that we generated I haven't managed
to figure out how to get the keysym of the event from the data provided
by X. Instead I compare the key codes for now, which will work until the
above issue is fixed.
2013-09-25 00:36:30 +01:00
David Shepherd
9c460f46c7
Add debugging output in key map creation
...
Requires the addition of a debug flag to `parse_mapping` and `parse_token`.
For some reason there is no declaration of the function `parse_token`. I'm
not sure why so I won't add it.
2013-09-25 00:26:03 +01:00
joetw
39aa08c5da
Merge pull request #19 from joetw/keycode_in_mapexpression
...
Closes #17 : Allowing keycodes in map expressions
2013-05-14 04:13:59 -07:00
joetw
58d973848a
Readme: minor cleanup
2013-05-14 13:00:56 +02:00
joetw
65197d93d2
Readme cleared up a little
2013-05-12 18:16:14 +02:00
joetw
478e6077c5
'#'-prefix syntax
2013-05-11 21:42:46 +02:00
joetw
19740b571f
A bit more robust. Readme.
2013-05-10 22:49:55 +02:00
joetw
6829bf3d30
minor cleanup
2013-05-10 18:49:00 +02:00
joetw
9b6733cf18
[ #17 ]: Allowing keycodes in map expressions.
2013-05-09 23:18:49 +02:00
alols
6644670090
Merge pull request #14 from rkj/master
...
Please pull small bugfix/checking of initial conditions
2013-02-03 02:47:46 -08:00
Roman Kamyk
82debc8d67
Fixed broken escape char
2013-01-31 17:32:05 -08:00
Roman Kamyk
a036bc5c9f
Added gitignore
2013-01-31 17:31:54 -08:00
Roman Kamyk
4932b18a67
Introduced check if XOpenDisplay is successful. It fails when DISPLAY is not set in ENV,
...
and caused segfault on later invocations that used self->data_conn or self->ctrl_conn.
2013-01-31 17:00:57 -08:00
Albin Olsson
b8b353c43b
Fix debug message
2012-12-14 18:30:23 +01:00
alols
2fa52dca29
Merge pull request #13 from otommod/master
...
Changed to use XkbKeycodeToKeysym
2012-12-14 09:20:45 -08:00
Otto Modinos
c0621e486c
changed to use XkbKeycodeToKeysym
...
It looks like XKeycodeToKeysym is depreceated, so use the Xkb one instead
2012-12-14 13:21:50 +02:00
alols
b1b44f8d47
Merge pull request #12 from DexterTheDragon/master
...
Add pkg-config to build instructions in readme
2012-11-15 00:27:41 -08:00
Kevin Carter
41fd66988f
Add pkg-config to list of dependencies to install
2012-11-13 12:05:55 -07:00
alols
039231d887
Merge pull request #10 from calmofthestorm/master
...
Fixed crash in handle_key when no keycode is found for a selected keysym
2012-11-05 23:07:45 -08:00
Alex Roper
c5ff58dc47
Added warning to README
2012-10-25 16:05:24 -04:00
Alex Roper
ce1dde140c
Fixed crash when there is no keycode associated with the to of a mapping's keysym.
2012-10-25 15:49:51 -04:00
alols
2b159f4d7b
Merge pull request #9 from calmofthestorm/master
...
Fix issue where it runs anyway if no non-nop mappings given and adds warning for nop mappings
2012-10-25 11:48:13 -07:00
Alex Roper
071788b544
Fixed issue where when given an invalid map like 'Control_L' or 'Control_L=Escape;Control_R' it would add a mapping from that key to NULL list of to keys. Now it will simply skip over the mapping with no to and print a WARNING that the statement has no effect to stderr. Also, where before if only nop mappings were provided the program would still run/fork into the background; it now will only run if at least one mapping with an effect is provided.
2012-10-25 14:16:31 -04:00
Albin Olsson
b5754220b1
Fix uninitialized pointer.
2012-10-25 13:29:43 +02:00
Albin Olsson
5cae420de3
Update documentation.
2012-10-25 13:08:57 +02:00
Albin Olsson
3f5fea67b2
Better debug output.
2012-10-22 00:42:25 +02:00
Albin Olsson
0396399d74
Don't deamonize until parse was successful.
2012-10-22 00:00:31 +02:00
Albin Olsson
9c82999693
Make timeout configurable.
2012-10-21 17:12:19 +02:00
Albin Olsson
02cba592cf
Fix recursive mapping problem.
2012-10-21 16:37:19 +02:00
Albin Olsson
3def877795
More pedantery
2012-10-21 14:51:59 +02:00
Albin Olsson
c08fb06ead
Pedantic reformatting of code. No real change.
2012-10-21 13:45:11 +02:00
Albin Olsson
98be576584
Merge branch 'multikey' of https://github.com/polachok/xcape
2012-10-21 12:57:04 +02:00
Alexander Polakov
f505c91d8b
Add usage explanation
2012-10-18 16:31:42 +04:00
Alexander Polakov
af3058d5ee
It's possible to bind multiple keys to one.
...
Syntax is like this: Shift_L=Shift_L|parenleft
2012-10-16 02:51:33 +04:00
Alexander Polakov
5a46095f2a
Use strsep() instead of strtok().
2012-10-15 20:24:52 +04:00
Alexander Polakov
a822976d64
Inform user when parsing failed
2012-10-15 18:22:24 +04:00
Alexander Polakov
7e7c7a12cf
Add support for different keys. First commit of many.
2012-10-15 18:11:59 +04:00
Alexander Polakov
4bd73c2484
Switch to getopt
2012-10-15 17:13:21 +04:00
alols
bea2772415
Merge pull request #6 from polachok/master
...
fix build on openbsd
2012-10-15 05:29:35 -07:00
Alexander Polakov
3045c1f268
Fix Makefile for BSD make
...
$^ is probably a GNU make thingy, $< works for make and gmake
2012-10-15 00:19:52 +04:00
Albin Olsson
8144c425b8
Adding a timeout after 650ms when holding CTRL, after which xcape will not generate Escape if released. Thanks to Richard for the suggestion.
2012-04-28 21:16:51 +02:00
Albin Olsson
3da651d4fa
Fix issue #5 , Ctrl should not act as Esc when mouse buttons are involved
2012-04-13 14:10:44 +02:00
Greg Fitzgerald
4fce7c4e2c
Provide install action
2012-04-01 16:06:41 -04:00