Skip to content

Keypress Not working #516

@MeoWBlackhawk

Description

@MeoWBlackhawk

Forgive me I may be missing something here, I followed along with #166, #181, #182, #183. Any keypress commands give no action. New User to linux, still getting used to things on Ubuntu LTS 24.04.3LTS. Copied my config below. Any help would be GREATLY appreciated.

devices: ({
name: "Wireless Mouse MX Master 3";

smartshift: {
on: false;
threshold: 15;
};

hiresscroll: {
hires: true;
invert: false;
target: false;
};

dpi: 1500; // max=4000

buttons: (
// Forward button
{
cid: 0x56;
action = {
type: "Keypress";
keys: [ "KEY_LEFTCTRL", "KEY_C" ];
};
},

// Back button
{
  cid: 0x53;
  action = {
    type: "Keypress";
    keys: [ "KEY_LEFTCTRL", "KEY_V" ];
  };
},

// Gesture button (hold and move)
{
  cid: 0xc3;
  action = {
    type: "Gestures";
    gestures: (
      {
        direction: "None";
        mode: "OnRelease";
        action = {
          type: "Keypress";
          keys: [ "KEY_LEFTMETA" ]; // open activities overview
        }
      },

      {
        direction: "Right";
        mode: "OnRelease";
        action = {
          type: "Keypress";
          keys: [ "KEY_LEFTMETA", "KEY_RIGHT" ]; // snap window to right
        }
      },

      {
        direction: "Left";
        mode: "OnRelease";
        action = {
          type: "Keypress";
          keys: [ "KEY_LEFTMETA", "KEY_LEFT" ];
        }
	  },

	  {
        direction: "Up";
        mode: "onRelease";
        action = {
          type: "Keypress";
          keys: [ "KEY_LEFTMETA", "KEY_UP" ]; // maximize window
        }
	  },
	  
	  {
        direction: "Down";
        mode: "OnRelease";
        action = {
          type: "Keypress";
          keys: [ "KEY_LEFTMETA", "KEY_DOWN" ]; // minimize window
        }
      }
    );
  };
},

// Top button
{
  cid: 0xc4;
  action = {
    type: "Keypress";
    keys: [ "KEY_ENTER" ];
  };
 }

);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions