-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Tooltips customize the display position and display text, instead of just displaying an icon at the mouse position. #1521
Comments
On Windows I use
I think that is the easiest way, I prefer it over |
@gerhard-heide Thanks! In my use case, I use the Caps Lock key to tap to switch the layer to ace layer, which is designed for navigation, deletion, uppercase and lowercase switching and other text operations. Among them, the uppercase and lowercase switching is performed by pressing Caps Lock once into acelayer and then press C, but I want to set two separate keys in acelayer to turn on and off uppercase respectively. My code is as follows: (defalias
cl (layer-switch acelayer)
bl (layer-switch base)
crl (layer-switch cellar)
col (tap-hold-press 200 200 grv (layer-while-held console))
tl (layer-while-held tablayer)
nl (layer-switch numpad)
ext (on-press tap-vkey switch-to-base)
sChn (macro A-S-2 @ext)
sEng (macro A-S-1 @ext)
siptEsc (macro A-S-1 esc @ext)
sEsc (macro esc @ext)
sEnt (macro ent @ext)
sCaps (macro caps @ext)
sSave (macro C-s @ext)
ltab (tap-hold-press 200 200 tab @tl)
rtab (tap-hold-press 200 200 [ @tl)
hdel (macro S-home bspc)
wdel (macro C-S-right C-S-left bspc)
lup (macro up up up up up up up up up up up up up up up)
ldn (macro down down down down down down down down down down down down down down down)
)
(deflayer (acelayer icon star.png)
esc f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 f12 ;;13 esc
@col M-; f2 @nl 4 5 6 7 8 9 0 - = bspc ;;14 grv
@ltab home w up tab @hdel @wdel C-left C-right pgup p @rtab _ _ ;;14 tab
@cl end left down right bspc @sEsc @ldn @lup pgdn @sSave @cl ent ;;13 caps
lsft menu del @sCaps @sEng @sEnt @siptEsc @sChn , . / rsft up ;;13 shift
lctl lmet lalt @bl ralt rmet rctl left down right ;;13 ctrl
) |
kanata does not know about the current state of CapsLock, that why I suggested ahk or powershell. But another idea is |
Is your feature request related to a problem? Please describe.
This is like the tooltip in the ahk. I put the layer name switch on the right toolbar as shown below.
By the way, does Kanata have a command to directly turn off capslock, just like the "SetCapslockState false command" in ahk?
Describe the solution you'd like.
As above
Describe alternatives you've considered.
As above
Additional context
No response
The text was updated successfully, but these errors were encountered: