Module: cuteful.pointer

Useful functions for pointer stuff.

Info:

  • Copyright: 2025
  • License: GPLv3
  • Originally authored by: Dwi Asmoro Bangun
    (Full contributors list available on our github project)

Static module functions

cuteful.pointer.bind_swipe (fingers, direction, committed, cancelled, options) Get a screen by its relative index.


Static module functions

🔗 cuteful.pointer.bind_swipe (fingers, direction, committed, cancelled, options)
Get a screen by its relative index.

Parameters:

Name Type(s) Description
fingers integer Number of fingers that touch the surface.
direction enum The swipe direction.
committed function Callback function when swipe is considered valid. fn(cwc_pointer)
cancelled function Callback function when swipe is considered not swiping. fn(cwc_pointer)
options table
threshold integer Threshold distance from initial point that is considered a swipes.
cancel_threshold integer Threshold distance from initial point to be considered cancelled.
skip_events integer Don't send swipe gesturesevents to focused client.
generated by LDoc 1.5.0 based on AwesomeWM template