XkbLockModifiers(3)

πŸ’… XkbLockModifiers β€” the libX11 bestie for locking + unlocking real modifiers

okay so this is XkbLockModifiers(3), straight out of the XKB FUNCTIONS corner of libX11. Come get your modifier tea. πŸŽ€

🌸 NAME 🌸

XkbLockModifiers β€” Locks and unlocks any of the eight real keyboard modifiers. πŸ’–

✨ SYNOPSIS ✨

       Bool XkbLockModifiers (Display *display, unsigned int device_spec,
              unsigned int affect, unsigned int values);

πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” connection to the X server. πŸ–₯️✨
  • device_spec β€” device ID, or XkbUseCoreKbd. πŸ‘‘
  • affect β€” mask of real modifiers whose lock state is to change. 🎚️
  • values β€” 1 => lock, 0 => unlock; only for modifiers selected by affect. πŸ”’

πŸ’… DESCRIPTION πŸ’…

okay so XkbLockModifiers sends a request to the server to lock the real modifiers selected by both affect and values and to unlock the real modifiers selected by affect, but not selected by values. That's the whole arc, bestie. 😌

It does not wait for a reply from the server. It returns True if the request was sent, and False otherwise. No cap. ✨

The functions in this section that change the use of modifiers use a mask in the parameter affect. It is a bitwise inclusive OR of the legal modifier masks:

πŸ“‹ Table 1 Real Modifier Masks

  • ShiftMask
  • LockMask
  • ControlMask
  • Mod1Mask
  • Mod2Mask
  • Mod3Mask
  • Mod4Mask
  • Mod5Mask

πŸ‘‘ RETURN VALUES πŸ‘‘

  • True β€” The XkbLockModifiers function returns True if a request is sent to the server to lock the real modifiers selected by both affect and values and to unlock the real modifiers selected by affect, but not selected by values. 🫢
  • False β€” The XkbLockModifiers function returns False if the request was not sent. πŸ’€

X Version 11, libX11 1.8.14, XkbLockModifiers(3) β€” that's the footer tea 🍡 (and yes, no separate date is printed on the footer, bestie). Stay locked, stay iconic. πŸ’…βœ¨

πŸ“¦ where this page comes from