aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/xkbdata.src/compat/ledcaps
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/xkbdata.src/compat/ledcaps')
-rw-r--r--xorg-server/xkbdata.src/compat/ledcaps23
1 files changed, 23 insertions, 0 deletions
diff --git a/xorg-server/xkbdata.src/compat/ledcaps b/xorg-server/xkbdata.src/compat/ledcaps
new file mode 100644
index 000000000..fc3084eec
--- /dev/null
+++ b/xorg-server/xkbdata.src/compat/ledcaps
@@ -0,0 +1,23 @@
+// Use Caps Lock LED to show either Caps Lock, Group, or Shift Lock state
+
+default partial xkb_compatibility "caps_lock" {
+ indicator "Caps Lock" {
+ !allowExplicit;
+ whichModState= Locked;
+ modifiers= Lock;
+ };
+};
+
+partial xkb_compatibility "group_lock" {
+ indicator "Caps Lock" {
+ modifiers= None;
+ groups=All-group1;
+ };
+};
+
+partial xkb_compatibility "shift_lock" {
+ indicator "Caps Lock" {
+ whichModState= Locked;
+ modifiers= Shift;
+ };
+};