jasonrudolph / keyboard

⌨ Toward a more useful keyboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enter "Super-Duper" mode with a single keystroke

danielinfuse opened this issue · comments

Is it possible to enter the Super Duper mode with just a single "s" or "d" keystroke? It will be helpful because Mac keyboard cannot do N-key rollover (only 6 I believe). Also I find it pretty tiring to hold 2 fingers (ring and middle fingers) to enter the mode.

I'm looking at the super.lua file right now but since I don't know lua, I have not been able to modify it.

👋 Hi @danielinfuse: If you fork the repository and change the code, then you could customize it to enter (S)uper (D)uper Mode with a single keystroke. You'll likely need to try your hands at a bit of Lua to make it work, but it should be do-able.

To get started, you could look at the code for Markdown Mode, which is triggered with a single keystroke (control + m) here:

-- Use Control+m to toggle Markdown Mode
hs.hotkey.bind({'ctrl'}, 'm', function()
markdownMode:enter()
end)
markdownMode:bind({'ctrl'}, 'm', function()
markdownMode:exit()
end)

You could use a similar approach to change super.lua to trigger (S)uper (D)uper Mode with a single keystroke. It will be a bit of work, but it's do-able if you put your mind to it. 😅

Since I personally prefer using the s + d keys to trigger (S)uper (D)uper Mode, it's unlikely that I'll change this functionality, but I hope the pointer above is helpful.