Explore the source / dotfiles

Inside dotfiles.

Shell, terminal, backup, and the configuration that joins them. Browse the current public files here, or visit the dotfiles repository on GitHub.

dotfiles / main

home/.config/karabiner/assets/complex_modifications/scripts/typora.sh

View on GitHub
while ! osascript -e 'tell application "Safari" to launch' -e 'tell application "Safari" to activate' -e 'tell application "System Events" to tell process "Safari" to set developMenu to menu "Develop" of menu bar 1' -e 'tell application "System Events" to tell process "Safari" to set submenu to menu item "Kevin’s MacBook Pro
macOS 15.0" of developMenu' -e 'tell application "System Events" to tell process "Safari" to set submenuItems to menu items of menu 1 of submenu' -e 'tell application "System Events" to tell process "Safari" to click item 2 of (every menu item of menu 1 of submenu whose name is "Typora")'; do sleep 2; done