From 59dcdbae8a288a500f6acd1ceb16a918d2d9e354 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sat, 2 Oct 2021 12:00:17 -0300 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20mejor=20distribuci=C3=B3n=20de=20?= =?UTF-8?q?teclado=20(sticky)=20y=20.profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .profile | 29 +++++++++++++++++++++ .xkb/symbols/us-nulo | 62 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 .profile create mode 100644 .xkb/symbols/us-nulo diff --git a/.profile b/.profile new file mode 100644 index 0000000..3d1c009 --- /dev/null +++ b/.profile @@ -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" diff --git a/.xkb/symbols/us-nulo b/.xkb/symbols/us-nulo new file mode 100644 index 0000000..a2b9af6 --- /dev/null +++ b/.xkb/symbols/us-nulo @@ -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 { + type[Group1]= "ONE_LEVEL", + symbols[Group1]= [ ISO_Level3_Shift ], + actions[Group1]= [ LatchMods(modifiers=AltGr) ] + }; + key { + 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 { + 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 { + 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 { + type[Group1]="ONE_LEVEL", + symbols[Group1]=[ Control_L ], + actions[Group1]=[LatchMods(modifiers=Control)] + }; + key { + type[Group1]="ONE_LEVEL", + symbols[Group1]=[ Control_R ], + actions[Group1]=[LatchMods(modifiers=Control)] + }; + + // Sticky Wins + key { + type[Group1]="ONE_LEVEL", + symbols[Group1]=[ Super_L ], + actions[Group1]=[LatchMods(modifiers=Mod4)] + }; + key { + type[Group1]="ONE_LEVEL", + symbols[Group1]=[ Super_R ], + actions[Group1]=[LatchMods(modifiers=Mod4)] + }; +};