File: ledcaps

package info (click to toggle)
console-setup 1.245
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 62,488 kB
  • sloc: perl: 11,225; xml: 8,643; sh: 3,902; makefile: 778
file content (24 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Use the 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;
    };
};