Skip to main content

Input Device Configuration somewm-only

Overview

SomeWM provides awful.input for runtime input device configuration - a feature not available in AwesomeWM.

Pointer Settings

local awful = require("awful")

-- Enable tap-to-click on touchpads
awful.input.tap_to_click = 1

-- Natural (inverted) scrolling
awful.input.natural_scrolling = 1

-- Pointer speed (-1.0 to 1.0)
awful.input.pointer_speed = 0.3

Keyboard Settings

-- Keyboard layout
awful.input.xkb_layout = "us"
awful.input.xkb_variant = ""
awful.input.xkb_options = "ctrl:nocaps"

-- Repeat settings
awful.input.repeat_rate = 25 -- keys per second
awful.input.repeat_delay = 600 -- ms before repeat starts

All Properties

See awful.input Reference for the complete property list.

Next Steps