input: add map-switch/unmap-switch commands
This allows running a command on a laptop's lid being opened/closed or a tablet's button/switch being pressed/toggled.
This commit is contained in:
committed by
Isaac Freund
parent
ae349b0ce4
commit
60fdefc3fd
@ -64,6 +64,7 @@ const command_impls = std.ComptimeStringMap(
|
||||
.{ "list-inputs", @import("command/input.zig").listInputs },
|
||||
.{ "map", @import("command/map.zig").map },
|
||||
.{ "map-pointer", @import("command/map.zig").mapPointer },
|
||||
.{ "map-switch", @import("command/map.zig").mapSwitch },
|
||||
.{ "move", @import("command/move.zig").move },
|
||||
.{ "output-layout", @import("command/layout.zig").outputLayout },
|
||||
.{ "resize", @import("command/move.zig").resize },
|
||||
@ -84,6 +85,7 @@ const command_impls = std.ComptimeStringMap(
|
||||
.{ "toggle-view-tags", @import("command/tags.zig").toggleViewTags },
|
||||
.{ "unmap", @import("command/map.zig").unmap },
|
||||
.{ "unmap-pointer", @import("command/map.zig").unmapPointer },
|
||||
.{ "unmap-switch", @import("command/map.zig").unmapSwitch },
|
||||
.{ "xcursor-theme", @import("command/xcursor_theme.zig").xcursorTheme },
|
||||
.{ "zoom", @import("command/zoom.zig").zoom },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user