Commit Graph

127 Commits (d0bffa8c2f9cb22f014e1ec0cc41d5e323623b8c)
 

Author SHA1 Message Date
Takashi Kokubun d0bffa8c2f
Fix modifier bugs 3 years ago
Takashi Kokubun 387c29d355
Workaround FocusProxy 3 years ago
Takashi Kokubun bcc4598069
Implement conditional modmap properly 3 years ago
Takashi Kokubun 39dbc8a1fe
Support wm_class for X11 3 years ago
Takashi Kokubun 63ec6948e6
Implement chained remap 3 years ago
Takashi Kokubun c57dbee606
Implement keymap 3 years ago
Takashi Kokubun f5695d3bc2
Maintain pressed modifiers 3 years ago
Takashi Kokubun 0d5f37cae3
Implement EventHandler as a mutable struct 3 years ago
Takashi Kokubun aa3dd2efe3
Implement modmap 3 years ago
Takashi Kokubun fe696a8956
Implement event multiplexer 3 years ago
Takashi Kokubun f058c44433
Implement xremap's VirtualDevice 3 years ago
Takashi Kokubun d21a3e7650
Implement --device option 3 years ago
Takashi Kokubun 5448801473
Implement automatic device selection 3 years ago
Takashi Kokubun 6fbd45a19a
Implement listing devices 3 years ago
Takashi Kokubun 1a8b2b15d1
Implement CLI 3 years ago
Takashi Kokubun d76ab68d7c
Shorten main function 3 years ago
Takashi Kokubun ae7d2deff4
Validate extra action keys 3 years ago
Takashi Kokubun db1c9f5600
Parse remap action 3 years ago
Takashi Kokubun 689ad59163
Parse chained actions 3 years ago
Takashi Kokubun 74ee0f36da
Some abstraction for further extension 3 years ago
Takashi Kokubun 10845ed7c0
Parse KeyPress 3 years ago
Takashi Kokubun fed0b5526f
Break up config source files 3 years ago
Takashi Kokubun 16615e55d3
Parse Windows keys 3 years ago
Takashi Kokubun 2ee85b8773
Implement key parser 3 years ago
Takashi Kokubun d9127e8a90
Parse the basic config structure 3 years ago
Takashi Kokubun 2f8029a200
Parse the top-level element 3 years ago
Takashi Kokubun e5ac6af6bd
Use nix crate to call select(2) 3 years ago
Takashi Kokubun fc30cb8bca
Handle all errors properly 3 years ago
Takashi Kokubun 2db606bce3
Start parsing the config 3 years ago
Takashi Kokubun 2590a84654
Design the DSL syntax prototype 3 years ago
Takashi Kokubun 9cc6bb0006
Implement global modmap 3 years ago
Takashi Kokubun 4061f77694
Infinite loop 3 years ago
Takashi Kokubun e29714484c
Change the hard-coded device 3 years ago
Takashi Kokubun 6a8683304c
Revert "Set relative axes"
This reverts commit 4b33dee052.
3 years ago
Takashi Kokubun 1ed2fd9029
cargo fmt 3 years ago
Takashi Kokubun 4b33dee052
Set relative axes 3 years ago
Takashi Kokubun 06b2d04a89
Simulate supported keys 3 years ago
Takashi Kokubun cc178eb575
Build a virtual device to output events 3 years ago
Takashi Kokubun 0878d52dcb
Add a basic event loop 3 years ago
Takashi Kokubun efb1db6d3b
Prepare for calling select(2) 3 years ago
Takashi Kokubun e9c5afb054
Grab the input device 3 years ago
Takashi Kokubun d324c4a73b
cargo init 3 years ago
Takashi Kokubun 603be104f4
Full scratch 3 years ago
Takashi Kokubun caea9a1c2f Update README.md
Thanks to hanachin, xremap is actively maintained these days.
6 years ago
Seiei Miyagi 40246cb42b
Cleanup src/*.inc 6 years ago
Seiei Miyagi e9bbb31bc4
Fix #32 introduced in 1e2d641 We need the constants from both keysymdef.h and X.h 6 years ago
Seiei Miyagi 1e2d641fe3
Fix 6ceda05 src/x11_constants_XF86.inc source, X.h -> XF86keysym.h 6 years ago
Takashi Kokubun 6160899fec
Merge pull request #31 from hanachin/generate_x11_constants_from_headers_at_build_time
Generate X11 constants from headers at build-time.
6 years ago
Seiei Miyagi 6ceda05568
Generate X11 constants from headers at build-time.
The X11 constants are different between versions.

For example, Debian doesn't have XF86XK_WWAN
https://salsa.debian.org/xorg-team/proto/x11proto-core/blob/debian-unstable/XF86keysym.h

But Arch Linux does.
https://www.archlinux.org/packages/extra/any/xorgproto/

I've got following error on Debian stretch

```
 /home/sei/src/github.com/k0kubun/xremap/src/x11_constants.c:2710:20: error: ‘XF86XK_WWAN’ undeclared (first use in this function)
    define_x11_const(XF86XK_WWAN);
```

To avoid macro undeclared error, wrap the `define_x11_const` with #ifdef

```
#ifdef XF86XK_WWAN
define_x11_const(XF86XK_WWAN)
#endif
```

Or generate code at build-time.
6 years ago
Takashi Kokubun c7a69cadcd Don't use exception for branching 6 years ago