Commit graph

60 commits

Author SHA1 Message Date
cyber-sushi
f35636fb42 Fixed regressions affecting default scroll wheel event and analog sticks rebinding 2024-05-18 03:57:47 +02:00
cyber-sushi
31c1b1ce44 Use Server enum instead of Option to match compositor 2024-05-18 01:47:49 +02:00
cyber-sushi
c19357d0b8 Refactor event conversion to avoid using strings, streamline event injection and use double fork when spawning subprocess 2024-05-18 01:46:39 +02:00
cyber-sushi
6092acc177 Wrap compositor status and active client into their own enum, split environment setup and task spawning 2024-05-18 01:44:04 +02:00
cyber-sushi
0e89f5aa19 Streamline event types and configuration parsing 2024-05-18 01:38:05 +02:00
cyber-sushi
aa1e6d66e2 Added L/RSTICK_ACTIVATION_MODIFIERS parameter to control cursor and scroll activation through modifiers 2024-05-13 18:26:10 +02:00
cyber-sushi
a5355432b4 Gamepad triggers correctly emit event value 0 when lifted 2024-05-11 22:57:14 +02:00
cyber-sushi
19ae1d8629 Removed outdated information from stdout 2024-05-10 02:31:35 +02:00
cyber-sushi
1d2acfb88e Automatically import user environment when running as system service 2024-05-10 01:53:47 +02:00
cyber-sushi
9c3f8528e5 Fixed line breaks in stdout 2024-05-10 01:28:53 +02:00
cyber-sushi
75b5699785 Get active window on Hyprland using subprocess instead of relying on external library 2024-05-09 18:36:08 +02:00
cyber-sushi
9dba3c564f Fixed default directory when running with no root permissions 2024-05-09 16:55:23 +02:00
cyber-sushi
7566e34efc Refactored subprocess spawning and fixed bug that prevented shell commands with arguments from running 2024-05-09 02:31:01 +02:00
cyber-sushi
d45025f0d2 If MAKIMA_CONFIG is set, don't bother locating the default config directory 2024-05-09 02:03:28 +02:00
cyber-sushi
a78978536b Automatically set DISPLAY if not found 2024-05-09 01:57:23 +02:00
cyber-sushi
245ee365e1 Ignore commands if no SUDO_USER env var is found when running as root 2024-05-08 20:18:47 +02:00
cyber-sushi
ce7071ce00 Version bumped to 0.6.7 2024-05-08 20:08:46 +02:00
cyber-sushi
3f4df618d9 Removed unnecessary command 2024-05-08 18:30:12 +02:00
cyber-sushi
0b6c39a79c Ignore output of child processes 2024-05-08 18:16:39 +02:00
cyber-sushi
4529b0499c Use fork() to spawn subprocess 2024-05-08 17:55:37 +02:00
cyber-sushi
2d3f4785b9 Fallback to WAYLAND_DISPLAY if XDG_SESSION_TYPE isn't available 2024-05-08 17:55:17 +02:00
cyber-sushi
2c9cd872df Check HOME instead of USER to determine cfg dir 2024-05-08 17:54:26 +02:00
cyber-sushi
838f47df1d Run shell commands with least privileges even when running as root 2024-05-07 20:39:40 +02:00
cyber-sushi
7239372900 Handling of home dir when running as root 2024-05-07 20:39:40 +02:00
cyber-sushi
89a0ac6143 Assume empty config if no default is found 2024-04-20 09:11:03 +02:00
cyber-sushi
150db1b8f2 Axis events should now behave correctly when used with modifiers 2024-04-19 13:07:52 +02:00
cyber-sushi
7ab876255c Prevent commands from firing on key-up 2024-04-19 11:37:08 +02:00
cyber-sushi
0dcc72882d Commands count as key activations 2024-04-19 09:40:00 +02:00
cyber-sushi
ed8a93ecbd GRAB_DEVICE can be omitted and defaults to true 2024-04-18 18:51:53 +02:00
cyber-sushi
f5452cac5d Added support for custom key modifiers 2024-04-18 13:41:06 +02:00
cyber-sushi
a6dfe9dfd4 Cleaned stdout 2024-04-15 12:16:37 +02:00
cyber-sushi
83f1481288 Custom config path can now be set with MAKIMA_CONFIG env var 2024-04-15 12:14:54 +02:00
cyber-sushi
4bb2525cf6 Added more diagnostics to stdout during initialization 2024-04-15 06:30:48 +02:00
cyber-sushi
1150cdf77b Fixed error when remapping scroll wheels 2024-04-14 11:39:01 +02:00
cyber-sushi
9425ada0a3 Small change to stdout 2024-04-14 11:37:43 +02:00
cyber-sushi
73674ae153 Fixed regression when parsing key combinations 2024-04-14 10:20:48 +02:00
cyber-sushi
de0cc97475 Added shell command invocation through bindings 2024-04-13 05:39:22 +02:00
cyber-sushi
3846a358c1 Parser rewritten to simplify config files + bugfixes 2024-04-11 00:02:29 +02:00
cyber-sushi
c838c55af2 Added analog stick remapping to keys 2024-04-10 09:37:39 +02:00
cyber-sushi
c83b70a91a Intercept REL_WHEEL_HI_RES events 2024-04-08 00:51:15 +02:00
cyber-sushi
974e1938fc Fixed line breaks for terminal output 2024-04-07 04:20:25 +02:00
cyber-sushi
edeaa5d2d2 Skip parsing dotfiles and non-toml files 2024-04-06 20:21:19 +02:00
cyber-sushi
a5d84258d3 Settings handling refactored 2024-04-06 19:52:06 +02:00
cyber-sushi
f4f0cbdf35 Added deadzone configuration 2024-04-05 22:32:15 +02:00
cyber-sushi
b832125491 Added 2D scrolling through analog stick 2024-03-27 05:39:25 +01:00
cyber-sushi
443e3ac1db Added X11 support for app-specific bindings 2024-03-19 04:28:13 +01:00
cyber-sushi
6e87cfabfb get_active_window() moved to new file 2024-03-19 04:28:13 +01:00
cyber-sushi
28c1722b7e added logic to detect x11 session 2024-03-19 04:28:13 +01:00
cyber-sushi
9965e71c2f stdout now shows device names 2024-03-19 04:28:13 +01:00
cyber-sushi
965d9acd25 Refactor for consistency 2024-03-19 04:28:13 +01:00