Skip to main content
Version: 2.1

Carousel: Gestures somewm-only

Register a three-finger touchpad swipe in rc.lua to pan the carousel viewport.

Enable 3-Finger Swipe​

local binding = awful.layout.suit.carousel.make_gesture_binding()

The binding acts when the focused screen uses the horizontal carousel. Swiping left reveals columns to the right. On release, it centres the column nearest the viewport centre and focuses that column's first client.

Vertical Variant​

For vertical carousel tags, register the vertical binding too:

local vertical_binding = awful.layout.suit.carousel.vertical.make_gesture_binding()

Each binding checks the active layout, so both can be registered together.

Adjust Animation Speed​

In your theme, set the layout animation duration in seconds:

theme.animation_layout_duration = 0.1

Use 0 for an immediate snap. This setting also affects other client layout changes. During a swipe, the viewport follows finger movement directly. See Animation.

Remove a Gesture Binding​

Keep the object returned during registration, then remove it when needed:

binding:remove()

See Also​