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)] + }; +};