Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,884 changes: 0 additions & 1,884 deletions mac_v3/capslock.yml

This file was deleted.

13 changes: 13 additions & 0 deletions mac_v3/config/00-meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Capslock Enhancement
url: https://vonng.com/capslock.json
version: 3.0.3
maintainers: [ Vonng ]
author: Vonng(rh@vonng.com)
website: http://capslock.vonng.com
json_url: https://vonng.com/capslock.json
import_url: karabiner://karabiner/assets/complex_modifications/import?url=https://vonng.com/capslock.json
gallery_url: https://ke-complex-modifications.pqrs.org/#emulation-modes
repo: https://github.com/Vonng/Capslock

...
31 changes: 31 additions & 0 deletions mac_v3/config/01-hyper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
################################################################
# Capslock to Esc/Hyper #
################################################################

rules:
- description: CapsLock to Hyper
manipulators:

- description: 'capslock = esc(click) | hyper(hold)'
type: basic
from: { key_code: caps_lock ,modifiers: { optional: [ any ] } }
to: [ { key_code: right_shift,modifiers: [ right_command,right_control,right_option ] } ]
to_if_alone: [ { key_code: escape } ]

- description: 'escape = capslock switch'
type: basic
from: { key_code: escape, modifiers: { optional: [ caps_lock ], mandatory: [ right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: caps_lock , modifiers: [ left_control ] } ]

- description: 'spacebar = language switch'
type: basic
from: { key_code: spacebar, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: spacebar , modifiers: [ left_control ] } ]

- description: 'command + spacebar = emoji'
type: basic
from: { key_code: spacebar, modifiers: { mandatory: [ left_command, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: spacebar , modifiers: [ left_control,left_command ] } ]

...
652 changes: 652 additions & 0 deletions mac_v3/config/02-navigation.yml

Large diffs are not rendered by default.

73 changes: 73 additions & 0 deletions mac_v3/config/03-deletion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
################################################################
# Hyper Deletion #
################################################################

rules:
- description: Hyper Deletion
manipulators:

# + option = delete whole line / move line up /down
- description: 'option + n = delete whole line'
type: basic
from: { key_code: n, modifiers: { mandatory: [ left_option, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_or_backspace, modifiers: [ left_command ] } ]

- description: 'option + m = move line down'
type: basic
from: { key_code: m, modifiers: { mandatory: [ left_option, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: down_arrow, modifiers: [ left_option, left_shift ] } ]

- description: 'option + , = move line up'
type: basic
from: { key_code: comma, modifiers: { mandatory: [ left_option, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: up_arrow, modifiers: [ left_option, left_shift ] } ]

- description: 'option + . = delete whole line'
type: basic
from: { key_code: period, modifiers: { mandatory: [ left_option, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_or_backspace, modifiers: [ left_command ] } ]

# + command = delete line
- description: 'command + n = delete whole line'
type: basic
from: { key_code: n, modifiers: { mandatory: [ left_command, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: left_arrow, modifiers: [ left_shift,left_command ] } , { key_code: delete_or_backspace } ]

- description: 'command + m = delete word ahead'
type: basic
from: { key_code: m, modifiers: { mandatory: [ left_command, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_or_backspace, modifiers: [ left_option ] } ]

- description: 'command + , = delete word after'
type: basic
from: { key_code: comma, modifiers: { mandatory: [ left_command, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_forward, modifiers: [ left_option ] } ]

- description: 'command + . = delete whole line'
type: basic
from: { key_code: period, modifiers: { mandatory: [ left_command, right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: right_arrow, modifiers: [ left_shift,left_command ] } , { key_code: delete_or_backspace } ]

# delete char and word
- description: 'n = delete a word ahead'
type: basic
from: { key_code: n, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_or_backspace, modifiers: [ left_option ] } ]

- description: 'm = delete a char ahead'
type: basic
from: { key_code: m, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_or_backspace } ]

- description: ', = delete a char after'
type: basic
from: { key_code: comma, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_forward } ]

- description: '. = delete a word after'
type: basic
from: { key_code: period, modifiers: { mandatory: [ right_command,right_control,right_shift,right_option ] } }
to: [ { key_code: delete_forward, modifiers: [ left_option ] } ]

...
Loading