mzteriver: touchpad config

This commit is contained in:
LordMZTE 2024-03-08 23:27:50 +01:00
parent 6a7bf0c300
commit 365c7b2ff1
Signed by: LordMZTE
GPG Key ID: B64802DC33A64FF6
1 changed files with 9 additions and 0 deletions

View File

@ -110,6 +110,15 @@ pub fn init(alloc: std.mem.Allocator) !void {
try con.runCommand(&.{ "map-pointer", "normal", "Super", "BTN_LEFT", "move-view" });
try con.runCommand(&.{ "map-pointer", "normal", "Super", "BTN_RIGHT", "resize-view" });
// touchpad config
inline for (.{
.{ "click-method", "clickfinger" },
.{ "tap-button-map", "left-right-middle" },
.{ "tap", "enabled" },
}) |cmd| {
try con.runCommand(&[_][:0]const u8{ "input", "*" } ++ cmd);
}
// tag config
for (0..9) |i| {
var key_buf: [16]u8 = undefined;