From 5bc45f6990d66b1858bd382f9d9b7c2e321d1d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=20G=C3=B3mez?= Date: Wed, 30 Aug 2023 12:55:01 +0200 Subject: [PATCH] feat: move scripts --- .gitignore | 3 +- editors/code/extensions.txt | 1 - modules/dotly | 2 +- modules/private | 2 +- os/mac/brew/Brewfile | 27 +- os/mac/karabiner-elements/karabiner.json | 5076 +++++++++++++--------- scripts/codely/copy_course | 23 - scripts/codely/open_course | 31 - scripts/codely/src/codely.sh | 5 - shell/exports.sh | 7 +- shell/init.sh | 1 - symlinks/conf.macos.yaml | 2 +- 12 files changed, 3102 insertions(+), 2078 deletions(-) delete mode 100755 scripts/codely/copy_course delete mode 100755 scripts/codely/open_course delete mode 100644 scripts/codely/src/codely.sh diff --git a/.gitignore b/.gitignore index 93bd9715..c04486be 100644 --- a/.gitignore +++ b/.gitignore @@ -14,5 +14,4 @@ shell/zsh/**/**.zwc.old shell/zsh/.zim # Private Stuff -/**/**/private-* -/scripts/private +/scripts/codely diff --git a/editors/code/extensions.txt b/editors/code/extensions.txt index a0dfa2e8..c7ec30e7 100644 --- a/editors/code/extensions.txt +++ b/editors/code/extensions.txt @@ -6,7 +6,6 @@ eamodio.gitlens GitHub.copilot GitHub.vscode-pull-request-github GrapeCity.gc-excelviewer -hansu.git-graph-2 mechatroner.rainbow-csv miguelsolorio.fluent-icons miguelsolorio.symbols diff --git a/modules/dotly b/modules/dotly index ec4be283..7047a802 160000 --- a/modules/dotly +++ b/modules/dotly @@ -1 +1 @@ -Subproject commit ec4be28336a1793e633f43f7a35ab5e222b17ee2 +Subproject commit 7047a802bce0c625082c19fb1cfe9f8f208d09a3 diff --git a/modules/private b/modules/private index 1a673ffc..b8a7e4f3 160000 --- a/modules/private +++ b/modules/private @@ -1 +1 @@ -Subproject commit 1a673ffc35676536e73c678ccd558be5d516e96c +Subproject commit b8a7e4f3f684514dc4ccf08a2c7ae2ecd7e1201a diff --git a/os/mac/brew/Brewfile b/os/mac/brew/Brewfile index 57bb33f3..6e02a955 100644 --- a/os/mac/brew/Brewfile +++ b/os/mac/brew/Brewfile @@ -7,7 +7,6 @@ tap "denisidoro/tools" tap "github/gh" tap "homebrew/bundle" tap "homebrew/cask" -tap "homebrew/cask-drivers" tap "homebrew/cask-fonts" tap "homebrew/cask-versions" tap "homebrew/core" @@ -26,7 +25,6 @@ brew "webp" brew "jpeg-xl" brew "aom" brew "apr" -brew "ca-certificates" brew "apr-util" brew "m4" brew "autoconf" @@ -39,15 +37,10 @@ brew "freetype" brew "fontconfig" brew "pcre2" brew "glib" -brew "libffi" -brew "libpthread-stubs" brew "xorgproto" brew "libxcb" brew "libx11" brew "libxext" -brew "openssl@1.1" -brew "readline" -brew "python@3.9" brew "cairo" brew "choose-gui" brew "cjson" @@ -70,7 +63,6 @@ brew "php" brew "composer" brew "coreutils" brew "dav1d" -brew "docker", link: false brew "duf" brew "libgit2" brew "exa" @@ -149,8 +141,10 @@ brew "imagemagick" brew "jemalloc" brew "jid" brew "jpegoptim" +brew "libffi" brew "proj" brew "libgeotiff" +brew "libpthread-stubs" brew "librsvg" brew "libslirp" brew "libssh" @@ -172,21 +166,22 @@ brew "nspr" brew "nss" brew "openblas" brew "openjdk@11" +brew "openssl@1.1" brew "p7zip" brew "perl" -brew "php@7.4" brew "php@8.1" brew "pinentry-mac" brew "qemu" brew "podman" brew "poppler" -brew "protobuf" +brew "protobuf", link: false brew "python@3.10" brew "python@3.11" +brew "python@3.9" brew "rust" brew "shellcheck" brew "shfmt" -brew "six" +brew "six", link: false brew "sl" brew "tcl-tk" brew "telnet" @@ -211,14 +206,11 @@ brew "koekeishiya/formulae/skhd" brew "stripe/stripe-cli/stripe" brew "yqrashawn/goku/goku" brew "yt-dlp/taps/yt-dlp" -cask "ace-link" cask "adobe-creative-cloud" cask "cloudflare-warp" cask "contexts" -cask "crossover" cask "discord" cask "displaylink" -cask "docker" cask "elgato-control-center" cask "elgato-stream-deck" cask "enjoyable" @@ -226,13 +218,12 @@ cask "figma" cask "free-download-manager" cask "google-chrome" cask "google-drive" -cask "grandperspective" +cask "handbrake" cask "iterm2-nightly" cask "jetbrains-toolbox" cask "karabiner-elements" -cask "linearmouse" -cask "logi-options-plus" cask "notion" +cask "obs" cask "qlmarkdown" cask "rar" cask "raycast" @@ -247,7 +238,6 @@ mas "Bitwarden", id: 1352778147 mas "Final Cut Pro", id: 424389933 mas "GarageBand", id: 682658836 mas "Gifski", id: 1351639930 -mas "Keepa - Price Tracker", id: 1533805339 mas "Keynote", id: 409183694 mas "Numbers", id: 409203825 mas "Taiko no Tatsujin Pop Tap Beat", id: 1463360242 @@ -260,7 +250,6 @@ vscode "eamodio.gitlens" vscode "GitHub.copilot" vscode "GitHub.vscode-pull-request-github" vscode "GrapeCity.gc-excelviewer" -vscode "hansu.git-graph-2" vscode "mechatroner.rainbow-csv" vscode "miguelsolorio.fluent-icons" vscode "miguelsolorio.symbols" diff --git a/os/mac/karabiner-elements/karabiner.json b/os/mac/karabiner-elements/karabiner.json index e2127716..f95df3ad 100644 --- a/os/mac/karabiner-elements/karabiner.json +++ b/os/mac/karabiner-elements/karabiner.json @@ -1,1992 +1,3094 @@ { - "global" : { - "check_for_updates_on_startup" : true, - "show_in_menu_bar" : false, - "show_profile_name_in_menu_bar" : false, - "unsafe_ui" : false - }, - "profiles" : [ { - "complex_modifications" : { - "parameters" : { - "basic.simultaneous_threshold_milliseconds" : 100, - "basic.to_delayed_action_delay_milliseconds" : 200, - "basic.to_if_alone_timeout_milliseconds" : 20, - "basic.to_if_held_down_threshold_milliseconds" : 100 - }, - "rules" : [ { - "description" : "[mouse] Up key -> Restore last hidden", - "manipulators" : [ { - "from" : { - "pointing_button" : "button5" - }, - "to" : [ { - "key_code" : "tab", - "modifiers" : [ "left_command" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[mouse] Down key -> Hide", - "manipulators" : [ { - "from" : { - "pointing_button" : "button4" - }, - "to" : [ { - "pointing_button" : "button1" - }, { - "key_code" : "h", - "modifiers" : [ "left_command" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[keyboard] ctr + cmd + ↑ as ↓", - "manipulators" : [ { - "from" : { - "key_code" : "down_arrow", - "modifiers" : { - "mandatory" : [ "left_command", "left_control" ] - } - }, - "to" : [ { - "key_code" : "up_arrow", - "modifiers" : [ "left_command", "left_control" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[keyboard] shift + opt + cmd + ↑ as shift + opt + cmd + →", - "manipulators" : [ { - "from" : { - "key_code" : "down_arrow", - "modifiers" : { - "mandatory" : [ "left_command", "left_control" ] - } - }, - "to" : [ { - "key_code" : "up_arrow", - "modifiers" : [ "left_command", "left_control" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[keyboard] disable minimize with cmd+m", - "manipulators" : [ { - "from" : { - "key_code" : "m", - "modifiers" : { - "mandatory" : [ "left_command" ] - } - }, - "to" : [ { - "key_code" : "m", - "modifiers" : [ "left_command", "left_control", "left_shift" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[keyboard] supr ctrl+backspace", - "manipulators" : [ { - "from" : { - "key_code" : "delete_or_backspace", - "modifiers" : { - "mandatory" : [ "left_control" ] - } - }, - "to" : [ { - "key_code" : "delete_forward" - } ], - "type" : "basic" - } ] - }, { - "description" : "[keyboard] Symbols // @todo: move this to a keyboard layout using ukelele", - "manipulators" : [ { - "from" : { - "key_code" : "n", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"ñ\"" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "n", - "modifiers" : { - "mandatory" : [ "left_option", "left_shift" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"Ñ\"" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "slash", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"¿\"" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "slash", - "modifiers" : { - "mandatory" : [ "right_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"¿\"" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "3", - "modifiers" : { - "mandatory" : [ "right_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"€\"" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "3", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"€\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[keyboard] I wanna learn typing", - "manipulators" : [ { - "from" : { - "key_code" : "o", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"ó\"" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "a", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "shell_command" : "/opt/homebrew/bin/skhd -t \"á\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Change brightness with the wheel", - "manipulators" : [ { - "from" : { - "key_code" : "volume_increment", - "modifiers" : { - "mandatory" : [ "left_shift" ] - } - }, - "to" : [ { - "consumer_key_code" : "display_brightness_increment" - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "volume_decrement", - "modifiers" : { - "mandatory" : [ "left_shift" ] - } - }, - "to" : [ { - "consumer_key_code" : "display_brightness_decrement" - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Zoom with the wheel", - "manipulators" : [ { - "from" : { - "key_code" : "volume_increment", - "modifiers" : { - "mandatory" : [ "left_command" ] - } - }, - "to" : [ { - "key_code" : "equal_sign", - "modifiers" : [ "left_command" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "volume_decrement", - "modifiers" : { - "mandatory" : [ "left_command" ] - } - }, - "to" : [ { - "key_code" : "hyphen", - "modifiers" : [ "left_command" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Extend selection", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_option" ] - }, - "key_code" : "up_arrow" - }, - "to" : [ { - "key_code" : "left_arrow", - "modifiers" : [ "left_option" ] - }, { - "key_code" : "right_arrow", - "modifiers" : [ "left_option", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "com.jetbrains.intellij" ] - }, { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "notion.id" ] - }, { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "com.microsoft.VSCode" ] - }, { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "com.arobas-music.guitarpro7" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Delete line", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "delete_or_backspace" - }, - "to" : [ { - "key_code" : "right_arrow", - "modifiers" : [ "left_command" ] - }, { - "key_code" : "delete_or_backspace", - "modifiers" : [ "left_command" ] - }, { - "key_code" : "delete_or_backspace" - } ], - "conditions" : [ { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "com.jetbrains.intellij" ] - }, { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "notion.id" ] - }, { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "com.apple.finder" ] - }, { - "type" : "frontmost_application_unless", - "bundle_identifiers" : [ "com.contextsformac.Contexts" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Clipboard history", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command", "left_shift" ] - }, - "key_code" : "v" - }, - "to" : [ { - "key_code" : "0", - "modifiers" : [ "left_command", "left_control", "left_option" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Move app to next screen and center", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command", "left_shift", "left_option" ] - }, - "key_code" : "right_arrow" - }, - "to" : [ { - "key_code" : "right_arrow", - "modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ] - }, { - "key_code" : "c", - "modifiers" : [ "left_command", "left_option" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[util] Move app to prev screen and center", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command", "left_shift", "left_option" ] - }, - "key_code" : "left_arrow" - }, - "to" : [ { - "key_code" : "left_arrow", - "modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ] - }, { - "key_code" : "c", - "modifiers" : [ "left_command", "left_option" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[launch] iTerm", - "manipulators" : [ { - "from" : { - "key_code" : "spacebar", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "open -a \"iTerm\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[launch] IntelliJ", - "manipulators" : [ { - "from" : { - "key_code" : "i", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "open -a \"IntelliJ IDEA-EAP\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[launch] Chrome", - "manipulators" : [ { - "from" : { - "key_code" : "c", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "open -a \"Google Chrome\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[launch] Slack", - "manipulators" : [ { - "from" : { - "key_code" : "s", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "open -a \"Slack\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[launch] dotly ui scripts", - "manipulators" : [ { - "from" : { - "key_code" : "caps_lock", - "modifiers" : { - "mandatory" : [ "left_control" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot ui show_scripts" - } ], - "type" : "basic" - } ] - }, { - "description" : "[script] Generate uuid", - "manipulators" : [ { - "from" : { - "key_code" : "u", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot utils uuid_code" - } ], - "type" : "basic" - } ] - }, { - "description" : "[script] Show desktop folder", - "manipulators" : [ { - "from" : { - "key_code" : "d", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "open \"$HOME/Desktop\"" - } ], - "type" : "basic" - } ] - }, { - "description" : "[script] Open common folders", - "manipulators" : [ { - "from" : { - "key_code" : "grave_accent_and_tilde", - "modifiers" : { - "mandatory" : [ "left_command", "left_control" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot utils open_common" - } ], - "type" : "basic" - } ] - }, { - "description" : "[chrome] Show recent tabs", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "e" - }, - "to" : [ { - "key_code" : "1", - "modifiers" : [ "left_command", "left_control", "left_option" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.google.Chrome", "com.google.Chrome.beta" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[chrome] Inspect element", - "manipulators" : [ { - "from" : { - "key_code" : "i", - "modifiers" : { - "mandatory" : [ "left_command", "left_shift" ] - } - }, - "to" : [ { - "key_code" : "c", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.google.Chrome", "com.google.Chrome.beta" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[chrome] Toggle console", - "manipulators" : [ { - "from" : { - "key_code" : "t", - "modifiers" : { - "mandatory" : [ "left_command", "left_control", "left_option" ] - } - }, - "to" : [ { - "key_code" : "j", - "modifiers" : [ "left_command", "left_option" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.google.Chrome", "com.google.Chrome.beta" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[chrome] Switch profile", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "caps_lock" - }, - "to" : [ { - "key_code" : "m", - "modifiers" : [ "left_command", "left_shift" ] - }, { - "key_code" : "return_or_enter" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.google.Chrome", "com.google.Chrome.beta" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[chrome] Switch profile with escape", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "escape" - }, - "to" : [ { - "key_code" : "m", - "modifiers" : [ "left_command", "left_shift" ] - }, { - "key_code" : "return_or_enter" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.google.Chrome", "com.google.Chrome.beta" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[finder] Create folder", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_control", "left_option", "left_command" ] - }, - "key_code" : "p" - }, - "to" : [ { - "key_code" : "n", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.apple.finder" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[guitar pro] Zoom in/out", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "equal_sign" - }, - "to" : [ { - "key_code" : "period", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.arobas-music.guitarpro7" ] - } ], - "type" : "basic" - }, { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "hyphen" - }, - "to" : [ { - "key_code" : "comma", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.arobas-music.guitarpro7" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[keynote] Zoom in/out", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "equal_sign" - }, - "to" : [ { - "key_code" : "period", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.apple.iWork.Keynote" ] - } ], - "type" : "basic" - }, { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "hyphen" - }, - "to" : [ { - "key_code" : "comma", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.apple.iWork.Keynote" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[notion] Show recent pages", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "e" - }, - "to" : [ { - "key_code" : "p", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "notion.id" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[notion] Toggle sidebar", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "1" - }, - "to" : [ { - "key_code" : "backslash", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "notion.id" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[notion] Extend selection", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_option" ] - }, - "key_code" : "up_arrow" - }, - "to" : [ { - "key_code" : "up_arrow", - "modifiers" : [ "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "notion.id" ] - } ], - "type" : "basic" - }, { - "from" : { - "modifiers" : { - "mandatory" : [ "left_option" ] - }, - "key_code" : "down_arrow" - }, - "to" : [ { - "key_code" : "down_arrow", - "modifiers" : [ "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "notion.id" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[safari] Toggle sidebar", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] - }, - "key_code" : "1" - }, - "to" : [ { - "key_code" : "l", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.apple.Safari" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[slack] Navigate between channels", - "manipulators" : [ { - "from" : { - "key_code" : "p", - "modifiers" : { - "mandatory" : [ "left_command" ] - } - }, - "to" : [ { - "key_code" : "k", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "e", - "modifiers" : { - "mandatory" : [ "left_command" ] - } - }, - "to" : [ { - "key_code" : "k", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[slack] Toggle sidebars", - "manipulators" : [ { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] + "global": { + "ask_for_confirmation_before_quitting": true, + "check_for_updates_on_startup": true, + "show_in_menu_bar": false, + "show_profile_name_in_menu_bar": false, + "unsafe_ui": false + }, + "profiles": [ + { + "complex_modifications": { + "parameters": { + "basic.simultaneous_threshold_milliseconds": 100, + "basic.to_delayed_action_delay_milliseconds": 200, + "basic.to_if_alone_timeout_milliseconds": 20, + "basic.to_if_held_down_threshold_milliseconds": 100, + "mouse_motion_to_scroll.speed": 100 + }, + "rules": [ + { + "description": "[mouse] Up key -> Restore last hidden", + "manipulators": [ + { + "from": { + "pointing_button": "button5" + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[mouse] Down key -> Hide", + "manipulators": [ + { + "from": { + "pointing_button": "button4" + }, + "to": [ + { + "pointing_button": "button1" + }, + { + "key_code": "h", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keyboard] ctr + cmd + ↑ as ↓", + "manipulators": [ + { + "from": { + "key_code": "down_arrow", + "modifiers": { + "mandatory": [ + "left_command", + "left_control" + ] + } + }, + "to": [ + { + "key_code": "up_arrow", + "modifiers": [ + "left_command", + "left_control" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keyboard] shift + opt + cmd + ↑ as shift + opt + cmd + →", + "manipulators": [ + { + "from": { + "key_code": "down_arrow", + "modifiers": { + "mandatory": [ + "left_command", + "left_control" + ] + } + }, + "to": [ + { + "key_code": "up_arrow", + "modifiers": [ + "left_command", + "left_control" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keyboard] disable minimize with cmd+m", + "manipulators": [ + { + "from": { + "key_code": "m", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "m", + "modifiers": [ + "left_command", + "left_control", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keyboard] supr ctrl+backspace", + "manipulators": [ + { + "from": { + "key_code": "delete_or_backspace", + "modifiers": { + "mandatory": [ + "left_control" + ] + } + }, + "to": [ + { + "key_code": "delete_forward" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keyboard] Symbols // @todo: move this to a keyboard layout using ukelele", + "manipulators": [ + { + "from": { + "key_code": "n", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"ñ\"" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "n", + "modifiers": { + "mandatory": [ + "left_option", + "left_shift" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"Ñ\"" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "slash", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"¿\"" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "slash", + "modifiers": { + "mandatory": [ + "right_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"¿\"" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "3", + "modifiers": { + "mandatory": [ + "right_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"€\"" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "3", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"€\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keyboard] I wanna learn typing", + "manipulators": [ + { + "from": { + "key_code": "o", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"ó\"" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "a", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "/opt/homebrew/bin/skhd -t \"á\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Change brightness with the wheel", + "manipulators": [ + { + "from": { + "key_code": "volume_increment", + "modifiers": { + "mandatory": [ + "left_shift" + ] + } + }, + "to": [ + { + "consumer_key_code": "display_brightness_increment" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "volume_decrement", + "modifiers": { + "mandatory": [ + "left_shift" + ] + } + }, + "to": [ + { + "consumer_key_code": "display_brightness_decrement" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Zoom with the wheel", + "manipulators": [ + { + "from": { + "key_code": "volume_increment", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "equal_sign", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "volume_decrement", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "hyphen", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Extend selection", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.jetbrains.intellij" + ], + "type": "frontmost_application_unless" + }, + { + "bundle_identifiers": [ + "notion.id" + ], + "type": "frontmost_application_unless" + }, + { + "bundle_identifiers": [ + "com.microsoft.VSCode" + ], + "type": "frontmost_application_unless" + }, + { + "bundle_identifiers": [ + "com.arobas-music.guitarpro7" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "up_arrow", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "key_code": "left_arrow", + "modifiers": [ + "left_option" + ] + }, + { + "key_code": "right_arrow", + "modifiers": [ + "left_option", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Delete line", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.jetbrains.intellij" + ], + "type": "frontmost_application_unless" + }, + { + "bundle_identifiers": [ + "notion.id" + ], + "type": "frontmost_application_unless" + }, + { + "bundle_identifiers": [ + "com.apple.finder" + ], + "type": "frontmost_application_unless" + }, + { + "bundle_identifiers": [ + "com.contextsformac.Contexts" + ], + "type": "frontmost_application_unless" + } + ], + "from": { + "key_code": "delete_or_backspace", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "right_arrow", + "modifiers": [ + "left_command" + ] + }, + { + "key_code": "delete_or_backspace", + "modifiers": [ + "left_command" + ] + }, + { + "key_code": "delete_or_backspace" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Clipboard history", + "manipulators": [ + { + "from": { + "key_code": "v", + "modifiers": { + "mandatory": [ + "left_command", + "left_shift" + ] + } + }, + "to": [ + { + "key_code": "0", + "modifiers": [ + "left_command", + "left_control", + "left_option" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Move app to next screen and center", + "manipulators": [ + { + "from": { + "key_code": "right_arrow", + "modifiers": { + "mandatory": [ + "left_command", + "left_shift", + "left_option" + ] + } + }, + "to": [ + { + "key_code": "right_arrow", + "modifiers": [ + "left_command", + "left_control", + "left_option", + "left_shift" + ] + }, + { + "key_code": "c", + "modifiers": [ + "left_command", + "left_option" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[util] Move app to prev screen and center", + "manipulators": [ + { + "from": { + "key_code": "left_arrow", + "modifiers": { + "mandatory": [ + "left_command", + "left_shift", + "left_option" + ] + } + }, + "to": [ + { + "key_code": "left_arrow", + "modifiers": [ + "left_command", + "left_control", + "left_option", + "left_shift" + ] + }, + { + "key_code": "c", + "modifiers": [ + "left_command", + "left_option" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[launch] iTerm", + "manipulators": [ + { + "from": { + "key_code": "spacebar", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "open -a \"iTerm\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[launch] IntelliJ", + "manipulators": [ + { + "from": { + "key_code": "i", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "open -a \"IntelliJ IDEA-EAP\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[launch] Chrome", + "manipulators": [ + { + "from": { + "key_code": "c", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "open -a \"Google Chrome\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[launch] Slack", + "manipulators": [ + { + "from": { + "key_code": "s", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "open -a \"Slack\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[launch] dotly ui scripts", + "manipulators": [ + { + "from": { + "key_code": "caps_lock", + "modifiers": { + "mandatory": [ + "left_control" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot ui show_scripts" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[script] Generate uuid", + "manipulators": [ + { + "from": { + "key_code": "u", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot utils uuid_code" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[script] Show desktop folder", + "manipulators": [ + { + "from": { + "key_code": "d", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "open \"$HOME/Desktop\"" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[script] Open common folders", + "manipulators": [ + { + "from": { + "key_code": "grave_accent_and_tilde", + "modifiers": { + "mandatory": [ + "left_command", + "left_control" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot utils open_common" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[chrome] Show recent tabs", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.google.Chrome", + "com.google.Chrome.beta" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "1", + "modifiers": [ + "left_command", + "left_control", + "left_option" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[chrome] Inspect element", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.google.Chrome", + "com.google.Chrome.beta" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "i", + "modifiers": { + "mandatory": [ + "left_command", + "left_shift" + ] + } + }, + "to": [ + { + "key_code": "c", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[chrome] Toggle console", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.google.Chrome", + "com.google.Chrome.beta" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "t", + "modifiers": { + "mandatory": [ + "left_command", + "left_control", + "left_option" + ] + } + }, + "to": [ + { + "key_code": "j", + "modifiers": [ + "left_command", + "left_option" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[chrome] Switch profile", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.google.Chrome", + "com.google.Chrome.beta" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "caps_lock", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "m", + "modifiers": [ + "left_command", + "left_shift" + ] + }, + { + "key_code": "return_or_enter" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[chrome] Switch profile with escape", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.google.Chrome", + "com.google.Chrome.beta" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "escape", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "m", + "modifiers": [ + "left_command", + "left_shift" + ] + }, + { + "key_code": "return_or_enter" + } + ], + "type": "basic" + } + ] + }, + { + "description": "[finder] Create folder", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.apple.finder" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "p", + "modifiers": { + "mandatory": [ + "left_control", + "left_option", + "left_command" + ] + } + }, + "to": [ + { + "key_code": "n", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[guitar pro] Zoom in/out", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.arobas-music.guitarpro7" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "period", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.arobas-music.guitarpro7" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "comma", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[keynote] Zoom in/out", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.apple.iWork.Keynote" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "period", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.apple.iWork.Keynote" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "comma", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[notion] Show recent pages", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "notion.id" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "p", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[notion] Toggle sidebar", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "notion.id" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "1", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "backslash", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[notion] Extend selection", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "notion.id" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "up_arrow", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "key_code": "up_arrow", + "modifiers": [ + "left_shift" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "notion.id" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "down_arrow", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "key_code": "down_arrow", + "modifiers": [ + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[safari] Toggle sidebar", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.apple.Safari" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "1", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "l", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[slack] Navigate between channels", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "p", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "k", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "k", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[slack] Toggle sidebars", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "1", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "d", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "2", + "modifiers": { + "mandatory": [ + "left_command" + ] + } + }, + "to": [ + { + "key_code": "period", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[slack] Move between workspaces", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "1", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "key_code": "1", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "2", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "key_code": "2", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "3", + "modifiers": { + "mandatory": [ + "left_option" + ] + } + }, + "to": [ + { + "key_code": "3", + "modifiers": [ + "left_command" + ] + } + ], + "type": "basic" + } + ] + }, + { + "description": "[slack] Reactions", + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "v", + "modifiers": { + "mandatory": [ + "left_command", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot mac paste_text \"+:white_check_mark:\" --returning" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "s", + "modifiers": { + "mandatory": [ + "left_command", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot mac paste_text \"+:thumbsup:\" --returning" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "d", + "modifiers": { + "mandatory": [ + "left_command", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot mac paste_text \"+:thumbsdown:\" --returning" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "p", + "modifiers": { + "mandatory": [ + "left_command", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot mac paste_text \"+:heavy_plus_sign:\" --returning" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "g", + "modifiers": { + "mandatory": [ + "left_command", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot mac paste_text \"+:grimacing:\" --returning" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "bundle_identifiers": [ + "com.tinyspeck.slackmacgap" + ], + "type": "frontmost_application_if" + } + ], + "from": { + "key_code": "l", + "modifiers": { + "mandatory": [ + "left_command", + "left_option" + ] + } + }, + "to": [ + { + "shell_command": "$HOME/.dotfiles/bin/sdot mac paste_text \"+:joy:\" --returning" + } + ], + "type": "basic" + } + ] + } + ] }, - "key_code" : "1" - }, - "to" : [ { - "key_code" : "d", - "modifiers" : [ "left_command", "left_shift" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "modifiers" : { - "mandatory" : [ "left_command" ] + "devices": [ + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [ + { + "from": { + "key_code": "f1" + }, + "to": [ + { + "key_code": "f1" + } + ] + }, + { + "from": { + "key_code": "f2" + }, + "to": [ + { + "key_code": "f2" + } + ] + }, + { + "from": { + "key_code": "f3" + }, + "to": [ + { + "key_code": "f3" + } + ] + }, + { + "from": { + "key_code": "f4" + }, + "to": [ + { + "key_code": "f4" + } + ] + }, + { + "from": { + "key_code": "f5" + }, + "to": [ + { + "key_code": "f5" + } + ] + }, + { + "from": { + "key_code": "f6" + }, + "to": [ + { + "key_code": "f6" + } + ] + }, + { + "from": { + "key_code": "f7" + }, + "to": [ + { + "key_code": "f7" + } + ] + }, + { + "from": { + "key_code": "f8" + }, + "to": [ + { + "key_code": "f8" + } + ] + }, + { + "from": { + "key_code": "f9" + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "from": { + "key_code": "f10" + }, + "to": [ + { + "consumer_key_code": "fastforward" + } + ] + }, + { + "from": { + "key_code": "f11" + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + }, + { + "from": { + "key_code": "f12" + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + }, + { + "from": { + "key_code": "f13" + }, + "to": [ + { + "key_code": "eject" + } + ] + } + ], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 41165, + "vendor_id": 1241 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "application" + }, + "to": [ + { + "key_code": "right_option" + } + ] + }, + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "left_command" + }, + "to": [ + { + "key_code": "left_option" + } + ] + }, + { + "from": { + "key_code": "left_option" + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + }, + { + "from": { + "key_code": "right_option" + }, + "to": [ + { + "key_code": "right_command" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [ + { + "from": { + "key_code": "f1" + }, + "to": [ + { + "key_code": "f1" + } + ] + }, + { + "from": { + "key_code": "f2" + }, + "to": [ + { + "key_code": "f2" + } + ] + }, + { + "from": { + "key_code": "f3" + }, + "to": [ + { + "key_code": "f3" + } + ] + }, + { + "from": { + "key_code": "f4" + }, + "to": [ + { + "key_code": "f4" + } + ] + }, + { + "from": { + "key_code": "f5" + }, + "to": [ + { + "key_code": "f5" + } + ] + }, + { + "from": { + "key_code": "f6" + }, + "to": [ + { + "key_code": "f6" + } + ] + }, + { + "from": { + "key_code": "f7" + }, + "to": [ + { + "key_code": "f7" + } + ] + }, + { + "from": { + "key_code": "f8" + }, + "to": [ + { + "key_code": "f8" + } + ] + }, + { + "from": { + "key_code": "f9" + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "from": { + "key_code": "f10" + }, + "to": [ + { + "consumer_key_code": "fastforward" + } + ] + }, + { + "from": { + "key_code": "f11" + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + }, + { + "from": { + "key_code": "f12" + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + } + ], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 4102, + "vendor_id": 9610 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "application" + }, + "to": [ + { + "key_code": "right_option" + } + ] + }, + { + "from": { + "key_code": "f13" + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + }, + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + }, + { + "from": { + "key_code": "right_option" + }, + "to": [ + { + "key_code": "right_command" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 627, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 4119, + "vendor_id": 4809 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 4119, + "vendor_id": 4809 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 16641, + "vendor_id": 9585 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 5, + "vendor_id": 7511 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 592, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [ + { + "from": { + "key_code": "f6" + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + }, + { + "from": { + "key_code": "f7" + }, + "to": [ + { + "key_code": "f7" + } + ] + }, + { + "from": { + "key_code": "f8" + }, + "to": [ + { + "key_code": "f8" + } + ] + }, + { + "from": { + "key_code": "f9" + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "from": { + "key_code": "f10" + }, + "to": [ + { + "consumer_key_code": "fastforward" + } + ] + } + ], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 17, + "vendor_id": 1130 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "application" + }, + "to": [ + { + "key_code": "fn" + } + ] + }, + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "left_alt" + }, + "to": [ + { + "key_code": "left_gui" + } + ] + }, + { + "from": { + "key_code": "left_gui" + }, + "to": [ + { + "key_code": "left_alt" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + }, + { + "from": { + "key_code": "right_alt" + }, + "to": [ + { + "key_code": "right_command" + } + ] + }, + { + "from": { + "key_code": "right_gui" + }, + "to": [ + { + "key_code": "right_alt" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 42, + "vendor_id": 9610 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "f5" + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + }, + { + "from": { + "key_code": "f9" + }, + "to": [ + { + "consumer_key_code": "scan_previous_track" + } + ] + }, + { + "from": { + "key_code": "f10" + }, + "to": [ + { + "consumer_key_code": "scan_next_track" + } + ] + }, + { + "from": { + "key_code": "f11" + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + }, + { + "from": { + "key_code": "f12" + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + }, + { + "from": { + "key_code": "left_alt" + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "from": { + "key_code": "left_gui" + }, + "to": [ + { + "key_code": "left_option" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 92, + "vendor_id": 5426 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 630, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "caps_lock" + }, + "to": [ + { + "key_code": "left_shift" + } + ] + }, + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 30333, + "vendor_id": 3141 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "end" + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "from": { + "key_code": "f10" + }, + "to": [ + { + "key_code": "rewind" + } + ] + }, + { + "from": { + "key_code": "f11" + }, + "to": [ + { + "key_code": "play_or_pause" + } + ] + }, + { + "from": { + "key_code": "f12" + }, + "to": [ + { + "key_code": "fastforward" + } + ] + }, + { + "from": { + "key_code": "home" + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "from": { + "key_code": "left_command" + }, + "to": [ + { + "key_code": "left_option" + } + ] + }, + { + "from": { + "key_code": "left_option" + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "from": { + "key_code": "page_down" + }, + "to": [ + { + "key_code": "return_or_enter" + } + ] + }, + { + "from": { + "key_code": "page_up" + }, + "to": [ + { + "key_code": "backslash" + } + ] + }, + { + "from": { + "key_code": "pause" + }, + "to": [ + { + "key_code": "volume_increment" + } + ] + }, + { + "from": { + "key_code": "print_screen" + }, + "to": [ + { + "key_code": "volume_decrement" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 92, + "vendor_id": 5426 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 598, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": true, + "product_id": 6974, + "vendor_id": 6940 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "6" + }, + "to": [ + { + "key_code": "left_shift" + } + ] + }, + { + "from": { + "key_code": "e" + }, + "to": [ + { + "pointing_button": "button5" + } + ] + }, + { + "from": { + "key_code": "equal_sign" + }, + "to": [ + { + "pointing_button": "button4" + } + ] + }, + { + "from": { + "key_code": "f" + }, + "to": [ + { + "pointing_button": "button4" + } + ] + }, + { + "from": { + "key_code": "hyphen" + }, + "to": [ + { + "pointing_button": "button5" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 34304, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 833, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "lang5" + }, + "to": [ + { + "apple_vendor_top_case_key_code": "keyboard_fn" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 16941, + "vendor_id": 8352 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "insert" + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + }, + { + "from": { + "key_code": "print_screen" + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 64023, + "vendor_id": 9639 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "consumer_key_code": "play_or_pause" + }, + "to": [ + { + "consumer_key_code": "mute" + } + ] + }, + { + "from": { + "key_code": "caps_lock" + }, + "to": [ + { + "key_code": "escape" + } + ] + }, + { + "from": { + "key_code": "delete_forward" + }, + "to": [ + { + "consumer_key_code": "fast_forward" + } + ] + }, + { + "from": { + "key_code": "escape" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + }, + { + "from": { + "key_code": "left_command" + }, + "to": [ + { + "key_code": "left_option" + } + ] + }, + { + "from": { + "key_code": "left_option" + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "from": { + "key_code": "page_down" + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "from": { + "key_code": "page_up" + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 64023, + "vendor_id": 9639 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 833, + "vendor_id": 1452 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 45108, + "vendor_id": 1133 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 834, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "caps_lock" + }, + "to": [ + { + "key_code": "escape" + } + ] + }, + { + "from": { + "key_code": "grave_accent_and_tilde" + }, + "to": [ + { + "key_code": "non_us_backslash" + } + ] + }, + { + "from": { + "key_code": "non_us_backslash" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + } + ], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 834, + "vendor_id": 1452 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 613, + "vendor_id": 76 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 668, + "vendor_id": 76 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "simple_modifications": [ + { + "from": { + "key_code": "caps_lock" + }, + "to": [ + { + "key_code": "escape" + } + ] + } + ], + "treat_as_built_in_keyboard": false + } + ], + "fn_function_keys": [ + { + "from": { + "key_code": "f1" + }, + "to": [ + { + "consumer_key_code": "display_brightness_decrement" + } + ] + }, + { + "from": { + "key_code": "f2" + }, + "to": [ + { + "consumer_key_code": "display_brightness_increment" + } + ] + }, + { + "from": { + "key_code": "f3" + }, + "to": [ + { + "key_code": "mission_control" + } + ] + }, + { + "from": { + "key_code": "f4" + }, + "to": [ + { + "key_code": "launchpad" + } + ] + }, + { + "from": { + "key_code": "f5" + }, + "to": [ + { + "key_code": "illumination_decrement" + } + ] + }, + { + "from": { + "key_code": "f6" + }, + "to": [ + { + "key_code": "illumination_increment" + } + ] + }, + { + "from": { + "key_code": "f7" + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "from": { + "key_code": "f8" + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + }, + { + "from": { + "key_code": "f9" + }, + "to": [ + { + "consumer_key_code": "fastforward" + } + ] + }, + { + "from": { + "key_code": "f10" + }, + "to": [ + { + "consumer_key_code": "mute" + } + ] + }, + { + "from": { + "key_code": "f11" + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + }, + { + "from": { + "key_code": "f12" + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + } + ], + "name": "Default", + "parameters": { + "delay_milliseconds_before_open_device": 1000 }, - "key_code" : "2" - }, - "to" : [ { - "key_code" : "period", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[slack] Move between workspaces", - "manipulators" : [ { - "from" : { - "key_code" : "1", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "key_code" : "1", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "2", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "key_code" : "2", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "3", - "modifiers" : { - "mandatory" : [ "left_option" ] - } - }, - "to" : [ { - "key_code" : "3", - "modifiers" : [ "left_command" ] - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - } ] - }, { - "description" : "[slack] Reactions", - "manipulators" : [ { - "from" : { - "key_code" : "v", - "modifiers" : { - "mandatory" : [ "left_command", "left_option" ] + "selected": true, + "simple_modifications": [], + "virtual_hid_keyboard": { + "caps_lock_delay_milliseconds": 0, + "country_code": 0, + "indicate_sticky_modifier_keys_state": true, + "keyboard_type": "iso", + "mouse_key_xy_scale": 100 } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot mac paste_text \"+:white_check_mark:\" --returning" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "s", - "modifiers" : { - "mandatory" : [ "left_command", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot mac paste_text \"+:thumbsup:\" --returning" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "d", - "modifiers" : { - "mandatory" : [ "left_command", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot mac paste_text \"+:thumbsdown:\" --returning" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "p", - "modifiers" : { - "mandatory" : [ "left_command", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot mac paste_text \"+:heavy_plus_sign:\" --returning" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "g", - "modifiers" : { - "mandatory" : [ "left_command", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot mac paste_text \"+:grimacing:\" --returning" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - }, { - "from" : { - "key_code" : "l", - "modifiers" : { - "mandatory" : [ "left_command", "left_option" ] - } - }, - "to" : [ { - "shell_command" : "$HOME/.dotfiles/bin/sdot mac paste_text \"+:joy:\" --returning" - } ], - "conditions" : [ { - "type" : "frontmost_application_if", - "bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ] - } ], - "type" : "basic" - } ] - } ] - }, - "devices" : [ { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ { - "from" : { - "key_code" : "f1" - }, - "to" : [ { - "key_code" : "f1" - } ] - }, { - "from" : { - "key_code" : "f2" - }, - "to" : [ { - "key_code" : "f2" - } ] - }, { - "from" : { - "key_code" : "f3" - }, - "to" : [ { - "key_code" : "f3" - } ] - }, { - "from" : { - "key_code" : "f4" - }, - "to" : [ { - "key_code" : "f4" - } ] - }, { - "from" : { - "key_code" : "f5" - }, - "to" : [ { - "key_code" : "f5" - } ] - }, { - "from" : { - "key_code" : "f6" - }, - "to" : [ { - "key_code" : "f6" - } ] - }, { - "from" : { - "key_code" : "f7" - }, - "to" : [ { - "key_code" : "f7" - } ] - }, { - "from" : { - "key_code" : "f8" - }, - "to" : [ { - "key_code" : "f8" - } ] - }, { - "from" : { - "key_code" : "f9" - }, - "to" : [ { - "consumer_key_code" : "rewind" - } ] - }, { - "from" : { - "key_code" : "f10" - }, - "to" : [ { - "consumer_key_code" : "fastforward" - } ] - }, { - "from" : { - "key_code" : "f11" - }, - "to" : [ { - "consumer_key_code" : "volume_decrement" - } ] - }, { - "from" : { - "key_code" : "f12" - }, - "to" : [ { - "consumer_key_code" : "volume_increment" - } ] - }, { - "from" : { - "key_code" : "f13" - }, - "to" : [ { - "key_code" : "eject" - } ] - } ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 41165, - "vendor_id" : 1241 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ { - "from" : { - "key_code" : "application" - }, - "to" : [ { - "key_code" : "right_option" - } ] - }, { - "from" : { - "key_code" : "grave_accent_and_tilde" - }, - "to" : [ { - "key_code" : "non_us_backslash" - } ] - }, { - "from" : { - "key_code" : "left_command" - }, - "to" : [ { - "key_code" : "left_option" - } ] - }, { - "from" : { - "key_code" : "left_option" - }, - "to" : [ { - "key_code" : "left_command" - } ] - }, { - "from" : { - "key_code" : "non_us_backslash" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - }, { - "from" : { - "key_code" : "right_option" - }, - "to" : [ { - "key_code" : "right_command" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ { - "from" : { - "key_code" : "f1" - }, - "to" : [ { - "key_code" : "f1" - } ] - }, { - "from" : { - "key_code" : "f2" - }, - "to" : [ { - "key_code" : "f2" - } ] - }, { - "from" : { - "key_code" : "f3" - }, - "to" : [ { - "key_code" : "f3" - } ] - }, { - "from" : { - "key_code" : "f4" - }, - "to" : [ { - "key_code" : "f4" - } ] - }, { - "from" : { - "key_code" : "f5" - }, - "to" : [ { - "key_code" : "f5" - } ] - }, { - "from" : { - "key_code" : "f6" - }, - "to" : [ { - "key_code" : "f6" - } ] - }, { - "from" : { - "key_code" : "f7" - }, - "to" : [ { - "key_code" : "f7" - } ] - }, { - "from" : { - "key_code" : "f8" - }, - "to" : [ { - "key_code" : "f8" - } ] - }, { - "from" : { - "key_code" : "f9" - }, - "to" : [ { - "consumer_key_code" : "rewind" - } ] - }, { - "from" : { - "key_code" : "f10" - }, - "to" : [ { - "consumer_key_code" : "fastforward" - } ] - }, { - "from" : { - "key_code" : "f11" - }, - "to" : [ { - "consumer_key_code" : "volume_decrement" - } ] - }, { - "from" : { - "key_code" : "f12" - }, - "to" : [ { - "consumer_key_code" : "volume_increment" - } ] - } ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 4102, - "vendor_id" : 9610 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ { - "from" : { - "key_code" : "application" - }, - "to" : [ { - "key_code" : "right_option" - } ] - }, { - "from" : { - "key_code" : "f13" - }, - "to" : [ { - "consumer_key_code" : "play_or_pause" - } ] - }, { - "from" : { - "key_code" : "grave_accent_and_tilde" - }, - "to" : [ { - "key_code" : "non_us_backslash" - } ] - }, { - "from" : { - "key_code" : "non_us_backslash" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - }, { - "from" : { - "key_code" : "right_option" - }, - "to" : [ { - "key_code" : "right_command" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 627, - "vendor_id" : 1452 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : false, - "is_pointing_device" : true, - "product_id" : 4119, - "vendor_id" : 4809 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 4119, - "vendor_id" : 4809 - }, - "ignore" : true, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 16641, - "vendor_id" : 9585 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : false, - "is_pointing_device" : true, - "product_id" : 5, - "vendor_id" : 7511 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 592, - "vendor_id" : 1452 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ { - "from" : { - "key_code" : "grave_accent_and_tilde" - }, - "to" : [ { - "key_code" : "non_us_backslash" - } ] - }, { - "from" : { - "key_code" : "non_us_backslash" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ { - "from" : { - "key_code" : "f6" - }, - "to" : [ { - "consumer_key_code" : "play_or_pause" - } ] - }, { - "from" : { - "key_code" : "f7" - }, - "to" : [ { - "key_code" : "f7" - } ] - }, { - "from" : { - "key_code" : "f8" - }, - "to" : [ { - "key_code" : "f8" - } ] - }, { - "from" : { - "key_code" : "f9" - }, - "to" : [ { - "consumer_key_code" : "rewind" - } ] - }, { - "from" : { - "key_code" : "f10" - }, - "to" : [ { - "consumer_key_code" : "fastforward" - } ] - } ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 17, - "vendor_id" : 1130 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ { - "from" : { - "key_code" : "application" - }, - "to" : [ { - "key_code" : "fn" - } ] - }, { - "from" : { - "key_code" : "grave_accent_and_tilde" - }, - "to" : [ { - "key_code" : "non_us_backslash" - } ] - }, { - "from" : { - "key_code" : "left_alt" - }, - "to" : [ { - "key_code" : "left_gui" - } ] - }, { - "from" : { - "key_code" : "left_gui" - }, - "to" : [ { - "key_code" : "left_alt" - } ] - }, { - "from" : { - "key_code" : "non_us_backslash" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - }, { - "from" : { - "key_code" : "right_alt" - }, - "to" : [ { - "key_code" : "right_command" - } ] - }, { - "from" : { - "key_code" : "right_gui" - }, - "to" : [ { - "key_code" : "right_alt" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 42, - "vendor_id" : 9610 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ { - "from" : { - "key_code" : "f5" - }, - "to" : [ { - "consumer_key_code" : "play_or_pause" - } ] - }, { - "from" : { - "key_code" : "f9" - }, - "to" : [ { - "consumer_key_code" : "scan_previous_track" - } ] - }, { - "from" : { - "key_code" : "f10" - }, - "to" : [ { - "consumer_key_code" : "scan_next_track" - } ] - }, { - "from" : { - "key_code" : "f11" - }, - "to" : [ { - "consumer_key_code" : "volume_decrement" - } ] - }, { - "from" : { - "key_code" : "f12" - }, - "to" : [ { - "consumer_key_code" : "volume_increment" - } ] - }, { - "from" : { - "key_code" : "left_alt" - }, - "to" : [ { - "key_code" : "left_command" - } ] - }, { - "from" : { - "key_code" : "left_gui" - }, - "to" : [ { - "key_code" : "left_option" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : false, - "is_pointing_device" : true, - "product_id" : 92, - "vendor_id" : 5426 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 630, - "vendor_id" : 1452 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ { - "from" : { - "key_code" : "caps_lock" - }, - "to" : [ { - "key_code" : "left_shift" - } ] - }, { - "from" : { - "key_code" : "grave_accent_and_tilde" - }, - "to" : [ { - "key_code" : "non_us_backslash" - } ] - }, { - "from" : { - "key_code" : "non_us_backslash" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 30333, - "vendor_id" : 3141 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ { - "from" : { - "key_code" : "end" - }, - "to" : [ { - "key_code" : "up_arrow" - } ] - }, { - "from" : { - "key_code" : "f10" - }, - "to" : [ { - "key_code" : "rewind" - } ] - }, { - "from" : { - "key_code" : "f11" - }, - "to" : [ { - "key_code" : "play_or_pause" - } ] - }, { - "from" : { - "key_code" : "f12" - }, - "to" : [ { - "key_code" : "fastforward" - } ] - }, { - "from" : { - "key_code" : "home" - }, - "to" : [ { - "key_code" : "delete_or_backspace" - } ] - }, { - "from" : { - "key_code" : "left_command" - }, - "to" : [ { - "key_code" : "left_option" - } ] - }, { - "from" : { - "key_code" : "left_option" - }, - "to" : [ { - "key_code" : "left_command" - } ] - }, { - "from" : { - "key_code" : "page_down" - }, - "to" : [ { - "key_code" : "return_or_enter" - } ] - }, { - "from" : { - "key_code" : "page_up" - }, - "to" : [ { - "key_code" : "backslash" - } ] - }, { - "from" : { - "key_code" : "pause" - }, - "to" : [ { - "key_code" : "volume_increment" - } ] - }, { - "from" : { - "key_code" : "print_screen" - }, - "to" : [ { - "key_code" : "volume_decrement" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 92, - "vendor_id" : 5426 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 598, - "vendor_id" : 1452 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ { - "from" : { - "key_code" : "grave_accent_and_tilde" - }, - "to" : [ { - "key_code" : "non_us_backslash" - } ] - }, { - "from" : { - "key_code" : "non_us_backslash" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : true, - "product_id" : 6974, - "vendor_id" : 6940 - }, - "ignore" : false, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ { - "from" : { - "key_code" : "6" - }, - "to" : [ { - "key_code" : "left_shift" - } ] - }, { - "from" : { - "key_code" : "e" - }, - "to" : [ { - "pointing_button" : "button5" - } ] - }, { - "from" : { - "key_code" : "equal_sign" - }, - "to" : [ { - "pointing_button" : "button4" - } ] - }, { - "from" : { - "key_code" : "f" - }, - "to" : [ { - "pointing_button" : "button4" - } ] - }, { - "from" : { - "key_code" : "hyphen" - }, - "to" : [ { - "pointing_button" : "button5" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 34304, - "vendor_id" : 1452 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 833, - "vendor_id" : 1452 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ { - "from" : { - "key_code" : "lang5" - }, - "to" : [ { - "apple_vendor_top_case_key_code" : "keyboard_fn" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 16941, - "vendor_id" : 8352 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ { - "from" : { - "key_code" : "insert" - }, - "to" : [ { - "consumer_key_code" : "volume_increment" - } ] - }, { - "from" : { - "key_code" : "print_screen" - }, - "to" : [ { - "consumer_key_code" : "volume_decrement" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : true, - "is_pointing_device" : false, - "product_id" : 64023, - "vendor_id" : 9639 - }, - "ignore" : false, - "manipulate_caps_lock_led" : true, - "simple_modifications" : [ { - "from" : { - "consumer_key_code" : "play_or_pause" - }, - "to" : [ { - "consumer_key_code" : "mute" - } ] - }, { - "from" : { - "key_code" : "caps_lock" - }, - "to" : [ { - "key_code" : "escape" - } ] - }, { - "from" : { - "key_code" : "delete_forward" - }, - "to" : [ { - "consumer_key_code" : "fast_forward" - } ] - }, { - "from" : { - "key_code" : "escape" - }, - "to" : [ { - "key_code" : "grave_accent_and_tilde" - } ] - }, { - "from" : { - "key_code" : "left_command" - }, - "to" : [ { - "key_code" : "left_option" - } ] - }, { - "from" : { - "key_code" : "left_option" - }, - "to" : [ { - "key_code" : "left_command" - } ] - }, { - "from" : { - "key_code" : "page_down" - }, - "to" : [ { - "consumer_key_code" : "rewind" - } ] - }, { - "from" : { - "key_code" : "page_up" - }, - "to" : [ { - "consumer_key_code" : "play_or_pause" - } ] - } ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : false, - "is_pointing_device" : true, - "product_id" : 64023, - "vendor_id" : 9639 - }, - "ignore" : true, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : false, - "is_pointing_device" : true, - "product_id" : 833, - "vendor_id" : 1452 - }, - "ignore" : true, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - }, { - "disable_built_in_keyboard_if_exists" : false, - "fn_function_keys" : [ ], - "identifiers" : { - "is_keyboard" : false, - "is_pointing_device" : true, - "product_id" : 45108, - "vendor_id" : 1133 - }, - "ignore" : true, - "manipulate_caps_lock_led" : false, - "simple_modifications" : [ ], - "treat_as_built_in_keyboard" : false - } ], - "fn_function_keys" : [ { - "from" : { - "key_code" : "f1" - }, - "to" : [ { - "consumer_key_code" : "display_brightness_decrement" - } ] - }, { - "from" : { - "key_code" : "f2" - }, - "to" : [ { - "consumer_key_code" : "display_brightness_increment" - } ] - }, { - "from" : { - "key_code" : "f3" - }, - "to" : [ { - "key_code" : "mission_control" - } ] - }, { - "from" : { - "key_code" : "f4" - }, - "to" : [ { - "key_code" : "launchpad" - } ] - }, { - "from" : { - "key_code" : "f5" - }, - "to" : [ { - "key_code" : "illumination_decrement" - } ] - }, { - "from" : { - "key_code" : "f6" - }, - "to" : [ { - "key_code" : "illumination_increment" - } ] - }, { - "from" : { - "key_code" : "f7" - }, - "to" : [ { - "consumer_key_code" : "rewind" - } ] - }, { - "from" : { - "key_code" : "f8" - }, - "to" : [ { - "consumer_key_code" : "play_or_pause" - } ] - }, { - "from" : { - "key_code" : "f9" - }, - "to" : [ { - "consumer_key_code" : "fastforward" - } ] - }, { - "from" : { - "key_code" : "f10" - }, - "to" : [ { - "consumer_key_code" : "mute" - } ] - }, { - "from" : { - "key_code" : "f11" - }, - "to" : [ { - "consumer_key_code" : "volume_decrement" - } ] - }, { - "from" : { - "key_code" : "f12" - }, - "to" : [ { - "consumer_key_code" : "volume_increment" - } ] - } ], - "name" : "Default", - "parameters" : { - "delay_milliseconds_before_open_device" : 1000 - }, - "selected" : true, - "simple_modifications" : [ ], - "virtual_hid_keyboard" : { - "caps_lock_delay_milliseconds" : 0, - "country_code" : 0, - "indicate_sticky_modifier_keys_state" : true, - "keyboard_type" : "iso", - "mouse_key_xy_scale" : 100 - } - } ] + } + ] } \ No newline at end of file diff --git a/scripts/codely/copy_course b/scripts/codely/copy_course deleted file mode 100755 index 5bb727ed..00000000 --- a/scripts/codely/copy_course +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -source "$DOTLY_PATH/scripts/core/_main.sh" -source "$DOTFILES_PATH/scripts/codely/src/codely.sh" - -##? Copy a CodelyTV Pro Course to the clipboard -#?? 1.0.0 -##? -##? Usage: -##? copy_course -docs::parse "$@" - -courses=$(codely::list_courses) - -selected_index=$(echo "$courses" | awk -F';' '{print $2}' | choose -i) - -echo "$courses" | - sed -n "$((selected_index + 1))"p | - awk -F';' '{print $1}' | - tr -d '\n' | - pbcopy diff --git a/scripts/codely/open_course b/scripts/codely/open_course deleted file mode 100755 index 427dd163..00000000 --- a/scripts/codely/open_course +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -source "$DOTLY_PATH/scripts/core/_main.sh" -source "$DOTFILES_PATH/scripts/codely/src/codely.sh" - -##? Open a CodelyTV Pro Course -#?? 1.0.0 -##? -##? Usage: -##? open_course -docs::parse "$@" - -# fzf version -#curl -s 'https://pro.codely.tv/api/private/library/resource/?page_size=50&page=1&ordering=featured&order=featured&type=course&filters%5Border%5D=featured&filters%5Btype%5D=course' | -# jq -j '.results | .[] |.url,";", .name,"\n"' | -# sed 's/"//g' | -# fzf -d';' --with-nth 2 | -# awk -F';' '{print $1}' | -# xargs open - -# choose version -courses=$(codely::list_courses) - -selected_index=$(echo "$courses" | awk -F';' '{print $2}' | choose -i) - -echo "$courses" | - sed -n "$((selected_index + 1))"p | - awk -F';' '{print $1}' | - xargs open diff --git a/scripts/codely/src/codely.sh b/scripts/codely/src/codely.sh deleted file mode 100644 index e674d03d..00000000 --- a/scripts/codely/src/codely.sh +++ /dev/null @@ -1,5 +0,0 @@ -codely::list_courses() { - curl -s 'https://pro.codely.tv/api/private/library/resource/?page_size=80&page=1&ordering=featured&order=featured&type=course&filters%5Border%5D=featured&filters%5Btype%5D=course' | - jq -j '.results | .[] |.url,";", .name,"\n"' | - sed 's/"//g' -} diff --git a/shell/exports.sh b/shell/exports.sh index b99be02b..6ec92cc3 100644 --- a/shell/exports.sh +++ b/shell/exports.sh @@ -1,8 +1,3 @@ -# ------------------------------------------------------------------------------ -# Private exports -# ------------------------------------------------------------------------------ -. "$DOTFILES_PATH/modules/private/shell/exports.sh" - # ------------------------------------------------------------------------------ # Codely theme config # ------------------------------------------------------------------------------ @@ -24,7 +19,7 @@ fi # ------------------------------------------------------------------------------ # Languages # ------------------------------------------------------------------------------ -export JAVA_HOME='/Library/Java/JavaVirtualMachines/jbrsdk_jcef-17.0.4.1-osx-aarch64-b597.1/Contents/Home' +export JAVA_HOME='/Library/Java/JavaVirtualMachines/jbr_jcef-17.0.8-osx-aarch64-b1000.8/Contents/Home' export GEM_HOME="$HOME/.gem" export GOPATH="$HOME/.go" export PYTORCH_ENABLE_MPS_FALLBACK=1 diff --git a/shell/init.sh b/shell/init.sh index 1181c2b5..37acc5e4 100644 --- a/shell/init.sh +++ b/shell/init.sh @@ -1,5 +1,4 @@ # This is a useful file to have the same aliases/functions in bash and zsh source "$DOTFILES_PATH/shell/aliases.sh" source "$DOTFILES_PATH/shell/exports.sh" -source "$DOTFILES_PATH/shell/private-exports.sh" source "$DOTFILES_PATH/shell/functions.sh" diff --git a/symlinks/conf.macos.yaml b/symlinks/conf.macos.yaml index 8e6e9cb5..2ad64855 100644 --- a/symlinks/conf.macos.yaml +++ b/symlinks/conf.macos.yaml @@ -9,7 +9,7 @@ - ~/.hushlogin - link: - scripts/private: ~/Library/Mobile Documents/com~apple~CloudDocs/etc/private_scripts + scripts/codely: modules/private/scripts/codely ~/.config/karabiner.edn: os/mac/karabiner-goku/karabiner.edn ~/.config/karabiner: os/mac/karabiner-elements ~/.config/linearmouse: os/mac/linearmouse