News for hackers. Stuff that matters.
Re:Ask HN: Does anyone use keyboard/mouse extra buttons for ... by dyingkneepad on Monday July 26, 2021 @12:22PM (#27961382)
I have a Dygma Raise which is a ~60% keyboard and uses layers. My layer 2 is full of useful macros. I need macros even for the keyboard arrows because my Keyboard doesn't have arrows (arrows are layer2+hjkl or layer2+esdf). I also make heavy use of custom mappings in Vim and Bash aliases.

I have a macro for ctrl+shift+v on my Keyboard since it's the Evolution (Linux mail app) shortcut for moving emails. I also have macros for ctrl+alt+left and ctrl+alt+right to switch desktops more easily.

I have a vim macro "<leader>ji" that does "<esc>:e src/dir/i-always/go/to/prefix_" and "<leader>jv" that does "<esc>:e src/other/common/dir/filename_prefix_". Also "<leader>r" types "Reviewed-by: dyingkneepad <[email protected]>".

I also sometimes think about implementing a keyboard macro that does a BnB combo in Skullgirls :). Maybe one day lol, but that's cheating and I wouldn't do it online (also I'd get screwed on whiff or block). Maybe I could use just Xautomation for that (that uses libXtest).

But the most useful of all, by far: alias s='cd ..'

Re:Ask HN: Does anyone use keyboard/mouse extra buttons for ... by 3np on Tuesday July 27, 2021 @10:18PM (#27979702)
How about other QMK users share their mappings in this thread? Here's mine[0]

I've been on a minimally mapped POK3R (60%) for years (pretty much CL=l2mod, l2mod+hjkl=arrows). It's been OK but still can't touch-type properly and even after years as daily driver still prefer low-profile laptop style keys.

Just switched this week to a self-built Lily58proc Choc[1] for better ergonomics and forcing myself to touch-type. My layout is still a work in progress, I still type very slowly, and would love to see other coders' mappings for inspiration :)

[0] https://gist.github.com/3nprob/41bfaca6dd712de673a140b2b3be3...

[1] https://github.com/kata0510/Lily58

Re:Ask HN: Does anyone use keyboard/mouse extra buttons for ... by themodelplumber on Tuesday July 27, 2021 @07:33PM (#27978864)
That seems like a pretty neat keyboard, thanks for the tip.

> I also have macros for ctrl+alt+left and ctrl+alt+right to switch desktops more easily.

This is done by Super+h and Super+l over here. To bring the active window along with, add Ctrl...

I kept mistaking one of my shortcuts so I made the wrong version play a sound file of John Denver yodeling. It still gets me sometimes :-)

Re:Ask HN: Does anyone use keyboard/mouse extra buttons for ... by rtldg on Wednesday July 28, 2021 @03:58AM (#27981382)
I picked up similar cd aliases alias 1='cd ..' ; alias 2='cd ../..' and etc...