From 3b609bf37f44203ca9f156480b75bbe5427b3ea6 Mon Sep 17 00:00:00 2001 From: Anna Rose Wiggins Date: Mon, 28 Jul 2025 12:25:17 -0400 Subject: [PATCH] Remove debug and update documentation. --- internal/mappingrules/mapping_rule_axis_combined.go | 2 +- readme.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/mappingrules/mapping_rule_axis_combined.go b/internal/mappingrules/mapping_rule_axis_combined.go index c113e2f..36562b8 100644 --- a/internal/mappingrules/mapping_rule_axis_combined.go +++ b/internal/mappingrules/mapping_rule_axis_combined.go @@ -27,7 +27,7 @@ func (rule *MappingRuleAxisCombined) MatchEvent(device Device, event *evdev.Inpu if !rule.MappingRuleBase.modeCheck(mode) || !(rule.InputLower.MatchEvent(device, event) || rule.InputUpper.MatchEvent(device, event)) { - logger.Log("DEBUG: Did not match event") + return nil, nil } diff --git a/readme.md b/readme.md index d6a9021..633fe32 100644 --- a/readme.md +++ b/readme.md @@ -41,9 +41,11 @@ Configuration can be fairly complicated and repetitive. If anyone wants to creat After building (see below) and writing your configuration (see above), just run `joyful`. You can use `joyful --config ` to specify different configuration profiles; just put all the YAML files for a given profile in a unique directory. +Pressing `` in the running terminal window will reload the `rules` section of your config files, so you can make changes to your rules without restarting the application. Applying any changes to `devices` or `modes` requires exiting and re-launching the program. + ## Technical details -Joyful is written in golang, and uses evdev/uinput to manage devices. +Joyful is written in golang, and uses evdev/uinput to manage devices. See `cmd/joyful/main.go` for the program's entry point. ### Build & Install