On Fri Apr 15, 2022 at 5:12 AM CDT, Viktor Grigorov wrote: > Hey, > > I have a slightly modified linkhints, that i use with both surf and > boredserf. I'm attaching it so to forgo more questions, but the gist is: > if(e.altKey && String.fromCharCode(e.keyCode) == '1') { hintMode(); } > else if(e.altKey && String.fromCharCode(e.keyCode) == '2') { > hintMode(true); } > > cheers > > Apr 15, 2022, 02:05 by robert.wink...@bioprocess.org: > > > Used to qutebrowser, vimb and SurfingKeys, I can't use a browser without > > link hints anymore! > > > > I tried <https://surf.suckless.org/files/link_hints/>, placed it into > > ~/.surf/script.js and made it executable: > > > > ~~~ > > chmod +x script.js > > ~~~ > > > > However, no reaction with [CTL]+[SHIFT]+[f]. > > > > 1) Anything I'm missing (config.h, ...)? > > > > 2) How can I re-map the keybindings for another modifier (such as ALT, > > Mod4, > > or nothing, i.e., just "f')? > > > > Best regards, > > Robert > >
any idea, why changing '1' to 'f' for link hints with [ALT]+[f] does not work? I modified your code in script.js to: ~~~ if(e.altKey && String.fromCharCode(e.keyCode) == 'f') { hintMode(); } ~~~ and added the keyId: ~~~ 'U+0070' : 'f', ~~~ Best regards, Robert