Añadir mejor distribución de teclado (sticky) y .profile
This commit is contained in:
parent
d81792f96c
commit
59dcdbae8a
2 changed files with 91 additions and 0 deletions
29
.profile
Normal file
29
.profile
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
. /etc/profile
|
||||
|
||||
# if test -z "${XDG_RUNTIME_DIR}"; then
|
||||
# export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
|
||||
# if ! test -d "${XDG_RUNTIME_DIR}"; then
|
||||
# mkdir "${XDG_RUNTIME_DIR}"
|
||||
# chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||
# fi
|
||||
# fi
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export PATH="$HOME/go/bin:$PATH"
|
||||
# export PATH="$HOME/.local/share/theme.sh:$PATH"
|
||||
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
|
||||
export EDITOR=kak
|
||||
|
||||
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
||||
|
||||
export XKB_DEFAULT_LAYOUT=us-nulo
|
||||
# export XKB_DEFAULT_VARIANT=altgr-intl
|
||||
export XKB_DEFAULT_OPTIONS=caps:escape
|
||||
|
||||
export XCURSOR_THEME=Adwaita
|
||||
|
||||
export SKIM_DEFAULT_OPTIONS="--color=16"
|
62
.xkb/symbols/us-nulo
Normal file
62
.xkb/symbols/us-nulo
Normal file
|
@ -0,0 +1,62 @@
|
|||
// /usr/share/X11/xkb/symbols/us
|
||||
default partial alphanumeric_keys
|
||||
xkb_symbols "basic" {
|
||||
include "us(altgr-intl)"
|
||||
|
||||
name[Group1] = "English (US, nullified)";
|
||||
|
||||
// Sticky Alt and AltGr
|
||||
key <RALT> {
|
||||
type[Group1]= "ONE_LEVEL",
|
||||
symbols[Group1]= [ ISO_Level3_Shift ],
|
||||
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> {
|
||||
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
|
||||
key <LCTL> {
|
||||
type[Group1]="ONE_LEVEL",
|
||||
symbols[Group1]=[ Control_L ],
|
||||
actions[Group1]=[LatchMods(modifiers=Control)]
|
||||
};
|
||||
key <RCTL> {
|
||||
type[Group1]="ONE_LEVEL",
|
||||
symbols[Group1]=[ Control_R ],
|
||||
actions[Group1]=[LatchMods(modifiers=Control)]
|
||||
};
|
||||
|
||||
// Sticky Wins
|
||||
key <LWIN> {
|
||||
type[Group1]="ONE_LEVEL",
|
||||
symbols[Group1]=[ Super_L ],
|
||||
actions[Group1]=[LatchMods(modifiers=Mod4)]
|
||||
};
|
||||
key <RWIN> {
|
||||
type[Group1]="ONE_LEVEL",
|
||||
symbols[Group1]=[ Super_R ],
|
||||
actions[Group1]=[LatchMods(modifiers=Mod4)]
|
||||
};
|
||||
};
|
Loading…
Reference in a new issue