aboutsummaryrefslogtreecommitdiff
path: root/config/karabiner
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2025-10-21 13:45:28 +0200
committerRuben Beltran del Rio <jj@r.bdr.sh>2025-10-21 13:52:57 +0200
commiteeb470163fceaff53a80d1e50cf7a42ce67aa4cf (patch)
tree325b40d6974db0f2d195f22b7b876c6ae384c64b /config/karabiner
parent0389a047ea1b9af71d81ac0463f1c9d77946f2ac (diff)
Move shortcuts for macos from hammerspoon to karabiner
Diffstat (limited to 'config/karabiner')
-rw-r--r--config/karabiner/karabiner.json89
1 files changed, 89 insertions, 0 deletions
diff --git a/config/karabiner/karabiner.json b/config/karabiner/karabiner.json
index 71b622c..eb006a3 100644
--- a/config/karabiner/karabiner.json
+++ b/config/karabiner/karabiner.json
@@ -5,6 +5,89 @@
"complex_modifications": {
"rules": [
{
+ "description": "Show Desktop",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "f5",
+ "modifiers": { "mandatory": ["command"] }
+ },
+ "to": [
+ {
+ "key_code": "up_arrow",
+ "modifiers": ["command", "control"]
+ }
+ ],
+ "type": "basic"
+ }
+ ]
+ },
+ {
+ "description": "Next MPC Track",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "f9",
+ "modifiers": { "mandatory": ["command"] }
+ },
+ "to": [{ "shell_command": "/opt/homebrew/bin/mpc next" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
+ "description": "Previous MPC Track",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "f7",
+ "modifiers": { "mandatory": ["command"] }
+ },
+ "to": [{ "shell_command": "/opt/homebrew/bin/mpc prev" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
+ "description": "Play / Pause MPC",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "f8",
+ "modifiers": { "mandatory": ["command"] }
+ },
+ "to": [{ "shell_command": "/opt/homebrew/bin/mpc toggle" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
+ "description": "Change Wallpaper",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "f5",
+ "modifiers": { "mandatory": ["command", "option"] }
+ },
+ "to": [{ "shell_command": "/Users/rbdr/.wpaperalt" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
+ "description": "Change Wallpaper Set",
+ "manipulators": [
+ {
+ "from": {
+ "key_code": "f5",
+ "modifiers": { "mandatory": ["command", "option", "control"] }
+ },
+ "to": [{ "shell_command": "/Users/rbdr/.wpaperalt --switch" }],
+ "type": "basic"
+ }
+ ]
+ },
+ {
"description": "print_screen to command+shift+4",
"manipulators": [
{
@@ -135,6 +218,12 @@
],
"name": "Default profile",
"selected": true,
+ "simple_modifications": [
+ {
+ "from": { "key_code": "caps_lock" },
+ "to": [{ "key_code": "left_control" }]
+ }
+ ],
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"