Skip to content

@miiraheart's config

miiraheart edited this page Jan 23, 2025 · 5 revisions

@miiraheart's config

Prerequisites

Leader Key

I have ZSA Voyager keyboard and I have set up a dedicated key to launch LeaderKey, if you want to check out my layout here is the link, but otherwise you can setup up a trigger key with Karabiner Elements like mentioned in the other configs.

image

And on LeaderKey :

image

LeaderKey Config

I use a lot of keyboard shortcuts so I managed to use LeaderKey to be the trigger for those too using Raycast and Keyboard Shortcut Sequences extension. You just create the keyboard shortcut with the extension :

image

and since there is no copy deeplink in the menu, you can try to create a quicklink for it and it will give you the deeplink and then you can esc and delete the draft.

image image

I have also made, through Keyboard Maestro, a macro that triggers opening LeaderKey Settings, using Bartender or Barbee and assign a shortcut for Leaderkey and then simulate opening the Preferences with cmd+,. Then trigger the macro with Raycast's extension Keyboard Maestro - List Macros.

On Bartender :

image

And on Keyboard Maestro :

image

Through Create Script Command on Raycast, I have created the following script :

osascript -e 'do shell script "open \"raycast://extensions/eluce2/list-keyboard-maestro-macros/list?arguments=%7B%22name%22%3A%22Open%20LeaderKey%20Settings%22%7D\""' -e 'delay 0.5' -e 'tell application "System Events" to keystroke return'

and that's it, when I do [leader][x], it opens LeaderKey settings and I can quickly add a new action.

I use it also to open Settings preferences like Displays, Keyboards, arrange screens or trigger a script to use my iPad's screen. I use it to manage yabai and my skhdrc file.

Here is my config file :

