Skip to content

Instantly share code, notes, and snippets.

@cshepherd
Created August 30, 2023 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cshepherd/c03d88ba82911978ad68cb239a72b895 to your computer and use it in GitHub Desktop.
Save cshepherd/c03d88ba82911978ad68cb239a72b895 to your computer and use it in GitHub Desktop.
IBM M122 Soarers Firmware configuration for MacOS
remapblock
# EXTRA_F1 is macro below to take a screenshot
EXTRA_F2 ESC
EXTRA_F3 app
LALT lgui # map both Alts to command keys
RALT rgui # map both Alts to command keys
LANG_4 lalt # center of dpad is option key
EUROPE_1 backslash # backslash left of enter/field exit
EUROPE_2 back_quote # extra backquote to right of shift button
# F11 is already Show Desktop
# F14 is already brightness-down
# F15 is already brightness-up
F18 MEDIA_PREV_TRACK
F19 MEDIA_PLAY_PAUSE
F20 MEDIA_STOP
F21 MEDIA_NEXT_TRACK
F22 MEDIA_MUTE
F23 MEDIA_VOLUME_DOWN
F24 MEDIA_VOLUME_UP
endblock
macroblock
# F9 for New Window
macro F9
PUSH_META CLEAR_META all
SET_META rgui
PRESS N
POP_ALL_META
endmacro
# F10 for Incognito Window
macro F10
PUSH_META CLEAR_META all
SET_META rshift rgui
PRESS N
POP_ALL_META
endmacro
# Extra_F1 to go to screenshot-to-clipboard select mode
macro EXTRA_F1
PUSH_META CLEAR_META all
SET_META rshift rgui rctrl
PRESS 4
POP_ALL_META
endmacro
# Extra_F2 is already Esc
# Extra_F3 is already App
# Extra_F4 to Minimize
macro EXTRA_F4
PUSH_META CLEAR_META all
SET_META rgui
PRESS M
POP_ALL_META
endmacro
# Extra_F5 to Copy
macro EXTRA_F5
PUSH_META CLEAR_META all
SET_META rgui
PRESS C
POP_ALL_META
endmacro
# Extra_F6 to Paste
macro EXTRA_F6
PUSH_META CLEAR_META all
SET_META rgui
PRESS V
POP_ALL_META
endmacro
# Extra_F7 to Cut
macro EXTRA_F7
PUSH_META CLEAR_META all
SET_META rgui
PRESS X
POP_ALL_META
endmacro
# Extra_F8 to Paste Selected
macro EXTRA_F8
PUSH_META CLEAR_META all
SET_META rgui rshift
PRESS V
POP_ALL_META
endmacro
# Extra_F9 to Close
macro EXTRA_F9
PUSH_META CLEAR_META all
SET_META rgui
PRESS W
POP_ALL_META
endmacro
# Extra_F10 for 1Password
macro EXTRA_F10
PUSH_META CLEAR_META all
SET_META rgui
PRESS backslash
POP_ALL_META
endmacro
endblock
@cshepherd
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment