-
Notifications
You must be signed in to change notification settings - Fork 65
Description
I have remapped capslock + n to act as enter, it works fine on any wayland native application, aside from tofi.
Just in case, here is an excerpt from .config/sway/config:
input type:keyboard {
xkb_layout "pomy"
repeat_delay 250
repeat_rate 30
}
And .config/xbk/symbols/pomy:
partial alphanumeric_keys modifier_keys
xkb_symbols "pomy" {
include "latam"
include "level3(caps_switch)"
key <AC06> {
type[Group1] = "EIGHT_LEVEL",
symbols[Group1] = [ h, H, Left, Left, hstroke, Hstroke, hstroke, NoSymbol ]
};
key <AC07> {
type[Group1] = "EIGHT_LEVEL",
symbols[Group1] = [ j, J, Down, Down, dead_hook, dead_horn, dead_hook, NoSymbol ]
};
key <AC08> {
type[Group1] = "EIGHT_LEVEL",
symbols[Group1] = [ k, K, Up, Up, kra, ampersand, kra, NoSymbol ]
};
key <AC09> {
type[Group1] = "EIGHT_LEVEL",
symbols[Group1] = [ l, L, Right, Right, lstroke, Lstroke, lstroke, NoSymbol ]
};
key <AB06> {
type[Group1] = "EIGHT_LEVEL",
symbols[Group1] = [ n, N, KP_Enter, KP_Enter, rightdoublequotemark, rightsinglequotemark, rightdoublequotemark, NoSymbol ]
};
};
I have attempted both ascii-input on and off. Here is my tofi command(excerpt from .config/sway/confg):
set $menu tofi-run --font=/home/pomy/.local/share/fonts/MPLUS1Code[wght].ttf --font-size=9 --font-variations="wght 300" --background-color="#24273A" --outline-width=0 --border-width=0 --text-color="#CAD3F5" --prompt="what to do..." --prompt-color="#F5BDE6" --width=1358 --height=20 --anchor=top --margin-top=0 --padding-top=2 --padding-right=0 --padding-bottom=0 --padding-left=1 --horizontal=true --result-spacing=12 --selection-color="#8BD5CA"| xargs swaymsg exec --
sway version 1.11, tofi built from source at commit 1eb6137572ab6c257ab6ab851d5d742167c18120 (grafted, HEAD -> master, origin/master, origin/HEAD)