{
  "actions" : [
    {
      "key" : "t",
      "value" : "/Applications/Ghostty.app",
      "type" : "application"
    },
    {
      "key" : "b",
      "type" : "group",
      "actions" : [
        {
          "type" : "application",
          "key" : "b",
          "value" : "/Applications/Brave Browser.app"
        },
        {
          "key" : "n",
          "type" : "url",
          "value" : "raycast://extensions/ron-myers/brave/new-tab"
        },
        {
          "key" : "t",
          "value" : "raycast://extensions/ron-myers/brave/search-tab",
          "type" : "url"
        },
        {
          "value" : "raycast://extensions/ron-myers/brave/search-history",
          "key" : "h",
          "type" : "url"
        }
      ]
    },
    {
      "key" : "v",
      "type" : "group",
      "actions" : [
        {
          "type" : "application",
          "key" : "o",
          "value" : "/Applications/Oryx.app"
        },
        {
          "key" : "k",
          "type" : "application",
          "value" : "/Applications/keymapp.app"
        }
      ]
    },
    {
      "actions" : [
        {
          "key" : "f",
          "type" : "application",
          "value" : "/System/Library/CoreServices/Finder.app"
        },
        {
          "key" : "a",
          "type" : "application",
          "value" : "/System/Applications/App Store.app"
        },
        {
          "key" : "b",
          "type" : "application",
          "value" : "/Applications/Bitwarden.app"
        },
        {
          "type" : "application",
          "value" : "/Applications/Setapp/Calendars.app",
          "key" : "c"
        },
        {
          "type" : "application",
          "key" : "u",
          "value" : "/Applications/ClickUp.app"
        },
        {
          "key" : "d",
          "type" : "application",
          "value" : "/Applications/Discord.app"
        },
        {
          "value" : "/System/Applications/Messages.app",
          "type" : "application",
          "key" : "i"
        },
        {
          "type" : "application",
          "key" : "n",
          "value" : "/Applications/Notion.app"
        },
        {
          "type" : "application",
          "value" : "/Applications/Proton Mail.app",
          "key" : "m"
        },
        {
          "key" : "v",
          "type" : "application",
          "value" : "/Applications/ProtonVPN.app"
        },
        {
          "value" : "/Applications/Setapp/TypingMind.app",
          "key" : "t",
          "type" : "application"
        },
        {
          "actions" : [
            {
              "key" : "a",
              "value" : "/Applications/Setapp.app",
              "type" : "application"
            },
            {
              "key" : "s",
              "type" : "application",
              "value" : "/Applications/Spotify.app"
            },
            {
              "key" : "t",
              "type" : "application",
              "value" : "/Applications/Setapp/Session.app"
            }
          ],
          "key" : "s",
          "type" : "group"
        },
        {
          "key" : "r",
          "type" : "application",
          "value" : "/Applications/Raycast.app"
        },
        {
          "key" : "k",
          "type" : "application",
          "value" : "/Applications/Keyboard Maestro.app"
        },
        {
          "key" : "x",
          "type" : "application",
          "value" : "/Applications/Visual Studio Code.app"
        }
      ],
      "type" : "group",
      "key" : "a"
    },
    {
      "actions" : [
        {
          "value" : "raycast://extensions/raycast/navigation/switch-windows",
          "type" : "url",
          "key" : "w"
        },
        {
          "key" : "q",
          "value" : "raycast://extensions/mackopes/quit-applications/index",
          "type" : "url"
        },
        {
          "key" : "a",
          "type" : "url",
          "value" : "raycast://extensions/raycast/system/toggle-system-appearance"
        },
        {
          "type" : "application",
          "value" : "/System/Applications/Mission Control.app",
          "key" : "m"
        },
        {
          "key" : "x",
          "value" : "/System/Applications/System Settings.app",
          "type" : "application"
        },
        {
          "key" : "d",
          "type" : "command",
          "value" : "open x-apple.systempreferences:com.apple.Displays-Settings.extension"
        },
        {
          "key" : "e",
          "type" : "url",
          "value" : "raycast://script-commands/toggle-ipad-screen"
        },
        {
          "value" : "open \"x-apple.systempreferences:com.apple.preference.keyboard?Shortcuts\"",
          "key" : "k",
          "type" : "command"
        },
        {
          "value" : "open \"x-apple.systempreferences:com.apple.Displays-Settings.extension?arrangementSection\"",
          "type" : "command",
          "key" : "s"
        }
      ],
      "key" : "s",
      "type" : "group"
    },
    {
      "actions" : [
        {
          "value" : "raycast://extensions/HelloImSteven/keyboard-shortcut-sequences/run-shortcut-sequence?arguments=%7B%22sequenceName%22%3A%221piece%20-%20Window%20List%22%7D",
          "key" : "l",
          "type" : "url"
        },
        {
          "type" : "url",
          "key" : "d",
          "value" : "raycast://extensions/HelloImSteven/keyboard-shortcut-sequences/run-shortcut-sequence?arguments=%7B%22sequenceName%22%3A%221piece%20-%20Desktop%20Windows%20list%22%7D"
        },
        {
          "key" : "m",
          "type" : "url",
          "value" : "raycast://extensions/HelloImSteven/keyboard-shortcut-sequences/run-shortcut-sequence?arguments=%7B%22sequenceName%22%3A%221piece%20-%20Window%20Manager%20Menu%22%7D"
        },
        {
          "key" : "p",
          "type" : "url",
          "value" : "raycast://extensions/HelloImSteven/keyboard-shortcut-sequences/run-shortcut-sequence?arguments=%7B%22sequenceName%22%3A%221piece%20-%20Switch%20to%20Prev%20Window%22%7D"
        }
      ],
      "key" : "w",
      "type" : "group"
    },
    {
      "type" : "group",
      "actions" : [
        {
          "key" : "d",
          "type" : "folder",
          "value" : "/Users/miira/Documents"
        },
        {
          "value" : "/Users/miira/Downloads",
          "key" : "w",
          "type" : "folder"
        },
        {
          "type" : "folder",
          "key" : "k",
          "value" : "/Users/miira/Desktop"
        },
        {
          "type" : "folder",
          "value" : "/Applications",
          "key" : "a"
        },
        {
          "value" : "/Users/miira/.config",
          "key" : "c",
          "type" : "folder"
        },
        {
          "value" : "/Users/miira",
          "type" : "folder",
          "key" : "h"
        },
        {
          "type" : "url",
          "key" : "s",
          "value" : "raycast://extensions/asubbotin/shell/index?arguments=%7B%22command%22%3A%22vim%20%7E%2F.config%2Fskhd%2Fskhdrc%22%7D"
        }
      ],
      "key" : "o"
    },
    {
      "key" : "1",
      "type" : "url",
      "value" : "raycast://extensions/krzysztoff1/yabai/focus-space?arguments=%7B%22spaceIndex%22%3A%221%22%7D"
    },
    {
      "type" : "url",
      "key" : "2",
      "value" : "raycast://extensions/krzysztoff1/yabai/focus-space?arguments=%7B%22spaceIndex%22%3A%222%22%7D"
    },
    {
      "value" : "raycast://extensions/krzysztoff1/yabai/focus-space?arguments=%7B%22spaceIndex%22%3A%223%22%7D",
      "key" : "3",
      "type" : "url"
    },
    {
      "type" : "url",
      "value" : "raycast://extensions/krzysztoff1/yabai/focus-space?arguments=%7B%22spaceIndex%22%3A%224%22%7D",
      "key" : "4"
    },
    {
      "value" : "raycast://extensions/krzysztoff1/yabai/focus-space?arguments=%7B%22spaceIndex%22%3A%225%22%7D",
      "key" : "5",
      "type" : "url"
    },
    {
      "value" : "raycast://extensions/krzysztoff1/yabai/focus-space?arguments=%7B%22spaceIndex%22%3A%226%22%7D",
      "key" : "6",
      "type" : "url"
    },
    {
      "type" : "url",
      "value" : "raycast://extensions/krzysztoff1/yabai/windows-list-current-space",
      "key" : "l"
    },
    {
      "value" : "raycast://extensions/krzysztoff1/yabai/create-space-and-focus",
      "type" : "url",
      "key" : "c"
    },
    {
      "key" : "d",
      "value" : "raycast://extensions/krzysztoff1/yabai/destroy-space",
      "type" : "url"
    },
    {
      "key" : "x",
      "value" : "raycast://script-commands/show-leaderkey-settings",
      "type" : "url"
    },
    {
      "type" : "group",
      "actions" : [
        {
          "type" : "url",
          "value" : "raycast://extensions/HelloImSteven/keyboard-shortcut-sequences/run-shortcut-sequence?arguments=%7B%22sequenceName%22%3A%22Enable%20Stackline%22%7D",
          "key" : "s"
        }
      ],
      "key" : "y"
    }
  ],
  "type" : "group"
}

Clone this wiki locally