Giter Club home page Giter Club logo

Comments (6)

bijou-code avatar bijou-code commented on July 21, 2024 4

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.

manna-harbour avatar manna-harbour commented on July 21, 2024 2

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.

postylem avatar postylem commented on July 21, 2024 2

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"

    Screenshot 2023-12-08 at 10 58 50
  • 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.

manna-harbour avatar manna-harbour commented on July 21, 2024

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.

damirda avatar damirda commented on July 21, 2024

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.

manna-harbour avatar manna-harbour commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.