summaryrefslogtreecommitdiff
path: root/linux/X/symbols/shift
diff options
context:
space:
mode:
authorstephan <stephan@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-05-20 12:13:22 +0000
committerstephan <stephan@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-05-20 12:13:22 +0000
commit45d37559f386a4d357344704e5c11d569591dcc3 (patch)
tree792a2aba3650693c927fd16d1de2eec251c12c70 /linux/X/symbols/shift
parent884d0ec395fa76225b60412aa33a5ae8ca2072bf (diff)
downloadneo-layout-45d37559f386a4d357344704e5c11d569591dcc3.tar.gz
neo-layout-45d37559f386a4d357344704e5c11d569591dcc3.tar.bz2
neo-layout-45d37559f386a4d357344704e5c11d569591dcc3.zip
Weitere Modifier ausgelagert um Kompatibilität zu anderen Layouts zu verbessern.
Dateien wurden gruppiert, aber die alten sicherheitshalber beibehalten. Für die neuen Dateien muss noch die Makefile editiert werden. git-svn-id: https://svn.neo-layout.org@1864 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'linux/X/symbols/shift')
-rw-r--r--linux/X/symbols/shift92
1 files changed, 92 insertions, 0 deletions
diff --git a/linux/X/symbols/shift b/linux/X/symbols/shift
new file mode 100644
index 0000000..ac39f34
--- /dev/null
+++ b/linux/X/symbols/shift
@@ -0,0 +1,92 @@
+// $XKeyboardConfig$
+
+partial modifier_keys
+xkb_symbols "breaks_caps" {
+ key <LFSH> {
+ type = "ALPHABETIC",
+ actions [Group1] = [
+ SetMods(modifiers=Shift),
+ SetMods(modifiers=Shift+Lock,clearLocks)
+ ]
+ };
+ key <RTSH> {
+ type = "ALPHABETIC",
+ actions [Group1] = [
+ SetMods(modifiers=Shift),
+ SetMods(modifiers=Shift+Lock,clearLocks)
+ ]
+ };
+};
+
+// When pressed together with another Shift key, set/release Lock.
+partial modifier_keys
+xkb_symbols "lshift_both_capslock" {
+ key <LFSH> {
+ type[Group1]="TWO_LEVEL",
+ symbols[Group1] = [ Shift_L, Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ]
+ };
+};
+// When pressed together with another Shift key, set or unset Lock.
+partial modifier_keys
+xkb_symbols "rshift_both_capslock" {
+ key <RTSH> {
+ type[Group1]="TWO_LEVEL",
+ symbols[Group1] = [ Shift_R, Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ]
+ };
+};
+partial modifier_keys
+xkb_symbols "both_capslock" {
+ include "shift(lshift_both_capslock)"
+ include "shift(rshift_both_capslock)"
+};
+
+// When pressed alone, release Lock, whan pressed with another Shift key, set Lock.
+partial modifier_keys
+xkb_symbols "lshift_both_capslock_cancel" {
+ key <LFSH> {
+ type[Group1]="ALPHABETIC",
+ symbols[Group1] = [ Shift_L, Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ]
+ };
+};
+// When pressed alone, release Lock, whan pressed with another Shift key, set Lock.
+partial modifier_keys
+xkb_symbols "rshift_both_capslock_cancel" {
+ key <RTSH> {
+ type[Group1]="ALPHABETIC",
+ symbols[Group1] = [ Shift_R, Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ]
+ };
+};
+partial modifier_keys
+xkb_symbols "both_capslock_cancel" {
+ include "shift(lshift_both_capslock_cancel)"
+ include "shift(rshift_both_capslock_cancel)"
+};
+
+
+// When pressed together with another Shift key, lock/unlock Shift.
+partial modifier_keys
+xkb_symbols "lshift_both_shiftlock" {
+ key <LFSH> {
+ type[Group1]="TWO_LEVEL",
+ symbols[Group1] = [ Shift_L, Shift_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Shift) ]
+ };
+};
+// When pressed together with another Shift key, lock/unlock Shift.
+partial modifier_keys
+xkb_symbols "rshift_both_shiftlock" {
+ key <RTSH> {
+ type[Group1]="TWO_LEVEL",
+ symbols[Group1] = [ Shift_R, Shift_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Shift) ]
+ };
+};
+partial modifier_keys
+xkb_symbols "both_shiftlock" {
+ include "shift(lshift_both_shiftlock)"
+ include "shift(rshift_both_shiftlock)"
+};