logiops icon indicating copy to clipboard operation
logiops copied to clipboard

alt-tab with direction: "None" does not work

Open zany130 opened this issue 4 years ago • 1 comments

alt-tab is not working on my config. Is it not possible to set gestures for 4 directions and then one for when no direction is applied?

devices: ({
	# Put the name of the device here
	name: "Wireless Mouse MX Master 3";
	dpi: 1000;
	smartshift: {
		on: true;
		# 1-255 integer
		threshold: 30;
		default_threshold: 30;
	};
	hiresscroll: {
		hires: true;
		invert: false;
		target: false;
		up: {
			mode: "Axis";
			axis: "REL_WHEEL_HI_RES";
			axis_multiplier: 6;
		},
		down: {
			mode: "Axis";
			axis: "REL_WHEEL_HI_RES";
			axis_multiplier: -6;
		}
	};
	buttons: ({
		# Gesture Button
		cid: 0xc3;
		action = {
			type: "Gestures";
			gestures: ({
				# Toggle fullscreen of current window
				direction: "Up";
				mode: "OnFewPixels";
				pixels: 350;
				action = {
					type: "Keypress";
					keys: ["KEY_LEFTALT", "KEY_F11"];
				};
			}, {
				# Toggle Tile mode
				direction: "Down";
				mode: "OnFewPixels";
				pixels: 500;
				action = {
					type: "Keypress";
					keys: ["KEY_LEFTCTRL", "KEY_LEFTMETA", "KEY_TAB"];
				};
			}, {
				# Material Shell Back
				direction: "Left";
				mode: "OnFewPixels";
				pixels: 250;
				action = {
					type: "Keypress";
					keys: ["KEY_LEFTMETA", "KEY_A"];
				};
			}, {
				# Material Shell Forward
				direction: "Right";
				mode: "OnFewPixels";
				pixels: 250;
				action = {
					type: "Keypress";
					keys: ["KEY_LEFTMETA", "KEY_D"];
				}
			},{ 
				#Window Switcher
				direction: "None";
				mode: "OnRelease";
				action = {
					type: "Keypress";
					keys: ["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_TAB"];
				}
			});
		};
	}, {
		# Toggle DPI
		cid: 0xc4;
		action = {
			type = "CycleDPI";
		dpis: [800, 1000, 2000, 3000, 4000];
		};
	}, {
		# Back Button (has 0x54 too)
		cid: 0x53;
		action = {
			type :  "Keypress";
			keys: ["KEY_BACK"];
		};
	}, {
		# Forward Button (has 0x57 too)
		cid: 0x56;
		action = {
			type :  "Keypress";
			keys: ["KEY_FORWARD"];
		};
	});
}, {
	# Another device to configure
	name: "Other Logitech USB Receiver: MUST BE CONFIGURED FIRST";
});

zany130 avatar Mar 01 '21 16:03 zany130

I think you the windows Switcher is ALT+TAB not CTRL+ALT+TAB.

The follows works for me.

{ 
  #Window Switcher
  direction: "None";
  mode: "OnRelease";
  action = {
    type: "Keypress";
    keys: ["KEY_LEFTALT", "KEY_TAB"];
  }
}

ArtisticZhao avatar Sep 07 '21 02:09 ArtisticZhao