I'm trying to put together an inception-k2k rule for my 65% keyboard to get shift+escape bound to the ~ character. My keyboard doesn't have a grave/tilde key, but I use tilde quite often sicne it's the *nix shortcut for home directory. I figured this would be relatively straightfoward, but it turns out that it's made complicated by the fact that ~ isn't a key - it's a character that gets printed when Shift+` is typed.
Based on what I've read from the source code, it doesn't seem possible to write a multibind that targets another multibind, like
{ .keys = { KEY_SHIFT, KEY_ESCAPE }, PRESS_ON_DOWN(KEY_SHIFT, KEY_GRAVE), DOWN_IFF_ALL_DOWN(2) }
The other thought I had was that perhaps I could leverage an external tool to write the character for me, but it appears that we don't have any support for doing something like ydotool calls (the wayland compatible variant of xdotool) in response to keybind being pressed.
Any thoughts on how I could accomplish this particular binding?
I'm trying to put together an inception-k2k rule for my 65% keyboard to get shift+escape bound to the ~ character. My keyboard doesn't have a grave/tilde key, but I use tilde quite often sicne it's the *nix shortcut for home directory. I figured this would be relatively straightfoward, but it turns out that it's made complicated by the fact that ~ isn't a key - it's a character that gets printed when Shift+` is typed.
Based on what I've read from the source code, it doesn't seem possible to write a multibind that targets another multibind, like
The other thought I had was that perhaps I could leverage an external tool to write the character for me, but it appears that we don't have any support for doing something like ydotool calls (the wayland compatible variant of xdotool) in response to keybind being pressed.
Any thoughts on how I could accomplish this particular binding?