LGUG2Z / whkd

A simple hotkey daemon for Windows
MIT License
509 stars 12 forks source link

[FEAT]: Supports mode or layout #24

Open Pagliacii opened 1 year ago

Pagliacii commented 1 year ago

Is your feature request related to a problem? Please describe. Just likes vim mode, you can switch to another to let the keybindings does other things. Or a switch key to active other keybindings layout. Even simply, a leader key with timeout.

Describe the solution you'd like Maybe a switch key to active other layout is a good choice.

Describe alternatives you've considered Vim mode.

Additional context skhd supports to define a customize mode

kkum commented 2 months ago

Similar as suggested here: https://github.com/LGUG2Z/whkd/issues/12#issuecomment-2305592091

# resize.whkdrc
.shell cmd

# Resize
alt + l : komorebic resize-axis horizontal increase
alt + h : komorebic resize-axis horizontal decrease
alt + k : komorebic resize-axis vertical increase
alt + j : komorebic resize-axis vertical decrease

# return to default keybindings.
alt + r        : taskkill /f /im whkd.exe && start /b whkd

and

# whkdrc
.shell cmd

alt + r                 : taskkill /f /im whkd.exe && start /b whkd -c %WHKD_CONFIG_HOME%\resize.whkdrc