mirror of
https://github.com/swaywm/sway.git
synced 2026-02-12 04:28:25 -05:00
Can be used to change the orientation of a touchscreen.
Example usage with swaymsg:
# identity
swaymsg input type:touch calibration_matrix '"1 0 0 0 1 0"'
# 90 degree clockwise
swaymsg input type:touch calibration_matrix '"0 -1 1 1 0 0"'
# 180 degree clockwise
swaymsg input type:touch calibration_matrix '"-1 0 1 0 -1 1"'
# 270 degree clockwise
swaymsg input type:touch calibration_matrix '"0 1 0 -1 0 1"'
Documentation:
https://wayland.freedesktop.org/libinput/doc/latest/absolute-axes.html#calibration-of-absolute-devices
|
||
|---|---|---|
| .. | ||
| desktop | ||
| input | ||
| tree | ||
| commands.h | ||
| config.h | ||
| criteria.h | ||
| decoration.h | ||
| desktop.h | ||
| ipc-json.h | ||
| ipc-server.h | ||
| layers.h | ||
| output.h | ||
| security.h | ||
| server.h | ||
| swaynag.h | ||
| xdg_decoration.h | ||
| xwayland.h | ||