Majuscules pour changer le verrouillage


3

Ce serait génial si la touche majuscule pouvait aussi changer les chiffres en symboles. Par exemple, avec des limites, il serait bien que le fait d'appuyer sur "4" produise "$". Y at-il un moyen facile de faire cela sur mac?

Merci!

EDIT: Est-il possible de le faire avec cette commande "setxkbmap"? Ou de la ligne de commande en quelque sorte?


Keyboard Maestro devrait pouvoir le faire.
Talos Potential

Réponses:


2

Karabiner app devrait le faire.

Vous pouvez remplacer la touche majuscule par une autre clé. ()

Éléments de mousqueton

Karabiner-Elements est un puissant utilitaire de personnalisation du clavier sous macOS Sierra ou ultérieur.

Marche avec:

macOS Mojave (10.14)
macOS High Sierra (10.13)
macOS Sierra (10.12)

Ok, je travaille sur l'écriture d'une complex_modification pour le mousqueton. Je le posterai ici en cas de succès. Merci pour l'aide!
David

1

Je l'ai compris avec un mousqueton. A changé tous les nombres en leurs symboles pour les majuscules. Je vais probablement changer les symboles ainsi que les chiffres à un moment donné. Merci à buscar!

EDIT: Formatage

{
  "title": "Caps Lock To Shift Lock",
  "rules": [
     {
        "description": "Change caps lock to shift lock",
        "manipulators": [
            {
                "type": "basic",
                "from": {
                    "key_code": "caps_lock",
                    "modifiers": {
                        "optional": [
                            "any"
                        ]
                    }
                },
                "to": [
                    {
                        "set_variable": {
                            "name": "shift_lock",
                            "value": 1
                        }
                    },
                    {
                        "key_code": "caps_lock"
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 0
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "caps_lock",
                    "modifiers": {
                        "optional": [
                            "any"
                        ]
                    }
                },
                "to": [
                    {
                        "set_variable": {
                            "name": "shift_lock",
                            "value": 0
                        }
                    },
                    {
                        "key_code": "caps_lock"
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "description": " => shift-1/!",
                "type": "basic",
                "from": {
                    "key_code": "1",
                    "modifiers": {
                         "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "1",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "2",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "2",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "3",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "3",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "4",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "4",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "5",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "5",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "6",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "6",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "7",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "7",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "8",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "8",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "9",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "9",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            },
            {
                "type": "basic",
                "from": {
                    "key_code": "0",
                    "modifiers": {
                        "optional": [
                            "any"
                         ]
                    }
                },
                "to": [
                    {
                        "key_code": "0",
                        "modifiers": [
                            "shift"
                        ]
                    }
                ],
                "conditions": [
                    {
                        "type": "variable_if",
                        "name": "shift_lock",
                        "value": 1
                    }
                ]
            }
        ]
     }
  ]
}
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.