Skip to content

A few teething issues #3

Description

@pallaswept

Hi!

New release is very nice! I think I found some small bugs. I have a set of 'global conditions' at the top of my config, as well as conditions for each gesture. This is the top of my config:

mouse:
  gestures:

    - conditions:
        - $window_fullscreen == false
        - $plasma_overview_active == false
        - none:
            - window_class: FreeCAD

      gestures:
        - type: press
          mouse_buttons:
            - right
            - left
          mouse_buttons_exact_order: true
          instant: true
          conditions:
            - $cursor_shape == pointer

          actions:
            - on: begin
              input:
              - mouse: [ middle ]

        - type: press
          mouse_buttons:
            - right
            - left
          mouse_buttons_exact_order: true
          instant: true
          conditions:
            - all:
                - !$cursor_shape == pointer
                - window_class: firefox

          actions:
            - on: begin
              input:
                - keyboard: [ leftctrl+t ]

(And so on with more gestures)

I trimmed it down to just the above, started the GUI and just swapped the order of the mouse buttons and saved it.

The editor moves the conditions from the top and copies them into each gesture, which is functionally the same but means a lot of duplication in the config. I'm not sure if this is intentional but it's a bit unfortunate.

Also the config is then corrupted:

> inputactions config issues
27:17: error: Invalid condition.
24 |           - all:
25 |               - $window_fullscreen == false
26 |               - $plasma_overview_active == false
27 |               - "{window_class: FreeCAD}"
   |               ~~^~~~~~~~~~~~~~~~~~~~~~~~~
28 |           - $cursor_shape == pointer
29 |       actions:
30 |         - on: begin

Turns out that is my old config using the deprecated syntax for window_class conditions. I fixed that, which fixed the above, and then I got this:

> inputactions config issues
47:17: error: Invalid condition.
44 |               - $plasma_overview_active == false
45 |               - $window_class == FreeCAD
46 |           - all:
47 |               - _shape == pointer
   |               ~~^~~~~~~~~~~~~~~~~
48 |               - $window_class == firefox
49 |       actions:
50 |         - on: begin

It just kinda 'ate' the beginning of that variable. Maybe it didn't like negation?

Anyway, the UI is coming along really nicely! AppImage is working well here. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions