Skip to content

Commit 7349ef2

Browse files
committed
feat: move app openers to raycast
1 parent cd3be6e commit 7349ef2

File tree

8 files changed

+26
-251
lines changed

8 files changed

+26
-251
lines changed

modules/private

690 Bytes
Binary file not shown.

os/mac/karabiner-elements/karabiner.json

+17-218
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"parameters" : {
1212
"basic.simultaneous_threshold_milliseconds" : 100,
1313
"basic.to_delayed_action_delay_milliseconds" : 200,
14-
"basic.to_if_alone_timeout_milliseconds" : 20,
14+
"basic.to_if_alone_timeout_milliseconds" : 200,
1515
"basic.to_if_held_down_threshold_milliseconds" : 100
1616
},
1717
"rules" : [ {
@@ -209,109 +209,34 @@
209209
"type" : "basic"
210210
} ]
211211
}, {
212-
"description" : "Escape mode: quick navigation",
212+
"description" : "escape to esc when pressed alone, to hyper as modifier",
213213
"manipulators" : [ {
214+
"to_if_alone" : [ {
215+
"key_code" : "escape"
216+
} ],
214217
"from" : {
215-
"key_code" : "j"
218+
"key_code" : "escape"
216219
},
217220
"to" : [ {
218-
"mouse_key" : {
219-
"vertical_wheel" : 64,
220-
"speed_multiplier" : 1.5
221-
}
222-
} ],
223-
"conditions" : [ {
224-
"name" : "escape-mode",
225-
"value" : 1,
226-
"type" : "variable_if"
221+
"key_code" : "left_shift",
222+
"modifiers" : [ "left_command", "left_control", "left_option" ]
227223
} ],
228224
"type" : "basic"
229-
}, {
230-
"type" : "basic",
231-
"parameters" : {
232-
"basic.simultaneous_threshold_milliseconds" : 250
233-
},
234-
"to" : [ {
235-
"set_variable" : {
236-
"name" : "escape-mode",
237-
"value" : 1
238-
}
239-
}, {
240-
"mouse_key" : {
241-
"vertical_wheel" : 64,
242-
"speed_multiplier" : 1.5
243-
}
225+
} ]
226+
}, {
227+
"description" : "caps_lock to esc when pressed alone, to hyper as modifier",
228+
"manipulators" : [ {
229+
"to_if_alone" : [ {
230+
"key_code" : "escape"
244231
} ],
245232
"from" : {
246-
"simultaneous" : [ {
247-
"key_code" : "escape"
248-
}, {
249-
"key_code" : "j"
250-
} ],
251-
"simultaneous_options" : {
252-
"detect_key_down_uninterruptedly" : true,
253-
"key_down_order" : "strict",
254-
"key_up_order" : "strict_inverse",
255-
"key_up_when" : "any",
256-
"to_after_key_up" : [ {
257-
"set_variable" : {
258-
"name" : "escape-mode",
259-
"value" : 0
260-
}
261-
} ]
262-
}
263-
}
264-
}, {
265-
"from" : {
266-
"key_code" : "k"
233+
"key_code" : "caps_lock"
267234
},
268235
"to" : [ {
269-
"mouse_key" : {
270-
"vertical_wheel" : -64,
271-
"speed_multiplier" : 1.5
272-
}
273-
} ],
274-
"conditions" : [ {
275-
"name" : "escape-mode",
276-
"value" : 1,
277-
"type" : "variable_if"
236+
"key_code" : "left_shift",
237+
"modifiers" : [ "left_command", "left_control", "left_option" ]
278238
} ],
279239
"type" : "basic"
280-
}, {
281-
"type" : "basic",
282-
"parameters" : {
283-
"basic.simultaneous_threshold_milliseconds" : 250
284-
},
285-
"to" : [ {
286-
"set_variable" : {
287-
"name" : "escape-mode",
288-
"value" : 1
289-
}
290-
}, {
291-
"mouse_key" : {
292-
"vertical_wheel" : -64,
293-
"speed_multiplier" : 1.5
294-
}
295-
} ],
296-
"from" : {
297-
"simultaneous" : [ {
298-
"key_code" : "escape"
299-
}, {
300-
"key_code" : "k"
301-
} ],
302-
"simultaneous_options" : {
303-
"detect_key_down_uninterruptedly" : true,
304-
"key_down_order" : "strict",
305-
"key_up_order" : "strict_inverse",
306-
"key_up_when" : "any",
307-
"to_after_key_up" : [ {
308-
"set_variable" : {
309-
"name" : "escape-mode",
310-
"value" : 0
311-
}
312-
} ]
313-
}
314-
}
315240
} ]
316241
}, {
317242
"description" : "[util] Change brightness with the wheel",
@@ -477,118 +402,6 @@
477402
} ],
478403
"type" : "basic"
479404
} ]
480-
}, {
481-
"description" : "[launch] iTerm",
482-
"manipulators" : [ {
483-
"from" : {
484-
"key_code" : "spacebar",
485-
"modifiers" : {
486-
"mandatory" : [ "left_command", "left_control", "left_option" ]
487-
}
488-
},
489-
"to" : [ {
490-
"shell_command" : "open -a \"iTerm\""
491-
} ],
492-
"type" : "basic"
493-
} ]
494-
}, {
495-
"description" : "[launch] IntelliJ",
496-
"manipulators" : [ {
497-
"from" : {
498-
"key_code" : "i",
499-
"modifiers" : {
500-
"mandatory" : [ "left_command", "left_control", "left_option" ]
501-
}
502-
},
503-
"to" : [ {
504-
"shell_command" : "open -a \"IntelliJ IDEA Ultimate\""
505-
} ],
506-
"type" : "basic"
507-
} ]
508-
}, {
509-
"description" : "[launch] Finder",
510-
"manipulators" : [ {
511-
"from" : {
512-
"key_code" : "f",
513-
"modifiers" : {
514-
"mandatory" : [ "left_command", "left_control", "left_option" ]
515-
}
516-
},
517-
"to" : [ {
518-
"shell_command" : "open -a \"Finder\""
519-
} ],
520-
"type" : "basic"
521-
} ]
522-
}, {
523-
"description" : "[launch] Chrome",
524-
"manipulators" : [ {
525-
"from" : {
526-
"key_code" : "c",
527-
"modifiers" : {
528-
"mandatory" : [ "left_command", "left_control", "left_option" ]
529-
}
530-
},
531-
"to" : [ {
532-
"shell_command" : "open -a \"Google Chrome\""
533-
} ],
534-
"type" : "basic"
535-
} ]
536-
}, {
537-
"description" : "[launch] Slack",
538-
"manipulators" : [ {
539-
"from" : {
540-
"key_code" : "s",
541-
"modifiers" : {
542-
"mandatory" : [ "left_command", "left_control", "left_option" ]
543-
}
544-
},
545-
"to" : [ {
546-
"shell_command" : "open -a \"Slack\""
547-
} ],
548-
"type" : "basic"
549-
} ]
550-
}, {
551-
"description" : "[launch] ChatGPT",
552-
"manipulators" : [ {
553-
"from" : {
554-
"key_code" : "a",
555-
"modifiers" : {
556-
"mandatory" : [ "left_command", "left_control", "left_option" ]
557-
}
558-
},
559-
"to" : [ {
560-
"shell_command" : "open -a \"ChatGPT\""
561-
} ],
562-
"type" : "basic"
563-
} ]
564-
}, {
565-
"description" : "[launch] Google Meet",
566-
"manipulators" : [ {
567-
"from" : {
568-
"key_code" : "g",
569-
"modifiers" : {
570-
"mandatory" : [ "left_command", "left_control", "left_option" ]
571-
}
572-
},
573-
"to" : [ {
574-
"shell_command" : "open -a \"Google Meet\""
575-
} ],
576-
"type" : "basic"
577-
} ]
578-
}, {
579-
"description" : "[launch] Notion",
580-
"manipulators" : [ {
581-
"from" : {
582-
"key_code" : "n",
583-
"modifiers" : {
584-
"mandatory" : [ "left_command", "left_control", "left_option" ]
585-
}
586-
},
587-
"to" : [ {
588-
"shell_command" : "open -a \"Notion\""
589-
} ],
590-
"type" : "basic"
591-
} ]
592405
}, {
593406
"description" : "[launch] dotly ui scripts",
594407
"manipulators" : [ {
@@ -617,20 +430,6 @@
617430
} ],
618431
"type" : "basic"
619432
} ]
620-
}, {
621-
"description" : "[script] Show desktop folder",
622-
"manipulators" : [ {
623-
"from" : {
624-
"key_code" : "d",
625-
"modifiers" : {
626-
"mandatory" : [ "left_command", "left_control", "left_option" ]
627-
}
628-
},
629-
"to" : [ {
630-
"shell_command" : "open \"$HOME/Desktop\""
631-
} ],
632-
"type" : "basic"
633-
} ]
634433
}, {
635434
"description" : "[script] Open common folders",
636435
"manipulators" : [ {

os/mac/karabiner-goku/karabiner.edn

+7-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{:profiles
22
{:Default
33
{:default true
4-
:alone 20
4+
:alone 200
55
:delay 200
66
:held 100
77
:sim 100}}
@@ -42,7 +42,6 @@
4242
:paste-and-return "$HOME/.dotfiles/bin/sdot mac paste_text \"%s\" --returning"
4343
:open-in-chrome "$HOME/.dotfiles/bin/sdot mac open_chrome_url \"%s\""
4444
:wait_seconds "osascript -e 'delay %s'"}
45-
:simlayers {:escape-mode {:key :escape}}
4645
:main
4746
[;; ------------ Windows management
4847
{:des "[mouse] Up key -> Restore last hidden"
@@ -73,11 +72,11 @@
7372
:rules [[:!Oo [:type "ó"]]
7473
[:!Oa [:type "á"]]]}
7574

76-
;; ------------ Layers -----------
77-
{:des "Escape mode: quick navigation"
78-
:rules [:escape-mode
79-
[:j {:mkey {:vwheel 64 :speed 1.5}}]
80-
[:k {:mkey {:vwheel -64 :speed 1.5}}]]}
75+
;; ------------ Remaps ------------
76+
{:des "escape to esc when pressed alone, to hyper as modifier"
77+
:rules [[:escape :!TOCleft_shift nil {:alone :escape}]]}
78+
{:des "caps_lock to esc when pressed alone, to hyper as modifier"
79+
:rules [[:caps_lock :!TOCleft_shift nil {:alone :escape}]]}
8180

8281
;; ------------ Utils ------------
8382
{:des "[util] Change brightness with the wheel"
@@ -102,34 +101,14 @@
102101
:rules [[:move-prev-screen [:!CTOSleft_arrow :!SOc]]]}
103102

104103
;; ------------ Launchers ------------
105-
{:des "[launch] iTerm"
106-
:rules [[:!CTOspacebar [:open-app "iTerm"]]]}
107-
{:des "[launch] IntelliJ"
108-
:rules [[:!CTOi [:open-app "IntelliJ IDEA Ultimate"]]]}
109-
{:des "[launch] Finder"
110-
:rules [[:!CTOf [:open-app "Finder"]]]}
111-
{:des "[launch] Chrome"
112-
:rules [[:!CTOc [:open-app "Google Chrome"]]]}
113-
{:des "[launch] Slack"
114-
:rules [[:!CTOs [:open-app "Slack"]]]}
115-
{:des "[launch] ChatGPT"
116-
:rules [[:!CTOa [:open-app "ChatGPT"]]]}
117-
{:des "[launch] Google Meet"
118-
:rules [[:!CTOg [:open-app "Google Meet"]]]}
119-
{:des "[launch] Notion"
120-
:rules [[:!CTOn [:open-app "Notion"]]]}
121-
122104
{:des "[launch] dotly ui scripts"
123105
:rules [[:!Tcaps_lock "$HOME/.dotfiles/bin/sdot ui show_scripts"]]}
124106

125107
{:des "[script] Generate uuid"
126108
:rules [[:!CTOu "$HOME/.dotfiles/bin/sdot utils uuid_code"]]}
127109

128-
{:des "[script] Show desktop folder"
129-
:rules [[:!CTOd "open \"$HOME/Desktop\""]]}
130-
131110
{:des "[script] Open common folders"
132-
:rules [[:!CTgrave_accent_and_tilde "$HOME/.dotfiles/bin/sdot utils open_common"]]}
111+
:rules [[:!CTgrave_accent_and_tilde "$HOME/.dotfiles/bin/sdot utils open_common"]]},
133112

134113
{:des "[script] Open CodelyTV Repo"
135114
:rules [[:!CTOr "$HOME/.dotfiles/bin/sdot github open_codely_repo"]]}
Binary file not shown.
Binary file not shown.

shell/exports.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919
# ------------------------------------------------------------------------------
2020
# Languages
2121
# ------------------------------------------------------------------------------
22-
export JAVA_HOME='/Users/rafa.gomez/Library/Java/JavaVirtualMachines/azul-21.0.1/Contents/Home'
22+
export JAVA_HOME='/Users/rafa.gomez/Library/Java/JavaVirtualMachines/corretto-18.0.2/Contents/Home'
2323
export GEM_HOME="$HOME/.gem"
2424
export GOPATH="$HOME/.go"
2525
export PYTORCH_ENABLE_MPS_FALLBACK=1

symlinks/conf.macos.yaml

-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
~/Library/Application Support/com.elgato.StreamDeck/ProfilesV2: modules/private/mac/streamdeck/ProfilesV2
2727
~/Library/Application Support/obs-studio/basic: modules/private/mac/obs/basic
2828
~/Library/Application Support/obs-studio/global.ini: modules/private/mac/obs/global.ini
29-
~/Library/Preferences/com.contextsformac.Contexts.plist: os/mac/contexts/com.contextsformac.Contexts.plist
3029
~/bin/bash: /opt/homebrew/bin/bash
3130
~/bin/date: /opt/homebrew/bin/gdate
3231
~/bin/find: /opt/homebrew/bin/gfind
@@ -35,8 +34,6 @@
3534
~/bin/make: /opt/homebrew/bin/gmake
3635
~/bin/node: /opt/homebrew/opt/node@18/bin/node
3736
~/bin/npm: /opt/homebrew/opt/node@18/bin/npm
38-
~/bin/pecl: /opt/homebrew/opt/php@8.2/bin/pecl
39-
~/bin/php: /opt/homebrew/opt/php@8.2/bin/php
4037
~/bin/sed: /opt/homebrew/bin/gsed
4138
~/bin/touch: /opt/homebrew/bin/gtouch
4239
~/bin/zsh: /bin/zsh

0 commit comments

Comments
 (0)