Comments (6)
I'm new to the community (this weekend), and I don't know if there is a better place to put this (like in discussions), but I wanted to share my workaround for editing the home row mod order after being redirected from this reddit post and one of the discussions in this repo. This modification was done in my QMK installation since I prefer GASC to GACS (using colemak-dh), which isn't generally/easily OS configurable.
Notes:
- I understand that it would be better to set up the babel repository and use tangled, but I have never used emacs before and the setup cost seemed high.
- I performed these changes against the babel files so that all keyboards I create
- I have not tried these modifications in ZMK, but it looks like the same commands should work if the
sed
strings are tweaked. - These commands rely on the default ordering of the home row mods, but can easily be modified to account for existing changes in the
*layer_alternatives.h
file. - These commands are not idempotent and may result in a different/ random state if executed multiple times without a reset.
- These commands appear to be repeatable, and should be able to be re-applied after accepting a force-update from upstream.
# get to the qmk installation root
cd && qmk cd
# set each of the mods to a temporary value and repopulate with the mods in the preferred order
sed -e 's/LGUI/TMP0/g' -e 's/LALT/TMP1/g' -e 's/LCTL/TMP2/g' -e 's/LSFT/TMP3/g' \
-e 's/TMP0/LGUI/g' \
-e 's/TMP1/LALT/g' \
-e 's/TMP2/LSFT/g' \
-e 's/TMP3/LCTL/g' \
users/manna-harbour_miryoku/miryoku_babel/miryoku_layer_alternatives.h > miryoku_layer_alternatives_temp.h
# verify the results are what you expected. If you're in a clean git state, you can copy first and use git diff instead
diff users/manna-harbour_miryoku/miryoku_babel/miryoku_layer_alternatives.h miryoku_layer_alternatives_temp.h | less
# move the results over top of the original
mv miryoku_layer_alternatives_temp.h users/manna-harbour_miryoku/miryoku_babel/miryoku_layer_alternatives.h
# if something goes wrong, revert to "master" version. You can use a specific commit or "HEAD" instead
git checkout master -- users/manna-harbour_miryoku/miryoku_babel/miryoku_layer_alternatives.h
from miryoku.
How to use magic keycode to achieve Ctrl/Gui swap? I was thinking something similar to how there is a layer lock now on double tap?
@damirda It's not built-in at the moment, but you can use #85 to substitute a custom layer and add e.g. CG_TOGG
. If you can't find somewhere to put it, it could be done as a key override or a tap dance.
from miryoku.
Ctrl / Gui swap for Mac might not be necessary as per keyboard mod remapping is supported in macOS: https://support.apple.com/en-az/guide/mac-help/mchlp1011/mac
An additional pre-swapped Mac clipboard option might be necessary.
I am using macOS, and I swapped control and command in macOS for my keyboard, as you suggested. But then I found that the clipboard commands no longer worked (because U_UNDO
sent control+z rather than command+z, etc.). So I added the following, and now it works:
-
in
manna-harbour_miryoku.h
I defined a new clipboard option "MIRYOKU_CLIPBOARD_MACSWAP" -
in
custom_rules.mk
I specified to use it:MIRYOKU_CLIPBOARD=MACSWAP
It took me a little while to figure out how to do that, so I'm posting it here in case it's helpful for others. Perhaps this clipboard option could be included by default? I would imagine other mac users want to do similarly.
from miryoku.
Ctrl / Gui swap for Mac might not be necessary as per keyboard mod remapping is supported in macOS: https://support.apple.com/en-az/guide/mac-help/mchlp1011/mac
Ctrl / Gui swap is also supported in QMK with magic keycodes.
An additional pre-swapped Mac clipboard option might be necessary.
from miryoku.
How to use magic keycode to achieve Ctrl/Gui swap? I was thinking something similar to how there is a layer lock now on double tap?
from miryoku.
Consider:
- Supporting right mods on bottom row: #262 (comment).
- Option to remove HRM and add bottom row mods.
- Moving layer lock to inner index column.
from miryoku.
Related Issues (20)
- NOREVERSEANGLE option causes kmonad parse error HOT 3
- macOS and difference between miryoku QMK and ZMK HOT 2
- MIRYOKU_LAYOUT=vi Does Not Work HOT 1
- Merge conflict when merging with QMK :( HOT 2
- Implement Auto Shift via Tap Hold HOT 6
- Add Keyboard Control Layers HOT 2
- Support Substituting Custom Layers HOT 1
- Support Adding Custom Layers HOT 2
- Miryoku ZMK Beta HOT 3
- Add Caps Word HOT 18
- Add Layer Lock HOT 3
- Miryoku QMK HOT 1
- Miyroku HOT 1
- Key Emulation Combos HOT 5
- Layout Diagrams HOT 6
- Miryoku Oryx HOT 1
- Miryoku KMonad HOT 1
- Miscellaneous Small Issues HOT 4
- Support additional customisation in custom_config.h HOT 2
- Getting Iris6a / miryoku working in VIA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miryoku.