Devices
For global device configs, check the Config options page. This page will focus on per-device configs.
Basic per-device configs are set via the hl.device() function:
hl.device({
name = "my-epic-keyboard",
sensitivity = -0.5
})The name can be easily obtained by checking the output of hyprctl devices.
Inside of this table, specify your desired config options.
Any of the input options can be set, EXCEPT:
force_no_accel- Options that configure window management, such as:
follow_mouse,follow_mouse_threshold,float_switch_override_focus,mouse_refocus,special_fallthrough, etc.
You can also use the output setting for tablets to bind them to outputs.
Remember to use the name of the Tablet and not Tablet Pad or Tablet Tool.
A few additional properties can only be specified in per-device configs:
enabled(only for mice/touchpads/touchdevices/keyboards)- Enables/disables the device (connects/disconnects from the on-screen cursor)
- Default:
true
keybinds(only for devices that send key events)- Enables/disables keybinds for the device
- Default:
true
tags(only for keyboards/pointers)- Provides grouping and alternate names for use in per-device binds; comma separated list of tags
- Default:
""
Note
By default, per-device layouts will not alter the keybind keymap, so for example with a global keymap of us and a per-device one of fr, the keybinds will still act as if you were on us.
You can change this behavior by setting resolve_binds_by_sym = 1.
In that case, you’ll need to type the symbol specified in the bind to activate it.