xkb: indent..

This commit is contained in:
Cat /dev/Nulo 2021-10-02 12:17:54 -03:00
parent 59dcdbae8a
commit 398d09f286

View file

@ -6,55 +6,55 @@ xkb_symbols "basic" {
name[Group1] = "English (US, nullified)"; name[Group1] = "English (US, nullified)";
// Sticky Alt and AltGr // Sticky Alt and AltGr
key <RALT> { key <RALT> {
type[Group1]= "ONE_LEVEL", type[Group1]= "ONE_LEVEL",
symbols[Group1]= [ ISO_Level3_Shift ], symbols[Group1]= [ ISO_Level3_Shift ],
actions[Group1]= [ LatchMods(modifiers=AltGr) ] actions[Group1]= [ LatchMods(modifiers=AltGr) ]
};
key <LALT> {
type[Group1]= "ONE_LEVEL",
symbols[Group1]= [ Alt_L ],
actions[Group1]= [ LatchMods(modifiers=Mod1) ]
};
// Shift keys
// Both are sticky, when any of them are pressed twice, they act as Shift Lock.
// TODO: make it lock on Caps Lock instead of Shift (for e.x. typing numbers angrily "YOU OWE ME 10 BUCKS!")
key <LFSH> {
type[Group1] = "ONE_LEVEL",
symbols[Group1] = [ Shift_L ],
actions[Group1] = [ LatchMods(modifiers=Shift,latchToLock,clearLocks) ]
// This doesn't work correctly
//actions[Group1] = [ LatchMods(modifiers=Shift), LockMods(modifiers = Lock) ]
}; };
key <RTSH> { key <LALT> {
type[Group1] = "ONE_LEVEL", type[Group1]= "ONE_LEVEL",
symbols[Group1] = [ Shift_R ], symbols[Group1]= [ Alt_L ],
actions[Group1] = [ LatchMods(modifiers=Shift,latchToLock,clearLocks) ] actions[Group1]= [ LatchMods(modifiers=Mod1) ]
};
// Shift keys
// Both are sticky, when any of them are pressed twice, they act as Shift Lock.
// TODO: make it lock on Caps Lock instead of Shift (for e.x. typing numbers angrily "YOU OWE ME 10 BUCKS!")
key <LFSH> {
type[Group1] = "ONE_LEVEL",
symbols[Group1] = [ Shift_L ],
actions[Group1] = [ LatchMods(modifiers=Shift,latchToLock,clearLocks) ]
// This doesn't work correctly // This doesn't work correctly
//actions[Group1] = [ LatchMods(modifiers=Shift), LockMods(modifiers = Lock) ] //actions[Group1] = [ LatchMods(modifiers=Shift), LockMods(modifiers = Lock) ]
};
key <RTSH> {
type[Group1] = "ONE_LEVEL",
symbols[Group1] = [ Shift_R ],
actions[Group1] = [ LatchMods(modifiers=Shift,latchToLock,clearLocks) ]
// This doesn't work correctly
//actions[Group1] = [ LatchMods(modifiers=Shift), LockMods(modifiers = Lock) ]
}; };
// Sticky Ctrls // Sticky Ctrls
key <LCTL> { key <LCTL> {
type[Group1]="ONE_LEVEL", type[Group1]="ONE_LEVEL",
symbols[Group1]=[ Control_L ], symbols[Group1]=[ Control_L ],
actions[Group1]=[LatchMods(modifiers=Control)] actions[Group1]=[LatchMods(modifiers=Control)]
}; };
key <RCTL> { key <RCTL> {
type[Group1]="ONE_LEVEL", type[Group1]="ONE_LEVEL",
symbols[Group1]=[ Control_R ], symbols[Group1]=[ Control_R ],
actions[Group1]=[LatchMods(modifiers=Control)] actions[Group1]=[LatchMods(modifiers=Control)]
}; };
// Sticky Wins // Sticky Wins
key <LWIN> { key <LWIN> {
type[Group1]="ONE_LEVEL", type[Group1]="ONE_LEVEL",
symbols[Group1]=[ Super_L ], symbols[Group1]=[ Super_L ],
actions[Group1]=[LatchMods(modifiers=Mod4)] actions[Group1]=[LatchMods(modifiers=Mod4)]
}; };
key <RWIN> { key <RWIN> {
type[Group1]="ONE_LEVEL", type[Group1]="ONE_LEVEL",
symbols[Group1]=[ Super_R ], symbols[Group1]=[ Super_R ],
actions[Group1]=[LatchMods(modifiers=Mod4)] actions[Group1]=[LatchMods(modifiers=Mod4)]