---
name: "XkbSetModActionVMods"
section: "3"
platform: "linux"
package: "libx11"
version: "1.8.14-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XkbSetModActionVMods"
---

# XkbSetModActionVMods(3)

Sets the vmods1 and vmods2 fields of act using the vmods format of an Xkb modifier description

## NAME

XkbSetModActionVMods - Sets the vmods1 and vmods2 fields of act using the vmods format of an Xkb modifier description

## SYNOPSIS

**void XkbSetModActionVMods** **(XkbAction** *act***,** **unsigned short** *vmods***);**

## ARGUMENTS

- *act*

  action in which to set vmods

- *vmods*

  virtual mods to set

## DESCRIPTION

*XkbSetModActionVMods* sets the *vmods1* and *vmods2* fields of *act* using the *vmods* format of an Xkb modifier description.

## NOTES

Despite the fact that the first parameter of these two macros is of type XkbAction, these macros may be used only with Actions of type XkbModAction and XkbISOAction.
